AgentVersionFromCodeMetadata Class

Definition

JSON metadata for code-based agent operations (create, update, create version). The agent name comes from the URL path parameter or the x-ms-agent-name header, so it is not included in this model. The content hash (SHA-256 of the zip) is carried in the x-ms-code-zip-sha256 header.

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

Constructors

Name Description
AgentVersionFromCodeMetadata(HostedAgentDefinition)

Initializes a new instance of AgentVersionFromCodeMetadata.

Properties

Name Description
Definition

The hosted agent definition including code_configuration (runtime, entry_point), cpu, memory, and protocol_versions.

Description

A human-readable description of the agent.

Metadata

Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard. Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.

Methods

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

Explicit Interface Implementations

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

Applies to