Class BetaManagedAgentsAgentMcpToolResultEvent
-
- All Implemented Interfaces:
public final class BetaManagedAgentsAgentMcpToolResultEventEvent representing the result of an MCP tool execution.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsAgentMcpToolResultEvent.BuilderA builder for BetaManagedAgentsAgentMcpToolResultEvent.
public final classBetaManagedAgentsAgentMcpToolResultEvent.Typepublic final classBetaManagedAgentsAgentMcpToolResultEvent.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 StringmcpToolUseId()The id of the agent.mcp_tool_useevent this result corresponds to.final OffsetDateTimeprocessedAt()A timestamp in RFC 3339 format final BetaManagedAgentsAgentMcpToolResultEvent.Typetype()final Optional<List<BetaManagedAgentsAgentMcpToolResultEvent.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<String>_mcpToolUseId()Returns the raw JSON value of mcpToolUseId. final JsonField<OffsetDateTime>_processedAt()Returns the raw JSON value of processedAt. final JsonField<BetaManagedAgentsAgentMcpToolResultEvent.Type>_type()Returns the raw JSON value of type. final JsonField<List<BetaManagedAgentsAgentMcpToolResultEvent.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 BetaManagedAgentsAgentMcpToolResultEvent.BuildertoBuilder()final BetaManagedAgentsAgentMcpToolResultEventvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsAgentMcpToolResultEvent.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsAgentMcpToolResultEvent. -
-
Method Detail
-
mcpToolUseId
final String mcpToolUseId()
The id of the
agent.mcp_tool_useevent this result corresponds to.
-
processedAt
final OffsetDateTime processedAt()
A timestamp in RFC 3339 format
-
type
final BetaManagedAgentsAgentMcpToolResultEvent.Type type()
-
content
final Optional<List<BetaManagedAgentsAgentMcpToolResultEvent.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.
-
_mcpToolUseId
final JsonField<String> _mcpToolUseId()
Returns the raw JSON value of mcpToolUseId.
Unlike mcpToolUseId, 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.
-
_type
final JsonField<BetaManagedAgentsAgentMcpToolResultEvent.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<BetaManagedAgentsAgentMcpToolResultEvent.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 BetaManagedAgentsAgentMcpToolResultEvent.Builder toBuilder()
-
validate
final BetaManagedAgentsAgentMcpToolResultEvent 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 BetaManagedAgentsAgentMcpToolResultEvent.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsAgentMcpToolResultEvent.
The following fields are required:
.id() .mcpToolUseId() .processedAt() .type()
-
-
-
-