Template Class LLMLambdaNode
Defined in File llm_lambda_node.hpp
Base Type
public morpheus::llm::LLMNodeBase
(Class LLMNodeBase)
-
template<typename ReturnT, typename ...ArgsT>
class LLMLambdaNode : public morpheus::llm::LLMNodeBase Class template for a LLMNode created from a function that returns a Task.
- Template Parameters
ReturnT – return type
ArgsT – arguments type
Public Types
Public Functions
- inline LLMLambdaNode(std::vector<std::string> input_names, function_t function)
-
inline virtual std::vector<std::string> get_input_names() const override
Virtual method for implementing how task handler gets its input names.
- Returns
std::vector<std::string>
Virtual method for implementing the execution of a node.
- Parameters
- Returns
context – context for node’s execution
Protected Attributes
- std::vector<std::string> m_input_names
- function_t m_function