View Source OpenAi.Thread.CreateAndRunRequest (OpenAI REST API Client v0.4.4)
Provides struct and type for a Thread.CreateAndRunRequest
Summary
Types
@type t() :: %OpenAi.Thread.CreateAndRunRequest{ assistant_id: String.t(), instructions: String.t() | nil, max_completion_tokens: integer() | nil, max_prompt_tokens: integer() | nil, metadata: map() | nil, model: String.t() | nil, parallel_tool_calls: boolean() | nil, response_format: OpenAi.Assistant.ApiResponseFormat.t() | String.t() | nil, stream: boolean() | nil, temperature: number() | nil, thread: OpenAi.Thread.CreateRequest.t() | nil, tool_choice: OpenAi.Assistant.NamedToolChoice.t() | String.t() | nil, tool_resources: OpenAi.Thread.CreateAndRunRequest.ToolResources.t() | nil, tools: [ OpenAi.Assistant.Tool.Code.t() | OpenAi.Assistant.Tool.File.Search.t() | OpenAi.Assistant.Tool.Function.t() ] | nil, top_p: number() | nil, truncation_strategy: OpenAi.Truncation.t() | nil }