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