OpenAI::CreateAssistantRequest
Inherits JSON::Serializable < Reference < Object
Constructors
new(pull : JSON::PullParser)
Sourcenew(model : CreateAssistantRequestModel = "", name : CreateAssistantRequestName | Nil = nil, description : CreateAssistantRequestDescription | Nil = nil, instructions : CreateAssistantRequestInstructions | Nil = nil, reasoning_effort : ReasoningEffort | Nil = nil, tools : Array(AssistantTool) | Nil = nil, tool_resources : CreateAssistantRequestToolResources | Nil = nil, metadata : Metadata | Nil = nil, temperature : CreateAssistantRequestTemperature | Nil = nil, top_p : CreateAssistantRequestTopP | Nil = nil, response_format : CreateAssistantRequestResponseFormat | Nil = nil)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
description
Sourcedescription=(description : CreateAssistantRequestDescription | Nil)
Sourceinstructions
Sourceinstructions=(instructions : CreateAssistantRequestInstructions | Nil)
Sourcemetadata
Sourcemetadata=(metadata : Metadata | Nil)
Sourcemodel
ID of the model to use. You can use the List models API to see all of your available models, or see our Model overview for descriptions of them.
model=(model : CreateAssistantRequestModel)
ID of the model to use. You can use the List models API to see all of your available models, or see our Model overview for descriptions of them.
name
Sourcename=(name : CreateAssistantRequestName | Nil)
Sourcereasoning_effort
Sourcereasoning_effort=(reasoning_effort : ReasoningEffort | Nil)
Sourceresponse_format
Sourceresponse_format=(response_format : CreateAssistantRequestResponseFormat | Nil)
Sourcetemperature
Sourcetemperature=(temperature : CreateAssistantRequestTemperature | Nil)
Sourcetool_resources
Sourcetool_resources=(tool_resources : CreateAssistantRequestToolResources | Nil)
Sourcetools
A list of tool enabled on the assistant. There can be a maximum of 128 tools per assistant. Tools can be of types code_interpreter, file_search, or function.
A list of tool enabled on the assistant. There can be a maximum of 128 tools per assistant. Tools can be of types code_interpreter, file_search, or function.
top_p
Sourcetop_p=(top_p : CreateAssistantRequestTopP | Nil)
Source