Share via


ResponsesExtensions.ToAgentId(AgentReference) Method

Definition

Converts an agent reference to an agent ID.

public static Azure.AI.AgentServer.Contracts.Generated.Agents.AgentId? ToAgentId(this Azure.AI.AgentServer.Contracts.Generated.Agents.AgentReference? agent);
static member ToAgentId : Azure.AI.AgentServer.Contracts.Generated.Agents.AgentReference -> Azure.AI.AgentServer.Contracts.Generated.Agents.AgentId
<Extension()>
Public Function ToAgentId (agent As AgentReference) As AgentId

Parameters

agent
AgentReference

The agent reference.

Returns

An agent ID, or null if the agent reference is null.

Applies to