struct
ACP::Protocol::ToolCallUpdate
- ACP::Protocol::ToolCallUpdate
- ACP::Protocol::SessionUpdate
- Struct
- Value
- Object
Overview
Notification that a new tool call has been initiated by the language model. See: https://agentclientprotocol.com/protocol/tool-calls#creating
Included Modules
- JSON::Serializable
Defined in:
acp/protocol/updates.crConstructors
- .new(tool_call_id : String, title : String, kind : String | Nil = nil, status : String | Nil = "pending", content : Array(JSON::Any) | Nil = nil, locations : Array(JSON::Any) | Nil = nil, raw_input : JSON::Any | Nil = nil, raw_output : JSON::Any | Nil = nil, tool_name : String | Nil = nil, meta : Hash(String, JSON::Any) | Nil = nil)
-
.new(pull : JSON::PullParser)
Notification that a new tool call has been initiated by the language model.
Instance Method Summary
-
#content : Array(JSON::Any) | Nil
Content produced by the tool call.
-
#content=(content : Array(JSON::Any) | Nil)
Content produced by the tool call.
-
#kind : String | Nil
The category of tool being invoked.
-
#kind=(kind : String | Nil)
The category of tool being invoked.
-
#locations : Array(JSON::Any) | Nil
File locations affected by this tool call.
-
#locations=(locations : Array(JSON::Any) | Nil)
File locations affected by this tool call.
-
#meta : Hash(String, JSON::Any) | Nil
Extension metadata.
-
#meta=(meta : Hash(String, JSON::Any) | Nil)
Extension metadata.
-
#raw_input : JSON::Any | Nil
Raw input parameters sent to the tool.
-
#raw_input=(raw_input : JSON::Any | Nil)
Raw input parameters sent to the tool.
-
#raw_output : JSON::Any | Nil
Raw output returned by the tool.
-
#raw_output=(raw_output : JSON::Any | Nil)
Raw output returned by the tool.
-
#status : String | Nil
Current execution status: pending, in_progress, completed, failed.
-
#status=(status : String | Nil)
Current execution status: pending, in_progress, completed, failed.
-
#title : String
Human-readable title describing what the tool is doing (required).
-
#title=(title : String)
Human-readable title describing what the tool is doing (required).
-
#tool_call_id : String
Unique identifier for this tool call within the session (required).
-
#tool_call_id=(tool_call_id : String)
Unique identifier for this tool call within the session (required).
-
#tool_name : String | Nil
The name of the tool being invoked (non-standard, backward compat).
-
#tool_name=(tool_name : String | Nil)
The name of the tool being invoked (non-standard, backward compat).
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
Notification that a new tool call has been initiated by the language model. See: https://agentclientprotocol.com/protocol/tool-calls#creating
Instance Method Detail
The category of tool being invoked. Helps clients choose icons. Values: read, edit, delete, move, search, execute, think, fetch, switch_mode, other
The category of tool being invoked. Helps clients choose icons. Values: read, edit, delete, move, search, execute, think, fetch, switch_mode, other
Current execution status: pending, in_progress, completed, failed.
Unique identifier for this tool call within the session (required).
The name of the tool being invoked (non-standard, backward compat).