struct
ACP::Protocol::ToolCallDiff
- ACP::Protocol::ToolCallDiff
- ACP::Protocol::ToolCallContent
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
Defined in:
acp/protocol/tool_call_content.crConstructors
- .new(path : String, new_text : String, old_text : String | Nil = nil, meta : Hash(String, JSON::Any) | Nil = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#deletion? : Bool
Returns true if this diff represents a file deletion (new_text is empty).
-
#meta : Hash(String, JSON::Any) | Nil
Extension metadata.
-
#meta=(meta : Hash(String, JSON::Any) | Nil)
Extension metadata.
-
#new_file? : Bool
Returns true if this diff represents a new file creation.
-
#new_text : String
The new content after modification (required).
-
#new_text=(new_text : String)
The new content after modification (required).
-
#old_text : String | Nil
The original content (nil for new files).
-
#old_text=(old_text : String | Nil)
The original content (nil for new files).
-
#path : String
The absolute file path being modified (required).
-
#path=(path : String)
The absolute file path being modified (required).
-
#type : String
Always "diff" for this variant.
Instance methods inherited from struct ACP::Protocol::ToolCallContent
type : String
type
Constructor methods inherited from struct ACP::Protocol::ToolCallContent
new(pull : JSON::PullParser)
new
Constructor Detail
def self.new(path : String, new_text : String, old_text : String | Nil = nil, meta : Hash(String, JSON::Any) | Nil = nil)
#