Class BetaManagedAgentsSessionThreadAgent
-
- All Implemented Interfaces:
public final class BetaManagedAgentsSessionThreadAgentResolved
agentdefinition for a singlesession_thread. Snapshot of the agent at thread creation time. The multiagent roster is not repeated here; read it fromSession.agent.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsSessionThreadAgent.BuilderA builder for BetaManagedAgentsSessionThreadAgent.
public final classBetaManagedAgentsSessionThreadAgent.SkillResolved skill as returned in API responses.
public final classBetaManagedAgentsSessionThreadAgent.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 Stringname()final List<BetaManagedAgentsSessionThreadAgent.Skill>skills()final Optional<String>system()final List<BetaManagedAgentsSessionThreadAgent.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<String>_name()Returns the raw JSON value of name. final JsonField<List<BetaManagedAgentsSessionThreadAgent.Skill>>_skills()Returns the raw JSON value of skills. final JsonField<String>_system()Returns the raw JSON value of system. final JsonField<List<BetaManagedAgentsSessionThreadAgent.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 BetaManagedAgentsSessionThreadAgent.BuildertoBuilder()final BetaManagedAgentsSessionThreadAgentvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsSessionThreadAgent.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsSessionThreadAgent. -
-
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.
-
skills
final List<BetaManagedAgentsSessionThreadAgent.Skill> skills()
-
tools
final List<BetaManagedAgentsSessionThreadAgent.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.
-
_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<BetaManagedAgentsSessionThreadAgent.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<BetaManagedAgentsSessionThreadAgent.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 BetaManagedAgentsSessionThreadAgent.Builder toBuilder()
-
validate
final BetaManagedAgentsSessionThreadAgent 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 BetaManagedAgentsSessionThreadAgent.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsSessionThreadAgent.
The following fields are required:
.id() .description() .executionIdentity() .mcpServers() .model() .name() .skills() .system() .tools() .version()
-
-
-
-