你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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