Template Class LLMLambdaNode#
Defined in File llm_lambda_node.hpp
Inheritance Relationships#
Base Type#
public morpheus::llm::LLMNodeBase
(Class LLMNodeBase)
Class Documentation#
-
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 Functions
- inline LLMLambdaNode(
- std::vector<std::string> input_names,
- function_t function
- inline virtual std::vector<std::string> get_input_names(
Virtual method for implementing how task handler gets its input names.
- Returns:
std::vector<std::string>
- std::shared_ptr<LLMContext> context
Virtual method for implementing the execution of a node.
- Parameters:
context – context for node’s execution
- Returns: