Class BetaResponseInjectEvent
-
- All Implemented Interfaces:
public final class BetaResponseInjectEventInjects input items into an active response over a WebSocket connection. The items are validated and committed atomically. Currently, the server accepts client-owned tool outputs that resume a waiting agent.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaResponseInjectEvent.BuilderA builder for BetaResponseInjectEvent.
-
Method Summary
Modifier and Type Method Description final List<BetaResponseInputItem>input()Input items to inject into the active response. final StringresponseId()The ID of the active response that should receive the input. final JsonValue_type()The event discriminator. final JsonField<List<BetaResponseInputItem>>_input()Returns the raw JSON value of input. final JsonField<String>_responseId()Returns the raw JSON value of responseId. final Map<String, JsonValue>_additionalProperties()final BetaResponseInjectEvent.BuildertoBuilder()final BetaResponseInjectEventvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaResponseInjectEvent.Builderbuilder()Returns a mutable builder for constructing an instance of BetaResponseInjectEvent. -
-
Method Detail
-
input
final List<BetaResponseInputItem> input()
Input items to inject into the active response.
-
responseId
final String responseId()
The ID of the active response that should receive the input.
-
_type
final JsonValue _type()
The event discriminator. Always
response.inject.Expected to always return the following:
JsonValue.from("response.inject")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_input
final JsonField<List<BetaResponseInputItem>> _input()
Returns the raw JSON value of input.
Unlike input, this method doesn't throw if the JSON field has an unexpected type.
-
_responseId
final JsonField<String> _responseId()
Returns the raw JSON value of responseId.
Unlike responseId, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaResponseInjectEvent.Builder toBuilder()
-
validate
final BetaResponseInjectEvent 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 BetaResponseInjectEvent.Builder builder()
Returns a mutable builder for constructing an instance of BetaResponseInjectEvent.
The following fields are required:
.input() .responseId()
-
-
-
-