ResponseConverterExtensions Class
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.
Provides extension methods for converting AI framework response types to contract types.
public static class ResponseConverterExtensions
type ResponseConverterExtensions = class
Public Module ResponseConverterExtensions
- Inheritance
-
ResponseConverterExtensions
Methods
| Name | Description |
|---|---|
| ToFunctionToolCallItemResource(FunctionCallContent, String, CreatedBy) |
Converts a function call content to a function tool call item resource. |
| ToFunctionToolCallOutputItemResource(FunctionResultContent, String, CreatedBy) |
Converts a function result content to a function tool call output item resource. |
| ToItemContent(AIContent) |
Converts AI content to an item content object. |
| ToItemResource(ChatMessage, IIdGenerator, String) |
Converts a chat message to a collection of item resources. |
| ToResponse(AgentRunResponse, CreateResponseRequest, AgentInvocationContext) |
Converts an agent run response to a response contract object. |
| ToResponseError(ErrorContent) |
Converts an error content to a response error object. |
| ToResponseUsage(UsageDetails) |
Converts usage details to a response usage object. |