Class BetaResponseCreatedEvent
-
- All Implemented Interfaces:
public final class BetaResponseCreatedEventAn event that is emitted when a response is created.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaResponseCreatedEvent.BuilderA builder for BetaResponseCreatedEvent.
public final classBetaResponseCreatedEvent.AgentThe agent that owns this multi-agent streaming event.
-
Method Summary
Modifier and Type Method Description final BetaResponseresponse()The response that was created. final LongsequenceNumber()The sequence number for this event. final JsonValue_type()The type of the event. final Optional<BetaResponseCreatedEvent.Agent>agent()The agent that owns this multi-agent streaming event. final JsonField<BetaResponse>_response()Returns the raw JSON value of response. final JsonField<Long>_sequenceNumber()Returns the raw JSON value of sequenceNumber. final JsonField<BetaResponseCreatedEvent.Agent>_agent()Returns the raw JSON value of agent. final Map<String, JsonValue>_additionalProperties()final BetaResponseCreatedEvent.BuildertoBuilder()final BetaResponseCreatedEventvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaResponseCreatedEvent.Builderbuilder()Returns a mutable builder for constructing an instance of BetaResponseCreatedEvent. -
-
Method Detail
-
response
final BetaResponse response()
The response that was created.
-
sequenceNumber
final Long sequenceNumber()
The sequence number for this event.
-
_type
final JsonValue _type()
The type of the event. Always
response.created.Expected to always return the following:
JsonValue.from("response.created")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
agent
final Optional<BetaResponseCreatedEvent.Agent> agent()
The agent that owns this multi-agent streaming event.
-
_response
final JsonField<BetaResponse> _response()
Returns the raw JSON value of response.
Unlike response, this method doesn't throw if the JSON field has an unexpected type.
-
_sequenceNumber
final JsonField<Long> _sequenceNumber()
Returns the raw JSON value of sequenceNumber.
Unlike sequenceNumber, this method doesn't throw if the JSON field has an unexpected type.
-
_agent
final JsonField<BetaResponseCreatedEvent.Agent> _agent()
Returns the raw JSON value of agent.
Unlike agent, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaResponseCreatedEvent.Builder toBuilder()
-
validate
final BetaResponseCreatedEvent 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 BetaResponseCreatedEvent.Builder builder()
Returns a mutable builder for constructing an instance of BetaResponseCreatedEvent.
The following fields are required:
.response() .sequenceNumber()
-
-
-
-