ResponseConverterExtensions.ToResponse 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 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.