Class BetaToolSearchToolBm25_20251119
-
- All Implemented Interfaces:
public final class BetaToolSearchToolBm25_20251119
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaToolSearchToolBm25_20251119.BuilderA builder for BetaToolSearchToolBm25_20251119.
public final classBetaToolSearchToolBm25_20251119.Typepublic final classBetaToolSearchToolBm25_20251119.AllowedCallerSpecifies who can invoke a tool.
Values: direct: The model can call this tool directly. code_execution_20250825: The tool can be called from the code execution environment (v1). code_execution_20260120: The tool can be called from the code execution environment (v2 with persistence).
-
Method Summary
Modifier and Type Method Description final JsonValue_name()Name of the tool. final BetaToolSearchToolBm25_20251119.Typetype()final Optional<List<BetaToolSearchToolBm25_20251119.AllowedCaller>>allowedCallers()final Optional<BetaCacheControlEphemeral>cacheControl()Create a cache control breakpoint at this content block. final Optional<Boolean>deferLoading()If true, tool will not be included in initial system prompt. final Optional<Boolean>strict()When true, guarantees schema validation on tool names and inputs final JsonField<BetaToolSearchToolBm25_20251119.Type>_type()Returns the raw JSON value of type. final JsonField<List<BetaToolSearchToolBm25_20251119.AllowedCaller>>_allowedCallers()Returns the raw JSON value of allowedCallers. final JsonField<BetaCacheControlEphemeral>_cacheControl()Returns the raw JSON value of cacheControl. final JsonField<Boolean>_deferLoading()Returns the raw JSON value of deferLoading. final JsonField<Boolean>_strict()Returns the raw JSON value of strict. final Map<String, JsonValue>_additionalProperties()final BetaToolSearchToolBm25_20251119.BuildertoBuilder()final BetaToolSearchToolBm25_20251119validate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaToolSearchToolBm25_20251119.Builderbuilder()Returns a mutable builder for constructing an instance of BetaToolSearchToolBm25_20251119. -
-
Method Detail
-
_name
final JsonValue _name()
Name of the tool.
This is how the tool will be called by the model and in
tool_useblocks.Expected to always return the following:
JsonValue.from("tool_search_tool_bm25")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
type
final BetaToolSearchToolBm25_20251119.Type type()
-
allowedCallers
final Optional<List<BetaToolSearchToolBm25_20251119.AllowedCaller>> allowedCallers()
-
cacheControl
final Optional<BetaCacheControlEphemeral> cacheControl()
Create a cache control breakpoint at this content block.
-
deferLoading
final Optional<Boolean> deferLoading()
If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.
-
strict
final Optional<Boolean> strict()
When true, guarantees schema validation on tool names and inputs
-
_type
final JsonField<BetaToolSearchToolBm25_20251119.Type> _type()
Returns the raw JSON value of type.
Unlike type, this method doesn't throw if the JSON field has an unexpected type.
-
_allowedCallers
final JsonField<List<BetaToolSearchToolBm25_20251119.AllowedCaller>> _allowedCallers()
Returns the raw JSON value of allowedCallers.
Unlike allowedCallers, this method doesn't throw if the JSON field has an unexpected type.
-
_cacheControl
final JsonField<BetaCacheControlEphemeral> _cacheControl()
Returns the raw JSON value of cacheControl.
Unlike cacheControl, this method doesn't throw if the JSON field has an unexpected type.
-
_deferLoading
final JsonField<Boolean> _deferLoading()
Returns the raw JSON value of deferLoading.
Unlike deferLoading, this method doesn't throw if the JSON field has an unexpected type.
-
_strict
final JsonField<Boolean> _strict()
Returns the raw JSON value of strict.
Unlike strict, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaToolSearchToolBm25_20251119.Builder toBuilder()
-
validate
final BetaToolSearchToolBm25_20251119 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 BetaToolSearchToolBm25_20251119.Builder builder()
Returns a mutable builder for constructing an instance of BetaToolSearchToolBm25_20251119.
The following fields are required:
.type()
-
-
-
-