Share via


ResponseConverterExtensions.ToResponseError(ErrorContent) Method

Definition

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.

Applies to