OpenAI::FunctionShellCallItemParam
Inherits JSON::Serializable < Reference < Object
A tool representing a request to execute one or more shell commands.
Constructors
new(pull : JSON::PullParser)
Sourcenew(id : FunctionShellCallItemParamId | Nil = nil, call_id : String = "", type_value : FunctionShellCallItemParamType = FunctionShellCallItemParamType::ShellCall, action : FunctionShellActionParam = FunctionShellActionParam.new, status : FunctionShellCallItemParamStatus | Nil = nil)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
action=(action : FunctionShellActionParam)
The shell commands and limits that describe how to run the tool call.
id
Sourceid=(id : FunctionShellCallItemParamId | Nil)
Sourcestatus
Sourcestatus=(status : FunctionShellCallItemParamStatus | Nil)
Sourcetype_value=(type_value : FunctionShellCallItemParamType)
The type of the item. Always shell_call.
validate!
Source