Condividi tramite


ResponseConverterExtensions.ToResponse Method

Definition

Converts an agent response to a response contract object.

public static Azure.AI.AgentServer.Contracts.Generated.Responses.Response ToResponse(this Microsoft.Agents.AI.AgentResponse agentResponse, Azure.AI.AgentServer.Contracts.Generated.Responses.CreateResponseRequest request, Azure.AI.AgentServer.Responses.Invocation.AgentRunContext context);
static member ToResponse : Microsoft.Agents.AI.AgentResponse * Azure.AI.AgentServer.Contracts.Generated.Responses.CreateResponseRequest * Azure.AI.AgentServer.Responses.Invocation.AgentRunContext -> Azure.AI.AgentServer.Contracts.Generated.Responses.Response
<Extension()>
Public Function ToResponse (agentResponse As AgentResponse, request As CreateResponseRequest, context As AgentRunContext) As Response

Parameters

agentResponse
AgentResponse

The agent response to convert.

request
CreateResponseRequest

The create response request.

context
AgentRunContext

The agent run context.

Returns

A response contract object.

Applies to