24 lines
475 B
C++
24 lines
475 B
C++
#pragma once
|
|
|
|
#include "tool.hpp"
|
|
|
|
namespace ZShell::llm {
|
|
|
|
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,
|
|
int outputBudgetChars,
|
|
std::function<void(const QJsonObject& result)> done) override;
|
|
};
|
|
|
|
} // namespace ZShell::llm
|