AgentEndpointConfig Class

  • java.lang.Object
    • com.azure.ai.agents.models.AgentEndpointConfig

Implements

public final class AgentEndpointConfig
implements JsonSerializable<AgentEndpointConfig>

The AgentEndpointConfig model.

Constructor Summary

Constructor Description
AgentEndpointConfig()

Creates an instance of AgentEndpointConfig class.

Method Summary

Modifier and Type Method and Description
static AgentEndpointConfig fromJson(JsonReader jsonReader)

Reads an instance of AgentEndpointConfig from the JsonReader.

List<AgentEndpointAuthorizationScheme> getAuthorizationSchemes()

Get the authorizationSchemes property: The authorization schemes supported by the agent endpoint.

ProtocolConfiguration getProtocolConfiguration()

Get the protocolConfiguration property: Per-protocol configuration for the agent endpoint.

PublishApprovalStatus getPublishApprovalStatus()

Get the publishApprovalStatus property: The Microsoft Agent Certification review status of the Microsoft 365 store title published for this agent.

VersionSelector getVersionSelector()

Get the versionSelector property: The version selector of the agent endpoint determines how traffic is routed to different versions of the agent.

AgentEndpointConfig setAuthorizationSchemes(List<AgentEndpointAuthorizationScheme> authorizationSchemes)

Set the authorizationSchemes property: The authorization schemes supported by the agent endpoint.

AgentEndpointConfig setProtocolConfiguration(ProtocolConfiguration protocolConfiguration)

Set the protocolConfiguration property: Per-protocol configuration for the agent endpoint.

AgentEndpointConfig setVersionSelector(VersionSelector versionSelector)

Set the versionSelector property: The version selector of the agent endpoint determines how traffic is routed to different versions of the agent.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

AgentEndpointConfig

public AgentEndpointConfig()

Creates an instance of AgentEndpointConfig class.

Method Details

fromJson

public static AgentEndpointConfig fromJson(JsonReader jsonReader)

Reads an instance of AgentEndpointConfig from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AgentEndpointConfig if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the AgentEndpointConfig.

getAuthorizationSchemes

public List<AgentEndpointAuthorizationScheme> getAuthorizationSchemes()

Get the authorizationSchemes property: The authorization schemes supported by the agent endpoint.

Returns:

the authorizationSchemes value.

getProtocolConfiguration

public ProtocolConfiguration getProtocolConfiguration()

Get the protocolConfiguration property: Per-protocol configuration for the agent endpoint.

Returns:

the protocolConfiguration value.

getPublishApprovalStatus

public PublishApprovalStatus getPublishApprovalStatus()

Get the publishApprovalStatus property: The Microsoft Agent Certification review status of the Microsoft 365 store title published for this agent. Server-populated and best-effort: it is absent when the status could not be determined, and an absent value must not be interpreted as the agent not being published. No value is terminal, because publishing a new version of an agent reuses the same store title and sends it back through review.

Returns:

the publishApprovalStatus value.

getVersionSelector

public VersionSelector getVersionSelector()

Get the versionSelector property: The version selector of the agent endpoint determines how traffic is routed to different versions of the agent.

Returns:

the versionSelector value.

setAuthorizationSchemes

public AgentEndpointConfig setAuthorizationSchemes(List<AgentEndpointAuthorizationScheme> authorizationSchemes)

Set the authorizationSchemes property: The authorization schemes supported by the agent endpoint.

Parameters:

authorizationSchemes - the authorizationSchemes value to set.

Returns:

the AgentEndpointConfig object itself.

setProtocolConfiguration

public AgentEndpointConfig setProtocolConfiguration(ProtocolConfiguration protocolConfiguration)

Set the protocolConfiguration property: Per-protocol configuration for the agent endpoint.

Parameters:

protocolConfiguration - the protocolConfiguration value to set.

Returns:

the AgentEndpointConfig object itself.

setVersionSelector

public AgentEndpointConfig setVersionSelector(VersionSelector versionSelector)

Set the versionSelector property: The version selector of the agent endpoint determines how traffic is routed to different versions of the agent.

Parameters:

versionSelector - the versionSelector value to set.

Returns:

the AgentEndpointConfig object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to