Class PyLLMLambdaNode#

Inheritance Relationships#

Base Type#

Class Documentation#

class PyLLMLambdaNode : public morpheus::llm::LLMNodeBase#

Public Functions

PyLLMLambdaNode(pybind11::function fn)#
~PyLLMLambdaNode() override#
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 Task<std::shared_ptr<LLMContext>> execute(
std::shared_ptr<LLMContext> context
) override#

Virtual method for implementing the execution of a node.

Parameters:

context – context for node’s execution

Returns:

Task<std::shared_ptr<LLMContext>>