| Name | Type | Description |
|---|---|---|
name* | str | Assistant name. |
instructions* | str | Assistant instructions. |
tools* | Sequence[Union[BaseTool, dict]] | |
tool_resources | Optional[Union[AssistantToolResources, dict, NotGiven]] | Default: None |
model* | str | |
client | Optional[Union[openai.OpenAI, openai.AzureOpenAI]] | Default: None |
model_kwargs | dict[str, float] | Default: {} |
extra_body | Optional[object] | Default: None |
Create an OpenAI Assistant and instantiate the Runnable.
Assistant tools. Can be passed in OpenAI format or as BaseTools.
Assistant tool resources. Can be passed in OpenAI format.
Assistant model to use.
OpenAI or AzureOpenAI client. Will create default OpenAI client (Assistant v2) if not specified.
Additional model arguments. Only available for temperature and top_p parameters.
Additional body parameters to be passed to the assistant.