Class BetaManagedAgentsAgentMessagePreview
-
- All Implemented Interfaces:
public final class BetaManagedAgentsAgentMessagePreview
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsAgentMessagePreview.BuilderA builder for BetaManagedAgentsAgentMessagePreview.
-
Method Summary
Modifier and Type Method Description final Stringid()The id the buffered agent.message will carry if it is emitted. final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("agent.message")final JsonField<String>_id()Returns the raw JSON value of id. final Map<String, JsonValue>_additionalProperties()final BetaManagedAgentsAgentMessagePreview.BuildertoBuilder()final BetaManagedAgentsAgentMessagePreviewvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsAgentMessagePreview.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsAgentMessagePreview. final static BetaManagedAgentsAgentMessagePreviewof(String id)Returns an immutable instance of BetaManagedAgentsAgentMessagePreview with the required id set to the given value. -
-
Method Detail
-
id
final String id()
The id the buffered agent.message will carry if it is emitted. Matches the event_id on this preview's event_delta events.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("agent.message")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaManagedAgentsAgentMessagePreview.Builder toBuilder()
-
validate
final BetaManagedAgentsAgentMessagePreview 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 BetaManagedAgentsAgentMessagePreview.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsAgentMessagePreview.
The following fields are required:
.id()
-
of
final static BetaManagedAgentsAgentMessagePreview of(String id)
Returns an immutable instance of BetaManagedAgentsAgentMessagePreview with the required id set to the given value.
-
-
-
-