Package com.anthropic.models.messages
Class MessageCountTokensTool.TextEditor20250429
-
- All Implemented Interfaces:
public final class MessageCountTokensTool.TextEditor20250429
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classMessageCountTokensTool.TextEditor20250429.BuilderA builder for TextEditor20250429.
-
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_20250429")final Optional<CacheControlEphemeral>cacheControl()Create a cache control breakpoint at this content block. final JsonField<CacheControlEphemeral>_cacheControl()Returns the raw JSON value of cacheControl. final Map<String, JsonValue>_additionalProperties()final MessageCountTokensTool.TextEditor20250429.BuildertoBuilder()final MessageCountTokensTool.TextEditor20250429validate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static MessageCountTokensTool.TextEditor20250429.Builderbuilder()Returns a mutable builder for constructing an instance of TextEditor20250429. -
-
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_20250429")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
cacheControl
final Optional<CacheControlEphemeral> cacheControl()
Create a cache control breakpoint at this content block.
-
_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.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final MessageCountTokensTool.TextEditor20250429.Builder toBuilder()
-
validate
final MessageCountTokensTool.TextEditor20250429 validate()
-
builder
final static MessageCountTokensTool.TextEditor20250429.Builder builder()
Returns a mutable builder for constructing an instance of TextEditor20250429.
-
-
-
-