OpenAILocalShellExecAction

@Serializable
data class OpenAILocalShellExecAction(val type: String = "exec", val command: List<String>, val timeoutMs: Long? = null, val workingDirectory: String? = null, val env: Map<String, String> = emptyMap(), val user: String? = null)

Execute a shell command on the server (the local_shell tool action).

See also

Constructors

Link copied to clipboard
constructor(type: String = "exec", command: List<String>, timeoutMs: Long? = null, workingDirectory: String? = null, env: Map<String, String> = emptyMap(), user: String? = null)

Properties

Link copied to clipboard

The command to run, split into tokens.

Link copied to clipboard

Environment variables to set for the command.

Link copied to clipboard
@SerialName(value = "timeout_ms")
val timeoutMs: Long?

Optional timeout in milliseconds for the command.

Link copied to clipboard

The type of the action. Always "exec".

Link copied to clipboard
val user: String?

Optional user to run the command as.

Link copied to clipboard
@SerialName(value = "working_directory")
val workingDirectory: String?

Optional working directory to run the command in.