ResponseErrorEvent 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.
Emitted when an error occurs.
public class ResponseErrorEvent : Azure.AI.AgentServer.Contracts.Generated.OpenAI.ResponseStreamEvent, System.ClientModel.Primitives.IJsonModel<Azure.AI.AgentServer.Contracts.Generated.OpenAI.ResponseErrorEvent>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.AgentServer.Contracts.Generated.OpenAI.ResponseErrorEvent>
type ResponseErrorEvent = class
inherit ResponseStreamEvent
interface IUtf8JsonSerializable
interface IJsonModel<ResponseErrorEvent>
interface IPersistableModel<ResponseErrorEvent>
Public Class ResponseErrorEvent
Inherits ResponseStreamEvent
Implements IJsonModel(Of ResponseErrorEvent), IPersistableModel(Of ResponseErrorEvent)
- Inheritance
- Implements
Constructors
| Name | Description |
|---|---|
| ResponseErrorEvent() |
Initializes a new instance of ResponseErrorEvent for deserialization. |
| ResponseErrorEvent(Int32, String, String, String) |
Initializes a new instance of ResponseErrorEvent. |
| ResponseErrorEvent(ResponseStreamEventType, Int32, IDictionary<String,BinaryData>, String, String, String) |
Initializes a new instance of ResponseErrorEvent. |
Properties
| Name | Description |
|---|---|
| Code |
The error code. |
| Message |
The error message. |
| Param |
The error parameter. |
| SequenceNumber |
The sequence number for this event. (Inherited from ResponseStreamEvent) |
| Type |
Gets or sets the type. (Inherited from ResponseStreamEvent) |
Methods
| Name | Description |
|---|---|
| DeserializeResponseErrorEvent(JsonElement, ModelReaderWriterOptions) | |
| FromResponse(Response) |
Deserializes the model from a raw response. |
| JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) | |
| ToRequestContent() |
Convert into a RequestContent. |