Class: LangGraphRB::ToolNode
Overview
Specialized node for tool calls
Instance Attribute Summary collapse
-
#tool ⇒ Object
readonly
Returns the value of attribute tool.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(name, tool:, &block) ⇒ ToolNode
constructor
A new instance of ToolNode.
Methods inherited from Node
Constructor Details
#initialize(name, tool:, &block) ⇒ ToolNode
Returns a new instance of ToolNode.
75 76 77 78 |
# File 'lib/langgraph_rb/node.rb', line 75 def initialize(name, tool:, &block) @tool = tool super(name, &(block || method(:default_tool_call))) end |
Instance Attribute Details
#tool ⇒ Object (readonly)
Returns the value of attribute tool.
73 74 75 |
# File 'lib/langgraph_rb/node.rb', line 73 def tool @tool end |