Class ToolTextEditor20250728
-
- All Implemented Interfaces:
public final class ToolTextEditor20250728
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classToolTextEditor20250728.BuilderA builder for ToolTextEditor20250728.
public final classToolTextEditor20250728.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).
public final classToolTextEditor20250728.InputExample
-
Method Summary
Modifier and Type Method Description final JsonValue_name()Name of the tool. final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("text_editor_20250728")final Optional<List<ToolTextEditor20250728.AllowedCaller>>allowedCallers()final Optional<CacheControlEphemeral>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<List<ToolTextEditor20250728.InputExample>>inputExamples()final Optional<Long>maxCharacters()Maximum number of characters to display when viewing a file. final Optional<Boolean>strict()When true, guarantees schema validation on tool names and inputs final JsonField<List<ToolTextEditor20250728.AllowedCaller>>_allowedCallers()Returns the raw JSON value of allowedCallers. final JsonField<CacheControlEphemeral>_cacheControl()Returns the raw JSON value of cacheControl. final JsonField<Boolean>_deferLoading()Returns the raw JSON value of deferLoading. final JsonField<List<ToolTextEditor20250728.InputExample>>_inputExamples()Returns the raw JSON value of inputExamples. final JsonField<Long>_maxCharacters()Returns the raw JSON value of maxCharacters. final JsonField<Boolean>_strict()Returns the raw JSON value of strict. final Map<String, JsonValue>_additionalProperties()final ToolTextEditor20250728.BuildertoBuilder()final ToolTextEditor20250728validate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ToolTextEditor20250728.Builderbuilder()Returns a mutable builder for constructing an instance of ToolTextEditor20250728. -
-
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("str_replace_based_edit_tool")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("text_editor_20250728")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
allowedCallers
final Optional<List<ToolTextEditor20250728.AllowedCaller>> allowedCallers()
-
cacheControl
final Optional<CacheControlEphemeral> 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.
-
inputExamples
final Optional<List<ToolTextEditor20250728.InputExample>> inputExamples()
-
maxCharacters
final Optional<Long> maxCharacters()
Maximum number of characters to display when viewing a file. If not specified, defaults to displaying the full file.
-
strict
final Optional<Boolean> strict()
When true, guarantees schema validation on tool names and inputs
-
_allowedCallers
final JsonField<List<ToolTextEditor20250728.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<CacheControlEphemeral> _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.
-
_inputExamples
final JsonField<List<ToolTextEditor20250728.InputExample>> _inputExamples()
Returns the raw JSON value of inputExamples.
Unlike inputExamples, this method doesn't throw if the JSON field has an unexpected type.
-
_maxCharacters
final JsonField<Long> _maxCharacters()
Returns the raw JSON value of maxCharacters.
Unlike maxCharacters, 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 ToolTextEditor20250728.Builder toBuilder()
-
validate
final ToolTextEditor20250728 validate()
-
builder
final static ToolTextEditor20250728.Builder builder()
Returns a mutable builder for constructing an instance of ToolTextEditor20250728.
-
-
-
-