Class BetaManagedAgentsAgentToolResultEvent
-
- All Implemented Interfaces:
public final class BetaManagedAgentsAgentToolResultEventEvent representing the result of an agent tool execution.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsAgentToolResultEvent.BuilderA builder for BetaManagedAgentsAgentToolResultEvent.
public final classBetaManagedAgentsAgentToolResultEvent.Typepublic final classBetaManagedAgentsAgentToolResultEvent.ContentContent block in a tool result. Can be
text,image,document, orsearch_result.
-
Method Summary
Modifier and Type Method Description final Stringid()Unique identifier for this event. final OffsetDateTimeprocessedAt()A timestamp in RFC 3339 format final StringtoolUseId()The id of the agent.tool_useevent this result corresponds to.final BetaManagedAgentsAgentToolResultEvent.Typetype()final Optional<List<BetaManagedAgentsAgentToolResultEvent.Content>>content()The result content returned by the tool. final Optional<Boolean>isError()Whether the tool execution resulted in an error. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<OffsetDateTime>_processedAt()Returns the raw JSON value of processedAt. final JsonField<String>_toolUseId()Returns the raw JSON value of toolUseId. final JsonField<BetaManagedAgentsAgentToolResultEvent.Type>_type()Returns the raw JSON value of type. final JsonField<List<BetaManagedAgentsAgentToolResultEvent.Content>>_content()Returns the raw JSON value of content. final JsonField<Boolean>_isError()Returns the raw JSON value of isError. final Map<String, JsonValue>_additionalProperties()final BetaManagedAgentsAgentToolResultEvent.BuildertoBuilder()final BetaManagedAgentsAgentToolResultEventvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsAgentToolResultEvent.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsAgentToolResultEvent. -
-
Method Detail
-
processedAt
final OffsetDateTime processedAt()
A timestamp in RFC 3339 format
-
type
final BetaManagedAgentsAgentToolResultEvent.Type type()
-
content
final Optional<List<BetaManagedAgentsAgentToolResultEvent.Content>> content()
The result content returned by the tool.
-
_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.
-
_processedAt
final JsonField<OffsetDateTime> _processedAt()
Returns the raw JSON value of processedAt.
Unlike processedAt, this method doesn't throw if the JSON field has an unexpected type.
-
_toolUseId
final JsonField<String> _toolUseId()
Returns the raw JSON value of toolUseId.
Unlike toolUseId, this method doesn't throw if the JSON field has an unexpected type.
-
_type
final JsonField<BetaManagedAgentsAgentToolResultEvent.Type> _type()
Returns the raw JSON value of type.
Unlike type, this method doesn't throw if the JSON field has an unexpected type.
-
_content
final JsonField<List<BetaManagedAgentsAgentToolResultEvent.Content>> _content()
Returns the raw JSON value of content.
Unlike content, this method doesn't throw if the JSON field has an unexpected type.
-
_isError
final JsonField<Boolean> _isError()
Returns the raw JSON value of isError.
Unlike isError, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaManagedAgentsAgentToolResultEvent.Builder toBuilder()
-
validate
final BetaManagedAgentsAgentToolResultEvent 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 BetaManagedAgentsAgentToolResultEvent.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsAgentToolResultEvent.
The following fields are required:
.id() .processedAt() .toolUseId() .type()
-
-
-
-