LocalShellExecAction Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| LocalShellExecAction() |
Initializes a new instance of LocalShellExecAction for deserialization. |
| LocalShellExecAction(IEnumerable<String>, IDictionary<String,String>) |
Initializes a new instance of LocalShellExecAction. |
| LocalShellExecAction(LocalShellExecActionType, IList<String>, Nullable<Int32>, String, IDictionary<String,String>, String, IDictionary<String,BinaryData>) |
Initializes a new instance of LocalShellExecAction. |
LocalShellExecAction()
- Source:
- LocalShellExecAction.cs
Initializes a new instance of LocalShellExecAction for deserialization.
public LocalShellExecAction();
Public Sub New ()
Applies to
LocalShellExecAction(IEnumerable<String>, IDictionary<String,String>)
- Source:
- LocalShellExecAction.cs
Initializes a new instance of LocalShellExecAction.
public LocalShellExecAction(System.Collections.Generic.IEnumerable<string> command, System.Collections.Generic.IDictionary<string,string> env);
new Azure.AI.AgentServer.Contracts.Generated.OpenAI.LocalShellExecAction : seq<string> * System.Collections.Generic.IDictionary<string, string> -> Azure.AI.AgentServer.Contracts.Generated.OpenAI.LocalShellExecAction
Public Sub New (command As IEnumerable(Of String), env As IDictionary(Of String, String))
Parameters
- command
- IEnumerable<String>
The command to run.
- env
- IDictionary<String,String>
Environment variables to set for the command.
Exceptions
command or env is null.
Applies to
LocalShellExecAction(LocalShellExecActionType, IList<String>, Nullable<Int32>, String, IDictionary<String,String>, String, IDictionary<String,BinaryData>)
- Source:
- LocalShellExecAction.cs
Initializes a new instance of LocalShellExecAction.
public LocalShellExecAction(Azure.AI.AgentServer.Contracts.Generated.OpenAI.LocalShellExecActionType type, System.Collections.Generic.IList<string> command, int? timeoutMs, string workingDirectory, System.Collections.Generic.IDictionary<string,string> env, string user, System.Collections.Generic.IDictionary<string,BinaryData> serializedAdditionalRawData);
new Azure.AI.AgentServer.Contracts.Generated.OpenAI.LocalShellExecAction : Azure.AI.AgentServer.Contracts.Generated.OpenAI.LocalShellExecActionType * System.Collections.Generic.IList<string> * Nullable<int> * string * System.Collections.Generic.IDictionary<string, string> * string * System.Collections.Generic.IDictionary<string, BinaryData> -> Azure.AI.AgentServer.Contracts.Generated.OpenAI.LocalShellExecAction
Public Sub New (type As LocalShellExecActionType, command As IList(Of String), timeoutMs As Nullable(Of Integer), workingDirectory As String, env As IDictionary(Of String, String), user As String, serializedAdditionalRawData As IDictionary(Of String, BinaryData))
Parameters
The type of the local shell action. Always exec.
- workingDirectory
- String
Optional working directory to run the command in.
- env
- IDictionary<String,String>
Environment variables to set for the command.
- user
- String
Optional user to run the command as.
- serializedAdditionalRawData
- IDictionary<String,BinaryData>
Keeps track of any properties unknown to the library.