Class BetaToolChoiceMcp
-
- All Implemented Interfaces:
public final class BetaToolChoiceMcpUse this option to force the model to call a specific tool on a remote MCP server.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaToolChoiceMcp.BuilderA builder for BetaToolChoiceMcp.
-
Method Summary
Modifier and Type Method Description final StringserverLabel()The label of the MCP server to use. final JsonValue_type()For MCP tools, the type is always mcp.final Optional<String>name()The name of the tool to call on the server. final JsonField<String>_serverLabel()Returns the raw JSON value of serverLabel. final JsonField<String>_name()Returns the raw JSON value of name. final Map<String, JsonValue>_additionalProperties()final BetaToolChoiceMcp.BuildertoBuilder()final BetaToolChoiceMcpvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaToolChoiceMcp.Builderbuilder()Returns a mutable builder for constructing an instance of BetaToolChoiceMcp. -
-
Method Detail
-
serverLabel
final String serverLabel()
The label of the MCP server to use.
-
_type
final JsonValue _type()
For MCP tools, the type is always
mcp.Expected to always return the following:
JsonValue.from("mcp")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_serverLabel
final JsonField<String> _serverLabel()
Returns the raw JSON value of serverLabel.
Unlike serverLabel, 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.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaToolChoiceMcp.Builder toBuilder()
-
validate
final BetaToolChoiceMcp 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 BetaToolChoiceMcp.Builder builder()
Returns a mutable builder for constructing an instance of BetaToolChoiceMcp.
The following fields are required:
.serverLabel()
-
-
-
-