ErrorContent Class

Definition

Represents an error.

public ref class ErrorContent : Microsoft::Extensions::AI::AIContent
public class ErrorContent : Microsoft.Extensions.AI.AIContent
type ErrorContent = class
    inherit AIContent
Public Class ErrorContent
Inherits AIContent
Inheritance
ErrorContent

Remarks

Typically, ErrorContent is used for non-fatal errors, where something went wrong as part of the operation but the operation was still able to continue.

Constructors

ErrorContent(String)

Initializes a new instance of the ErrorContent class with the specified error message.

Properties

AdditionalProperties

Gets or sets additional properties for the content.

(Inherited from AIContent)
Details

Gets or sets additional details about the error.

ErrorCode

Gets or sets an error code associated with the error.

Message

Gets or sets the error message.

RawRepresentation

Gets or sets the raw representation of the content from an underlying implementation.

(Inherited from AIContent)

Applies to