Class LLMNodeRunner
Defined in File llm_node_runner.hpp
-
class LLMNodeRunner
This class wraps LLMNode and is responsible for node’s execution. It also manages mapping of node’s inputs to parent and sibling nodes.
Public Functions
Construct a new LLMNodeRunner object.
- Parameters
name –
inputs –
node –
- ~LLMNodeRunner()
Destroy the LLMNodeRunner object.
Execute node and save outputs to context.
- Parameters
- Returns
context – context for node’s execution
-
const std::string &name() const
Get name of node runner typically same as node name.
- Returns
const std::string&
-
const input_mappings_t &inputs() const
Get input mappings for this node.
- Returns
const input_mappings_t&
-
const std::vector<std::string> &sibling_input_names() const
Get input names from node’s siblings.
- Returns
const std::vector<std::string>&
-
const std::vector<std::string> &parent_input_names() const
Get input names from node’s parent.
- Returns
const std::vector<std::string>&