Class BetaManagedAgentsAgent
-
- All Implemented Interfaces:
public final class BetaManagedAgentsAgentA Managed Agents
agent.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsAgent.BuilderA builder for BetaManagedAgentsAgent.
public final classBetaManagedAgentsAgent.Metadatapublic final classBetaManagedAgentsAgent.SkillResolved skill as returned in API responses.
public final classBetaManagedAgentsAgent.ToolUnion type for tool configurations returned in API responses.
-
Method Summary
Modifier and Type Method Description final Stringid()final Optional<OffsetDateTime>archivedAt()When the agent was archived. final OffsetDateTimecreatedAt()A timestamp in RFC 3339 format final Optional<String>description()final BetaManagedAgentsExecutionIdentityexecutionIdentity()Execution principal for runs of this agent. final List<BetaManagedAgentsMcpServerUrlDefinition>mcpServers()final BetaManagedAgentsAgent.Metadatametadata()final BetaManagedAgentsModelConfigmodel()Model identifier and configuration. final Optional<BetaManagedAgentsMultiagent>multiagent()Multiagent orchestration configuration. final Stringname()final List<BetaManagedAgentsAgent.Skill>skills()final Optional<String>system()final List<BetaManagedAgentsAgent.Tool>tools()final OffsetDateTimeupdatedAt()A timestamp in RFC 3339 format final Integerversion()The agent's current version. final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("agent")final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<OffsetDateTime>_archivedAt()Returns the raw JSON value of archivedAt. final JsonField<OffsetDateTime>_createdAt()Returns the raw JSON value of createdAt. final JsonField<String>_description()Returns the raw JSON value of description. final JsonField<BetaManagedAgentsExecutionIdentity>_executionIdentity()Returns the raw JSON value of executionIdentity. final JsonField<List<BetaManagedAgentsMcpServerUrlDefinition>>_mcpServers()Returns the raw JSON value of mcpServers. final JsonField<BetaManagedAgentsAgent.Metadata>_metadata()Returns the raw JSON value of metadata. final JsonField<BetaManagedAgentsModelConfig>_model()Returns the raw JSON value of model. final JsonField<BetaManagedAgentsMultiagent>_multiagent()Returns the raw JSON value of multiagent. final JsonField<String>_name()Returns the raw JSON value of name. final JsonField<List<BetaManagedAgentsAgent.Skill>>_skills()Returns the raw JSON value of skills. final JsonField<String>_system()Returns the raw JSON value of system. final JsonField<List<BetaManagedAgentsAgent.Tool>>_tools()Returns the raw JSON value of tools. final JsonField<OffsetDateTime>_updatedAt()Returns the raw JSON value of updatedAt. final JsonField<Integer>_version()Returns the raw JSON value of version. final Map<String, JsonValue>_additionalProperties()final BetaManagedAgentsAgent.BuildertoBuilder()final BetaManagedAgentsAgentvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsAgent.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsAgent. -
-
Method Detail
-
archivedAt
final Optional<OffsetDateTime> archivedAt()
When the agent was archived. Null if not archived.
-
createdAt
final OffsetDateTime createdAt()
A timestamp in RFC 3339 format
-
description
final Optional<String> description()
-
executionIdentity
final BetaManagedAgentsExecutionIdentity executionIdentity()
Execution principal for runs of this agent. Always present;
{"type": "service_account"}when runs carry no customer-named principal.
-
mcpServers
final List<BetaManagedAgentsMcpServerUrlDefinition> mcpServers()
-
metadata
final BetaManagedAgentsAgent.Metadata metadata()
-
model
final BetaManagedAgentsModelConfig model()
Model identifier and configuration.
-
multiagent
final Optional<BetaManagedAgentsMultiagent> multiagent()
Multiagent orchestration configuration. Null when the agent is single-threaded.
-
skills
final List<BetaManagedAgentsAgent.Skill> skills()
-
tools
final List<BetaManagedAgentsAgent.Tool> tools()
-
updatedAt
final OffsetDateTime updatedAt()
A timestamp in RFC 3339 format
-
version
final Integer version()
The agent's current version. Starts at 1 and increments when the agent is modified.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("agent")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.
-
_archivedAt
final JsonField<OffsetDateTime> _archivedAt()
Returns the raw JSON value of archivedAt.
Unlike archivedAt, this method doesn't throw if the JSON field has an unexpected type.
-
_createdAt
final JsonField<OffsetDateTime> _createdAt()
Returns the raw JSON value of createdAt.
Unlike createdAt, this method doesn't throw if the JSON field has an unexpected type.
-
_description
final JsonField<String> _description()
Returns the raw JSON value of description.
Unlike description, this method doesn't throw if the JSON field has an unexpected type.
-
_executionIdentity
final JsonField<BetaManagedAgentsExecutionIdentity> _executionIdentity()
Returns the raw JSON value of executionIdentity.
Unlike executionIdentity, this method doesn't throw if the JSON field has an unexpected type.
-
_mcpServers
final JsonField<List<BetaManagedAgentsMcpServerUrlDefinition>> _mcpServers()
Returns the raw JSON value of mcpServers.
Unlike mcpServers, this method doesn't throw if the JSON field has an unexpected type.
-
_metadata
final JsonField<BetaManagedAgentsAgent.Metadata> _metadata()
Returns the raw JSON value of metadata.
Unlike metadata, this method doesn't throw if the JSON field has an unexpected type.
-
_model
final JsonField<BetaManagedAgentsModelConfig> _model()
Returns the raw JSON value of model.
Unlike model, this method doesn't throw if the JSON field has an unexpected type.
-
_multiagent
final JsonField<BetaManagedAgentsMultiagent> _multiagent()
Returns the raw JSON value of multiagent.
Unlike multiagent, this method doesn't throw if the JSON field has an unexpected type.
-
_name
final JsonField<String> _name()
Returns the raw JSON value of name.
Unlike name, this method doesn't throw if the JSON field has an unexpected type.
-
_skills
final JsonField<List<BetaManagedAgentsAgent.Skill>> _skills()
Returns the raw JSON value of skills.
Unlike skills, this method doesn't throw if the JSON field has an unexpected type.
-
_system
final JsonField<String> _system()
Returns the raw JSON value of system.
Unlike system, this method doesn't throw if the JSON field has an unexpected type.
-
_tools
final JsonField<List<BetaManagedAgentsAgent.Tool>> _tools()
Returns the raw JSON value of tools.
Unlike tools, this method doesn't throw if the JSON field has an unexpected type.
-
_updatedAt
final JsonField<OffsetDateTime> _updatedAt()
Returns the raw JSON value of updatedAt.
Unlike updatedAt, this method doesn't throw if the JSON field has an unexpected type.
-
_version
final JsonField<Integer> _version()
Returns the raw JSON value of version.
Unlike version, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaManagedAgentsAgent.Builder toBuilder()
-
validate
final BetaManagedAgentsAgent 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 BetaManagedAgentsAgent.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsAgent.
The following fields are required:
.id() .archivedAt() .createdAt() .description() .executionIdentity() .mcpServers() .metadata() .model() .multiagent() .name() .skills() .system() .tools() .updatedAt() .version()
-
-
-
-