ResponseConverterExtensions.ToResponseError(ErrorContent) 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 error content to a response error object.
public static Azure.AI.AgentServer.Contracts.Generated.OpenAI.ResponseError ToResponseError(this Microsoft.Extensions.AI.ErrorContent errorContent);
static member ToResponseError : Microsoft.Extensions.AI.ErrorContent -> Azure.AI.AgentServer.Contracts.Generated.OpenAI.ResponseError
<Extension()>
Public Function ToResponseError (errorContent As ErrorContent) As ResponseError
Parameters
- errorContent
- ErrorContent
The error content to convert.
Returns
A response error object.