Class BetaManagedAgentsSessionAgent
-
- All Implemented Interfaces:
public final class BetaManagedAgentsSessionAgentResolved
agentdefinition for asession. Snapshot of theagentatsessioncreation time.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsSessionAgent.BuilderA builder for BetaManagedAgentsSessionAgent.
public final classBetaManagedAgentsSessionAgent.SkillResolved skill as returned in API responses.
public final classBetaManagedAgentsSessionAgent.ToolUnion type for tool configurations returned in API responses.
-
Method Summary
Modifier and Type Method Description final Stringid()final Optional<String>description()final BetaManagedAgentsExecutionIdentityexecutionIdentity()Execution principal snapshotted from the agent at session creation. final List<BetaManagedAgentsMcpServerUrlDefinition>mcpServers()final BetaManagedAgentsModelConfigmodel()Model identifier and configuration. final Optional<BetaManagedAgentsSessionMultiagent>multiagent()Resolved multiagent orchestration configuration. final Stringname()final List<BetaManagedAgentsSessionAgent.Skill>skills()final Optional<String>system()final List<BetaManagedAgentsSessionAgent.Tool>tools()final Integerversion()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<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<BetaManagedAgentsModelConfig>_model()Returns the raw JSON value of model. final JsonField<BetaManagedAgentsSessionMultiagent>_multiagent()Returns the raw JSON value of multiagent. final JsonField<String>_name()Returns the raw JSON value of name. final JsonField<List<BetaManagedAgentsSessionAgent.Skill>>_skills()Returns the raw JSON value of skills. final JsonField<String>_system()Returns the raw JSON value of system. final JsonField<List<BetaManagedAgentsSessionAgent.Tool>>_tools()Returns the raw JSON value of tools. final JsonField<Integer>_version()Returns the raw JSON value of version. final Map<String, JsonValue>_additionalProperties()final BetaManagedAgentsSessionAgent.BuildertoBuilder()final BetaManagedAgentsSessionAgentvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsSessionAgent.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsSessionAgent. -
-
Method Detail
-
description
final Optional<String> description()
-
executionIdentity
final BetaManagedAgentsExecutionIdentity executionIdentity()
Execution principal snapshotted from the agent at session creation. Always present;
{"type": "service_account"}when runs carry no customer-named principal.
-
mcpServers
final List<BetaManagedAgentsMcpServerUrlDefinition> mcpServers()
-
model
final BetaManagedAgentsModelConfig model()
Model identifier and configuration.
-
multiagent
final Optional<BetaManagedAgentsSessionMultiagent> multiagent()
Resolved multiagent orchestration configuration. Null when the agent is single-threaded.
-
skills
final List<BetaManagedAgentsSessionAgent.Skill> skills()
-
tools
final List<BetaManagedAgentsSessionAgent.Tool> tools()
-
_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.
-
_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.
-
_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<BetaManagedAgentsSessionMultiagent> _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<BetaManagedAgentsSessionAgent.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<BetaManagedAgentsSessionAgent.Tool>> _tools()
Returns the raw JSON value of tools.
Unlike tools, 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 BetaManagedAgentsSessionAgent.Builder toBuilder()
-
validate
final BetaManagedAgentsSessionAgent 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 BetaManagedAgentsSessionAgent.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsSessionAgent.
The following fields are required:
.id() .description() .executionIdentity() .mcpServers() .model() .multiagent() .name() .skills() .system() .tools() .version()
-
-
-
-