Class: Protege::ToolResult
- Inherits:
-
Data
- Object
- Data
- Protege::ToolResult
- Defined in:
- lib/protege/types/tool_result.rb
Overview
Pairs a tool call with its outcome. Built by ToolMixin.invoke and consumed by
Inference.extend_request to build the next turn's messages — tool_call identifies which call this
answers and result carries the Protege::Result the model sees. An immutable Data value object.
It belongs to no single layer — it bridges an Inference Provider::ToolCall, a top-level Result,
and Orchestrator's tool dispatch — so it lives here at the top level alongside Result and Event.
Instance Attribute Summary collapse
-
#result ⇒ Protege::Result
readonly
The outcome of invoking the tool.
-
#tool_call ⇒ Object
readonly
The originating tool call.
Instance Attribute Details
#result ⇒ Protege::Result (readonly)
Returns the outcome of invoking the tool.
15 |
# File 'lib/protege/types/tool_result.rb', line 15 ToolResult = Data.define(:tool_call, :result) |
#tool_call ⇒ Object (readonly)
Returns the originating tool call.
15 |
# File 'lib/protege/types/tool_result.rb', line 15 ToolResult = Data.define(:tool_call, :result) |