CodeConfiguration Class

Definition

Code-based deployment configuration for a hosted agent.

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

Constructors

Name Description
CodeConfiguration(String, IEnumerable<String>, CodeDependencyResolution)

Initializes a new instance of CodeConfiguration.

Properties

Name Description
ContentHash

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.

DependencyResolution

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.

EntryPoint

The entry point command and arguments for the code execution.

Runtime

The runtime identifier for code execution (e.g., 'python_3_11', 'python_3_12', 'python_3_13').

Methods

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

Explicit Interface Implementations

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

Applies to