Class BetaManagedAgentsMcpToolsetParams
-
- All Implemented Interfaces:
public final class BetaManagedAgentsMcpToolsetParamsConfiguration for tools from an MCP server defined in
mcp_servers.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsMcpToolsetParams.BuilderA builder for BetaManagedAgentsMcpToolsetParams.
-
Method Summary
Modifier and Type Method Description final StringmcpServerName()Name of the MCP server. final Optional<List<BetaManagedAgentsMcpToolConfigParams>>configs()Per-tool configuration overrides. final Optional<BetaManagedAgentsMcpToolsetDefaultConfigParams>defaultConfig()Default configuration for all tools from this server. final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("mcp_toolset")final JsonField<String>_mcpServerName()Returns the raw JSON value of mcpServerName. final JsonField<List<BetaManagedAgentsMcpToolConfigParams>>_configs()Returns the raw JSON value of configs. final JsonField<BetaManagedAgentsMcpToolsetDefaultConfigParams>_defaultConfig()Returns the raw JSON value of defaultConfig. final Map<String, JsonValue>_additionalProperties()final BetaManagedAgentsMcpToolsetParams.BuildertoBuilder()final BetaManagedAgentsMcpToolsetParamsvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsMcpToolsetParams.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsMcpToolsetParams. final static BetaManagedAgentsMcpToolsetParamsof(String mcpServerName)Returns an immutable instance of BetaManagedAgentsMcpToolsetParams with the required mcpServerName set to the given value. -
-
Method Detail
-
mcpServerName
final String mcpServerName()
Name of the MCP server. Must match a server name from the mcp_servers array. 1-255 characters.
-
configs
final Optional<List<BetaManagedAgentsMcpToolConfigParams>> configs()
Per-tool configuration overrides.
-
defaultConfig
final Optional<BetaManagedAgentsMcpToolsetDefaultConfigParams> defaultConfig()
Default configuration for all tools from this server.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("mcp_toolset")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_mcpServerName
final JsonField<String> _mcpServerName()
Returns the raw JSON value of mcpServerName.
Unlike mcpServerName, this method doesn't throw if the JSON field has an unexpected type.
-
_configs
final JsonField<List<BetaManagedAgentsMcpToolConfigParams>> _configs()
Returns the raw JSON value of configs.
Unlike configs, this method doesn't throw if the JSON field has an unexpected type.
-
_defaultConfig
final JsonField<BetaManagedAgentsMcpToolsetDefaultConfigParams> _defaultConfig()
Returns the raw JSON value of defaultConfig.
Unlike defaultConfig, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaManagedAgentsMcpToolsetParams.Builder toBuilder()
-
validate
final BetaManagedAgentsMcpToolsetParams 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 BetaManagedAgentsMcpToolsetParams.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsMcpToolsetParams.
The following fields are required:
.mcpServerName()
-
of
final static BetaManagedAgentsMcpToolsetParams of(String mcpServerName)
Returns an immutable instance of BetaManagedAgentsMcpToolsetParams with the required mcpServerName set to the given value.
-
-
-
-