Class BetaManagedAgentsDeltaEvent
-
- All Implemented Interfaces:
public final class BetaManagedAgentsDeltaEventAn incremental update to an event that is still being streamed. Deltas are best-effort and may stop early; when the buffered event with id == event_id is produced it carries the complete content. A model request that ends early (an error or interrupt) produces no buffered event — its terminal span.model_request_end closes the preview. Only sent on stream connections that opt in via event_deltas; never appears in event history.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsDeltaEvent.BuilderA builder for BetaManagedAgentsDeltaEvent.
-
Method Summary
Modifier and Type Method Description final BetaManagedAgentsDeltaContentdelta()One fragment of the previewed event. final StringeventId()The id of the event being previewed. final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("event_delta")final JsonField<BetaManagedAgentsDeltaContent>_delta()Returns the raw JSON value of delta. final JsonField<String>_eventId()Returns the raw JSON value of eventId. final Map<String, JsonValue>_additionalProperties()final BetaManagedAgentsDeltaEvent.BuildertoBuilder()final BetaManagedAgentsDeltaEventvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsDeltaEvent.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsDeltaEvent. -
-
Method Detail
-
delta
final BetaManagedAgentsDeltaContent delta()
One fragment of the previewed event. The delta type is named for the previewed event's field it streams into: agent.message events stream content_delta fragments, each a partial element of the content array.
-
eventId
final String eventId()
The id of the event being previewed. Matches event.id on the corresponding event_start and the buffered event that reconciles the preview.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("event_delta")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_delta
final JsonField<BetaManagedAgentsDeltaContent> _delta()
Returns the raw JSON value of delta.
Unlike delta, this method doesn't throw if the JSON field has an unexpected type.
-
_eventId
final JsonField<String> _eventId()
Returns the raw JSON value of eventId.
Unlike eventId, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaManagedAgentsDeltaEvent.Builder toBuilder()
-
validate
final BetaManagedAgentsDeltaEvent validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static BetaManagedAgentsDeltaEvent.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsDeltaEvent.
The following fields are required:
.delta() .eventId()
-
-
-
-