Share via


ResponseConverterExtensions.ToResponse Method

Definition

Converts an agent run response to a response contract object.

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

Parameters

agentRunResponse
AgentRunResponse

The agent run response to convert.

request
CreateResponseRequest

The create response request.

context
AgentInvocationContext

The agent invocation context.

Returns

A response contract object.

Applies to