Class BetaMemoryTool20250818StrReplaceCommand
-
- All Implemented Interfaces:
public final class BetaMemoryTool20250818StrReplaceCommand
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaMemoryTool20250818StrReplaceCommand.BuilderA builder for BetaMemoryTool20250818StrReplaceCommand.
-
Method Summary
Modifier and Type Method Description final JsonValue_command()Command type identifierExpected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("str_replace")final StringnewStr()Text to replace with final StringoldStr()Text to search for and replace final Stringpath()Path to the file where text should be replaced final JsonField<String>_newStr()Returns the raw JSON value of newStr. final JsonField<String>_oldStr()Returns the raw JSON value of oldStr. final JsonField<String>_path()Returns the raw JSON value of path. final Map<String, JsonValue>_additionalProperties()final BetaMemoryTool20250818StrReplaceCommand.BuildertoBuilder()final BetaMemoryTool20250818StrReplaceCommandvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaMemoryTool20250818StrReplaceCommand.Builderbuilder()Returns a mutable builder for constructing an instance of BetaMemoryTool20250818StrReplaceCommand. -
-
Method Detail
-
_command
final JsonValue _command()
Command type identifier
Expected to always return the following:
JsonValue.from("str_replace")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_newStr
final JsonField<String> _newStr()
Returns the raw JSON value of newStr.
Unlike newStr, this method doesn't throw if the JSON field has an unexpected type.
-
_oldStr
final JsonField<String> _oldStr()
Returns the raw JSON value of oldStr.
Unlike oldStr, this method doesn't throw if the JSON field has an unexpected type.
-
_path
final JsonField<String> _path()
Returns the raw JSON value of path.
Unlike path, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaMemoryTool20250818StrReplaceCommand.Builder toBuilder()
-
validate
final BetaMemoryTool20250818StrReplaceCommand 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 BetaMemoryTool20250818StrReplaceCommand.Builder builder()
Returns a mutable builder for constructing an instance of BetaMemoryTool20250818StrReplaceCommand.
The following fields are required:
.newStr() .oldStr() .path()
-
-
-
-