#pragma once #include "tool.hpp" namespace ZShell::llm { // Lets the model read text files from the local filesystem, in // byte-offset windows small enough to fit the context. Primarily used to // page through the full webfetch output stored under // /tmp/zshell-llm/webfetch/. class FileReadTool : public LlmTool { Q_OBJECT public: explicit FileReadTool(QObject* parent = nullptr); QString name() const override; QString description() const override; QJsonObject parameters() const override; void execute( const QString& toolCallId, const QJsonObject& args, std::function done) override; }; } // namespace ZShell::llm