Share via


ProjectsOpenAIModelFactory.ImageBasedHostedAgentDefinition Method

Definition

The image-based deployment definition for a hosted agent.

public static Azure.AI.Projects.OpenAI.ImageBasedHostedAgentDefinition ImageBasedHostedAgentDefinition(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, string image = default);
static member ImageBasedHostedAgentDefinition : 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> * string -> Azure.AI.Projects.OpenAI.ImageBasedHostedAgentDefinition
Public Shared Function ImageBasedHostedAgentDefinition (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, Optional image As String = Nothing) As ImageBasedHostedAgentDefinition

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.

image
String

The image for the hosted agent.

Returns

A new ImageBasedHostedAgentDefinition instance for mocking.

Applies to