你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

HostedAgentDefinition Constructor

Definition

Initializes a new instance of HostedAgentDefinition.

public HostedAgentDefinition(System.Collections.Generic.IEnumerable<Azure.AI.Projects.OpenAI.ProtocolVersionRecord> containerProtocolVersions, string cpu, string memory);
new Azure.AI.Projects.OpenAI.HostedAgentDefinition : seq<Azure.AI.Projects.OpenAI.ProtocolVersionRecord> * string * string -> Azure.AI.Projects.OpenAI.HostedAgentDefinition
Public Sub New (containerProtocolVersions As IEnumerable(Of ProtocolVersionRecord), cpu As String, memory As String)

Parameters

containerProtocolVersions
IEnumerable<ProtocolVersionRecord>

The protocols that the agent supports for ingress communication of the containers.

cpu
String

The CPU configuration for the hosted agent.

memory
String

The memory configuration for the hosted agent.

Exceptions

containerProtocolVersions, cpu or memory is null.

Applies to