OpenAI::FunctionToolCall
Inherits JSON::Serializable < Reference < Object
A tool call to run a function. See the function calling guide for more information.
Constructors
new(pull : JSON::PullParser)
Sourcenew(id : String | Nil = nil, type_value : FunctionToolCallType = FunctionToolCallType::FunctionCall, call_id : String = "", name : String = "", arguments : String = "", status : FunctionToolCallStatus | Nil = nil)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
status
The status of the item. One of in_progress, completed, or
incomplete. Populated when items are returned via API.
status=(status : FunctionToolCallStatus | Nil)
The status of the item. One of in_progress, completed, or
incomplete. Populated when items are returned via API.
type_value=(type_value : FunctionToolCallType)
The type of the function tool call. Always function_call.