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