Share via


ProjectsOpenAIModelFactory.HostedAgentDefinition Method

Definition

The hosted agent definition.

public static Azure.AI.Projects.OpenAI.HostedAgentDefinition HostedAgentDefinition(Azure.AI.Projects.OpenAI.ContentFilterConfiguration contentFilterConfiguration = default, System.Collections.Generic.IEnumerable<Azure.AI.Projects.OpenAI.AgentTool> tools = default, System.Collections.Generic.IEnumerable<Azure.AI.Projects.OpenAI.ProtocolVersionRecord> containerProtocolVersions = default, string cpu = default, string memory = default, System.Collections.Generic.IDictionary<string,string> environmentVariables = default);
static member HostedAgentDefinition : Azure.AI.Projects.OpenAI.ContentFilterConfiguration * seq<Azure.AI.Projects.OpenAI.AgentTool> * seq<Azure.AI.Projects.OpenAI.ProtocolVersionRecord> * string * string * System.Collections.Generic.IDictionary<string, string> -> Azure.AI.Projects.OpenAI.HostedAgentDefinition
Public Shared Function HostedAgentDefinition (Optional contentFilterConfiguration As ContentFilterConfiguration = Nothing, Optional tools As IEnumerable(Of AgentTool) = Nothing, Optional containerProtocolVersions As IEnumerable(Of ProtocolVersionRecord) = Nothing, Optional cpu As String = Nothing, Optional memory As String = Nothing, Optional environmentVariables As IDictionary(Of String, String) = Nothing) As HostedAgentDefinition

Parameters

contentFilterConfiguration
ContentFilterConfiguration

Configuration for Responsible AI (RAI) content filtering and safety features.

tools
IEnumerable<AgentTool>

An array of tools the hosted agent's model may call while generating a response. You can specify which tool to use by setting the tool_choice parameter.

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.

environmentVariables
IDictionary<String,String>

Environment variables to set in the hosted agent container.

Returns

A new HostedAgentDefinition instance for mocking.

Applies to