12 #ifndef DOCWIRE_LOCAL_AI_MODEL_CHAIN_ELEMENT_H
13 #define DOCWIRE_LOCAL_AI_MODEL_CHAIN_ELEMENT_H
15 #include "chain_element.h"
16 #include "local_ai_export.h"
17 #include "model_runner.h"
19 namespace docwire::local_ai
81 std::shared_ptr<model_runner> m_model_runner;
A model chain element that processes input text using a model runner.
model_chain_element(const std::string &prompt, std::shared_ptr< model_runner > model_runner)
Construct a model chain element.
bool is_leaf() const override
Check if the model chain element is a leaf.
continuation operator()(message_ptr msg, const message_callbacks &emit_message) override
Process the input.
model_chain_element(const std::string &prompt)
Construct a model chain element with a default model runner.
Class representing the AI model loaded to memory.