Class: Protege::ToolResult

Inherits:
Data
  • Object
show all
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

Instance Attribute Details

#resultProtege::Result (readonly)

Returns the outcome of invoking the tool.

Returns:



15
# File 'lib/protege/types/tool_result.rb', line 15

ToolResult = Data.define(:tool_call, :result)

#tool_callObject (readonly)

Returns the originating tool call.

Returns:

  • (Object)

    the originating tool call



15
# File 'lib/protege/types/tool_result.rb', line 15

ToolResult = Data.define(:tool_call, :result)