class

OpenAI::FunctionShellAction

Inherits JSON::Serializable < Reference < Object

Execute a shell command.

Constructors

new(commands : Array(String) = [] of String, timeout_ms : FunctionShellActionTimeoutMs = nil, max_output_length : FunctionShellActionMaxOutputLength = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

commands
Source
commands=(commands : Array(String))
Source
max_output_length
Source
max_output_length=(max_output_length : FunctionShellActionMaxOutputLength)
Source
timeout_ms
Source
timeout_ms=(timeout_ms : FunctionShellActionTimeoutMs)
Source