Freigeben über


ResponseCodeInterpreterCallCodeDeltaEvent Class

Definition

Emitted when a partial code snippet is streamed by the code interpreter.

public class ResponseCodeInterpreterCallCodeDeltaEvent : Azure.AI.AgentServer.Responses.Models.ResponseStreamEvent, System.ClientModel.Primitives.IJsonModel<Azure.AI.AgentServer.Responses.Models.ResponseCodeInterpreterCallCodeDeltaEvent>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.AgentServer.Responses.Models.ResponseCodeInterpreterCallCodeDeltaEvent>
type ResponseCodeInterpreterCallCodeDeltaEvent = class
    inherit ResponseStreamEvent
    interface IJsonModel<ResponseCodeInterpreterCallCodeDeltaEvent>
    interface IPersistableModel<ResponseCodeInterpreterCallCodeDeltaEvent>
Public Class ResponseCodeInterpreterCallCodeDeltaEvent
Inherits ResponseStreamEvent
Implements IJsonModel(Of ResponseCodeInterpreterCallCodeDeltaEvent), IPersistableModel(Of ResponseCodeInterpreterCallCodeDeltaEvent)
Inheritance
ResponseCodeInterpreterCallCodeDeltaEvent
Implements

Constructors

Name Description
ResponseCodeInterpreterCallCodeDeltaEvent(Int64, Int64, String, String)

Initializes a new instance of ResponseCodeInterpreterCallCodeDeltaEvent.

Properties

Name Description
Delta

The partial code snippet being streamed by the code interpreter.

EventType

Gets the event type discriminator (e.g. response.created, response.completed).

(Inherited from ResponseStreamEvent)
ItemId

The unique identifier of the code interpreter tool call item.

OutputIndex

The index of the output item in the response for which the code is being streamed.

SequenceNumber

Gets the SequenceNumber.

(Inherited from ResponseStreamEvent)

Methods

Name Description
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Operators

Name Description
Explicit(ClientResult to ResponseCodeInterpreterCallCodeDeltaEvent)

Explicit Interface Implementations

Name Description
IJsonModel<ResponseCodeInterpreterCallCodeDeltaEvent>.Create(Utf8JsonReader, ModelReaderWriterOptions)
IJsonModel<ResponseCodeInterpreterCallCodeDeltaEvent>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IJsonModel<ResponseStreamEvent>.Create(Utf8JsonReader, ModelReaderWriterOptions) (Inherited from ResponseStreamEvent)
IJsonModel<ResponseStreamEvent>.Write(Utf8JsonWriter, ModelReaderWriterOptions) (Inherited from ResponseStreamEvent)
IPersistableModel<ResponseCodeInterpreterCallCodeDeltaEvent>.Create(BinaryData, ModelReaderWriterOptions)
IPersistableModel<ResponseCodeInterpreterCallCodeDeltaEvent>.GetFormatFromOptions(ModelReaderWriterOptions)
IPersistableModel<ResponseCodeInterpreterCallCodeDeltaEvent>.Write(ModelReaderWriterOptions)
IPersistableModel<ResponseStreamEvent>.Create(BinaryData, ModelReaderWriterOptions) (Inherited from ResponseStreamEvent)
IPersistableModel<ResponseStreamEvent>.GetFormatFromOptions(ModelReaderWriterOptions) (Inherited from ResponseStreamEvent)
IPersistableModel<ResponseStreamEvent>.Write(ModelReaderWriterOptions) (Inherited from ResponseStreamEvent)

Extension Methods

Name Description
SnapshotEmbeddedResponse(ResponseStreamEvent, ResponseObject)

If the event is a lifecycle event that embeds a ResponseObject reference, replaces it with an immutable snapshot of the given accumulator. Non-lifecycle events are left unchanged.

Applies to