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