ProtocolConfiguration Class

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

Implements

public final class ProtocolConfiguration
implements JsonSerializable<ProtocolConfiguration>

Per-protocol configuration for the agent endpoint.

Constructor Summary

Constructor Description
ProtocolConfiguration()

Creates an instance of ProtocolConfiguration class.

Method Summary

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

Reads an instance of ProtocolConfiguration from the JsonReader.

A2AProtocolConfiguration getA2a()

Get the a2a property: Configuration for the A2A protocol.

ActivityProtocolConfiguration getActivity()

Get the activity property: Configuration for the activity protocol.

InvocationsProtocolConfiguration getInvocations()

Get the invocations property: Configuration for the invocations protocol.

InvocationsWsProtocolConfiguration getInvocationsWs()

Get the invocationsWs property: Configuration for the WebSocket-based invocations protocol.

McpProtocolConfiguration getMcp()

Get the mcp property: Configuration for the MCP protocol.

ResponsesProtocolConfiguration getResponses()

Get the responses property: Configuration for the responses protocol.

ProtocolConfiguration setA2a(A2AProtocolConfiguration a2a)

Set the a2a property: Configuration for the A2A protocol.

ProtocolConfiguration setActivity(ActivityProtocolConfiguration activity)

Set the activity property: Configuration for the activity protocol.

ProtocolConfiguration setInvocations(InvocationsProtocolConfiguration invocations)

Set the invocations property: Configuration for the invocations protocol.

ProtocolConfiguration setInvocationsWs(InvocationsWsProtocolConfiguration invocationsWs)

Set the invocationsWs property: Configuration for the WebSocket-based invocations protocol.

ProtocolConfiguration setMcp(McpProtocolConfiguration mcp)

Set the mcp property: Configuration for the MCP protocol.

ProtocolConfiguration setResponses(ResponsesProtocolConfiguration responses)

Set the responses property: Configuration for the responses protocol.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

ProtocolConfiguration

public ProtocolConfiguration()

Creates an instance of ProtocolConfiguration class.

Method Details

fromJson

public static ProtocolConfiguration fromJson(JsonReader jsonReader)

Reads an instance of ProtocolConfiguration from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ProtocolConfiguration 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 ProtocolConfiguration.

getA2a

public A2AProtocolConfiguration getA2a()

Get the a2a property: Configuration for the A2A protocol.

Returns:

the a2a value.

getActivity

public ActivityProtocolConfiguration getActivity()

Get the activity property: Configuration for the activity protocol.

Returns:

the activity value.

getInvocations

public InvocationsProtocolConfiguration getInvocations()

Get the invocations property: Configuration for the invocations protocol.

Returns:

the invocations value.

getInvocationsWs

public InvocationsWsProtocolConfiguration getInvocationsWs()

Get the invocationsWs property: Configuration for the WebSocket-based invocations protocol.

Returns:

the invocationsWs value.

getMcp

public McpProtocolConfiguration getMcp()

Get the mcp property: Configuration for the MCP protocol.

Returns:

the mcp value.

getResponses

public ResponsesProtocolConfiguration getResponses()

Get the responses property: Configuration for the responses protocol.

Returns:

the responses value.

setA2a

public ProtocolConfiguration setA2a(A2AProtocolConfiguration a2a)

Set the a2a property: Configuration for the A2A protocol.

Parameters:

a2a - the a2a value to set.

Returns:

the ProtocolConfiguration object itself.

setActivity

public ProtocolConfiguration setActivity(ActivityProtocolConfiguration activity)

Set the activity property: Configuration for the activity protocol.

Parameters:

activity - the activity value to set.

Returns:

the ProtocolConfiguration object itself.

setInvocations

public ProtocolConfiguration setInvocations(InvocationsProtocolConfiguration invocations)

Set the invocations property: Configuration for the invocations protocol.

Parameters:

invocations - the invocations value to set.

Returns:

the ProtocolConfiguration object itself.

setInvocationsWs

public ProtocolConfiguration setInvocationsWs(InvocationsWsProtocolConfiguration invocationsWs)

Set the invocationsWs property: Configuration for the WebSocket-based invocations protocol.

Parameters:

invocationsWs - the invocationsWs value to set.

Returns:

the ProtocolConfiguration object itself.

setMcp

public ProtocolConfiguration setMcp(McpProtocolConfiguration mcp)

Set the mcp property: Configuration for the MCP protocol.

Parameters:

mcp - the mcp value to set.

Returns:

the ProtocolConfiguration object itself.

setResponses

public ProtocolConfiguration setResponses(ResponsesProtocolConfiguration responses)

Set the responses property: Configuration for the responses protocol.

Parameters:

responses - the responses value to set.

Returns:

the ProtocolConfiguration object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to