class

OpenAI::LocalShellExecAction

Inherits JSON::Serializable < Reference < Object

Execute a shell command on the server.

Constructors

new(type_value : LocalShellExecActionType = LocalShellExecActionType::Exec, command : Array(String) = [] of String, timeout_ms : LocalShellExecActionTimeoutMs | Nil = nil, working_directory : LocalShellExecActionWorkingDirectory | Nil = nil, env : Hash(String, String) = Hash(String, String).new, user : LocalShellExecActionUser | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

command

The command to run.

Source
command=(command : Array(String))

The command to run.

Source
env

Environment variables to set for the command.

Source
env=(env : Hash(String, String))

Environment variables to set for the command.

Source
timeout_ms
Source
timeout_ms=(timeout_ms : LocalShellExecActionTimeoutMs | Nil)
Source
type_value

The type of the local shell action. Always exec.

Source
type_value=(type_value : LocalShellExecActionType)

The type of the local shell action. Always exec.

Source
user
Source
user=(user : LocalShellExecActionUser | Nil)
Source
working_directory
Source
working_directory=(working_directory : LocalShellExecActionWorkingDirectory | Nil)
Source