Share via


LocalShellAgentToolExecutionAction Class

Definition

Execute a shell command on the server.

public class LocalShellAgentToolExecutionAction : System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.OpenAI.LocalShellAgentToolExecutionAction>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.OpenAI.LocalShellAgentToolExecutionAction>
type LocalShellAgentToolExecutionAction = class
    interface IJsonModel<LocalShellAgentToolExecutionAction>
    interface IPersistableModel<LocalShellAgentToolExecutionAction>
Public Class LocalShellAgentToolExecutionAction
Implements IJsonModel(Of LocalShellAgentToolExecutionAction), IPersistableModel(Of LocalShellAgentToolExecutionAction)
Inheritance
LocalShellAgentToolExecutionAction
Implements

Constructors

Name Description
LocalShellAgentToolExecutionAction(IEnumerable<String>, IDictionary<String,String>)

Initializes a new instance of LocalShellAgentToolExecutionAction.

Properties

Name Description
Command

The command to run.

Env

Environment variables to set for the command.

TimeoutMs

Optional timeout in milliseconds for the command.

User

Optional user to run the command as.

WorkingDirectory

Optional working directory to run the command in.

Methods

Name Description
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<LocalShellAgentToolExecutionAction>.Create(Utf8JsonReader, ModelReaderWriterOptions)
IJsonModel<LocalShellAgentToolExecutionAction>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IPersistableModel<LocalShellAgentToolExecutionAction>.Create(BinaryData, ModelReaderWriterOptions)
IPersistableModel<LocalShellAgentToolExecutionAction>.GetFormatFromOptions(ModelReaderWriterOptions)
IPersistableModel<LocalShellAgentToolExecutionAction>.Write(ModelReaderWriterOptions)

Applies to