CodeConfiguration Constructor
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.
Initializes a new instance of CodeConfiguration.
public CodeConfiguration(string runtime, System.Collections.Generic.IEnumerable<string> entryPoint, Azure.AI.Projects.Agents.CodeDependencyResolution dependencyResolution);
new Azure.AI.Projects.Agents.CodeConfiguration : string * seq<string> * Azure.AI.Projects.Agents.CodeDependencyResolution -> Azure.AI.Projects.Agents.CodeConfiguration
Public Sub New (runtime As String, entryPoint As IEnumerable(Of String), dependencyResolution As CodeDependencyResolution)
Parameters
- runtime
- String
The runtime identifier for code execution (e.g., 'python_3_11', 'python_3_12', 'python_3_13').
- entryPoint
- IEnumerable<String>
The entry point command and arguments for the code execution.
- dependencyResolution
- CodeDependencyResolution
How package dependencies are resolved at deployment time. Defaults to bundled,
where the caller bundles all dependencies into the uploaded zip and the service
performs no remote build. remote_build instructs the service to build
dependencies remotely from the manifest included in the uploaded zip.
Exceptions
runtime or entryPoint is null.