ResponsesExtensions.ToAgentId(AgentReference) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.