OpenAI::CustomToolCallOutput
Inherits JSON::Serializable < Reference < Object
The output of a custom tool call from your code, being sent back to the model.
Constructors
new(pull : JSON::PullParser)
Sourcenew(type_value : CustomToolCallOutputType = CustomToolCallOutputType::CustomToolCallOutput, id : String | Nil = nil, call_id : String = "", output : CustomToolCallOutputOutput = "")
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
call_id=(call_id : String)
The call ID, used to map this custom tool call output to a custom tool call.
output
The output from the custom tool call generated by your code. Can be a string or an list of output content.
output=(output : CustomToolCallOutputOutput)
The output from the custom tool call generated by your code. Can be a string or an list of output content.
type_value=(type_value : CustomToolCallOutputType)
The type of the custom tool call output. Always custom_tool_call_output.