struct
ACP::Protocol::ToolCallEndUpdate
- ACP::Protocol::ToolCallEndUpdate
- ACP::Protocol::SessionUpdate
- Struct
- Value
- Object
Overview
Signals that a tool invocation has completed.
NOTE Not part of the ACP spec. Use tool_call_update with status "completed" or "failed" instead.
Included Modules
- JSON::Serializable
Defined in:
acp/protocol/updates.crConstructors
-
.new(pull : JSON::PullParser)
Signals that a tool invocation has completed.
- .new(tool_call_id : String, status : String = "completed", result : String | Nil = nil, error : String | Nil = nil, meta : Hash(String, JSON::Any) | Nil = nil)
Instance Method Summary
-
#error : String | Nil
Optional error message if the tool call failed.
-
#error=(error : String | Nil)
Optional error message if the tool call failed.
-
#meta : Hash(String, JSON::Any) | Nil
Extension metadata.
-
#meta=(meta : Hash(String, JSON::Any) | Nil)
Extension metadata.
-
#result : String | Nil
Optional result content from the tool invocation.
-
#result=(result : String | Nil)
Optional result content from the tool invocation.
-
#status : String
Final status of the tool call (e.g., "completed", "failed", "cancelled").
-
#status=(status : String)
Final status of the tool call (e.g., "completed", "failed", "cancelled").
-
#tool_call_id : String
The tool call ID this end event corresponds to.
-
#tool_call_id=(tool_call_id : String)
The tool call ID this end event corresponds to.
Instance methods inherited from struct ACP::Protocol::SessionUpdate
session_update : String
session_update,
session_update=(session_update : String)
session_update=,
type : String
type
Constructor methods inherited from struct ACP::Protocol::SessionUpdate
new(pull : JSON::PullParser)
new
Constructor Detail
Signals that a tool invocation has completed.
NOTE Not part of the ACP spec. Use tool_call_update with status "completed" or "failed" instead.
Instance Method Detail
Final status of the tool call (e.g., "completed", "failed", "cancelled").