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

ImageBasedHostedAgentDefinition Constructor

Definition

Initializes a new instance of ImageBasedHostedAgentDefinition.

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

image
String

The image for the hosted agent.

Exceptions

containerProtocolVersions, cpu, memory or image is null.

Applies to