Class BetaManagedAgentsAgentWithOverridesParams
-
- All Implemented Interfaces:
public final class BetaManagedAgentsAgentWithOverridesParamsReference to an
agentplus optional configuration overrides. Each provided field replaces the agent's value for the caller's use; the agent resource is unchanged.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsAgentWithOverridesParams.BuilderA builder for BetaManagedAgentsAgentWithOverridesParams.
public final classBetaManagedAgentsAgentWithOverridesParams.ModelReplacement model. Accepts the model string, e.g.
claude-opus-5-5, or amodel_configobject. Omit to use the agent's model.public final classBetaManagedAgentsAgentWithOverridesParams.ToolUnion type for tool configurations in the tools array.
-
Method Summary
Modifier and Type Method Description final Stringid()The agentID.final Optional<List<BetaManagedAgentsUrlMcpServerParams>>mcpServers()Replacement MCP server list. final Optional<BetaManagedAgentsAgentWithOverridesParams.Model>model()Replacement model. final Optional<List<BetaManagedAgentsSkillParams>>skills()Replacement skill list. final Optional<String>system()Replacement system prompt. final Optional<List<BetaManagedAgentsAgentWithOverridesParams.Tool>>tools()Replacement tool list. final Optional<Integer>version()The specific agentversion to use.final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("agent_with_overrides")final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<List<BetaManagedAgentsUrlMcpServerParams>>_mcpServers()Returns the raw JSON value of mcpServers. final JsonField<BetaManagedAgentsAgentWithOverridesParams.Model>_model()Returns the raw JSON value of model. final JsonField<List<BetaManagedAgentsSkillParams>>_skills()Returns the raw JSON value of skills. final JsonField<String>_system()Returns the raw JSON value of system. final JsonField<List<BetaManagedAgentsAgentWithOverridesParams.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 BetaManagedAgentsAgentWithOverridesParams.BuildertoBuilder()final BetaManagedAgentsAgentWithOverridesParamsvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsAgentWithOverridesParams.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsAgentWithOverridesParams. final static BetaManagedAgentsAgentWithOverridesParamsof(String id)Returns an immutable instance of BetaManagedAgentsAgentWithOverridesParams with the required id set to the given value. -
-
Method Detail
-
mcpServers
final Optional<List<BetaManagedAgentsUrlMcpServerParams>> mcpServers()
Replacement MCP server list. Full replacement: the provided array becomes the MCP servers. Send an empty array to clear; omit to preserve the agent's servers.
-
model
final Optional<BetaManagedAgentsAgentWithOverridesParams.Model> model()
Replacement model. Accepts the model string, e.g.
claude-opus-5-5, or amodel_configobject. Omit to use the agent's model.
-
skills
final Optional<List<BetaManagedAgentsSkillParams>> skills()
Replacement skill list. Full replacement: the provided array becomes the skills. Send an empty array to clear; omit to preserve the agent's skills.
-
system
final Optional<String> system()
Replacement system prompt. Up to 100,000 characters. Set to null to clear the agent's system prompt; omit to preserve it.
-
tools
final Optional<List<BetaManagedAgentsAgentWithOverridesParams.Tool>> tools()
Replacement tool list. Full replacement: the provided array becomes the tool configuration. Send an empty array to clear; omit to preserve the agent's tools.
-
version
final Optional<Integer> version()
The specific
agentversion to use. Omit to use the latest version.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("agent_with_overrides")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.
-
_mcpServers
final JsonField<List<BetaManagedAgentsUrlMcpServerParams>> _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<BetaManagedAgentsAgentWithOverridesParams.Model> _model()
Returns the raw JSON value of model.
Unlike model, this method doesn't throw if the JSON field has an unexpected type.
-
_skills
final JsonField<List<BetaManagedAgentsSkillParams>> _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<BetaManagedAgentsAgentWithOverridesParams.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 BetaManagedAgentsAgentWithOverridesParams.Builder toBuilder()
-
validate
final BetaManagedAgentsAgentWithOverridesParams 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 BetaManagedAgentsAgentWithOverridesParams.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsAgentWithOverridesParams.
The following fields are required:
.id()
-
of
final static BetaManagedAgentsAgentWithOverridesParams of(String id)
Returns an immutable instance of BetaManagedAgentsAgentWithOverridesParams with the required id set to the given value.
-
-
-
-