ProjectsAgentsModelFactory.CodeConfiguration Method
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.
Code-based deployment configuration for a hosted agent.
public static Azure.AI.Projects.Agents.CodeConfiguration CodeConfiguration(string runtime = default, System.Collections.Generic.IEnumerable<string> entryPoint = default, Azure.AI.Projects.Agents.CodeDependencyResolution dependencyResolution = default, string contentHash = default);
static member CodeConfiguration : string * seq<string> * Azure.AI.Projects.Agents.CodeDependencyResolution * string -> Azure.AI.Projects.Agents.CodeConfiguration
Public Shared Function CodeConfiguration (Optional runtime As String = Nothing, Optional entryPoint As IEnumerable(Of String) = Nothing, Optional dependencyResolution As CodeDependencyResolution = Nothing, Optional contentHash As String = Nothing) As CodeConfiguration
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.
- contentHash
- String
The SHA-256 hex digest of the uploaded code zip. Set by the service from the x-ms-code-zip-sha256 request header; read-only in responses and never accepted in request payloads.
Returns
A new CodeConfiguration instance for mocking.