HostedAgentDefinition Constructors
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.
Overloads
| Name | Description |
|---|---|
| HostedAgentDefinition(String, String) |
Initializes a new instance of HostedAgentDefinition. |
| HostedAgentDefinition(IEnumerable<ProtocolVersionRecord>, String, String) |
Initializes a new instance of HostedAgentDefinition. |
HostedAgentDefinition(String, String)
- Source:
- HostedAgentDefinition.cs
Initializes a new instance of HostedAgentDefinition.
public HostedAgentDefinition(string cpu, string memory);
new Azure.AI.Projects.Agents.HostedAgentDefinition : string * string -> Azure.AI.Projects.Agents.HostedAgentDefinition
Public Sub New (cpu As String, memory As String)
Parameters
- cpu
- String
The CPU configuration for the hosted agent.
- memory
- String
The memory configuration for the hosted agent.
Exceptions
cpu or memory is null.
Applies to
HostedAgentDefinition(IEnumerable<ProtocolVersionRecord>, String, String)
- Source:
- HostedAgentDefinition.cs
- Source:
- HostedAgentDefinition.cs
Initializes a new instance of HostedAgentDefinition.
public HostedAgentDefinition(System.Collections.Generic.IEnumerable<Azure.AI.Projects.Agents.ProtocolVersionRecord> versions, string cpu, string memory);
new Azure.AI.Projects.Agents.HostedAgentDefinition : seq<Azure.AI.Projects.Agents.ProtocolVersionRecord> * string * string -> Azure.AI.Projects.Agents.HostedAgentDefinition
Public Sub New (versions As IEnumerable(Of ProtocolVersionRecord), cpu As String, memory As String)
Parameters
- versions
- 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
cpu or memory is null.