mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2026-05-30 10:59:30 -04:00
28 lines
642 B
C++
28 lines
642 B
C++
// Copyright (C) 2025-2026 Petr Mironychev
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <LLMQore/BaseTool.hpp>
|
|
#include <QFuture>
|
|
#include <QJsonObject>
|
|
#include <QObject>
|
|
|
|
namespace QodeAssist::Tools {
|
|
|
|
class ReadFileTool : public ::LLMQore::BaseTool
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit ReadFileTool(QObject *parent = nullptr);
|
|
|
|
QString id() const override;
|
|
QString displayName() const override;
|
|
QString description() const override;
|
|
QJsonObject parametersSchema() const override;
|
|
QFuture<LLMQore::ToolResult> executeAsync(const QJsonObject &input) override;
|
|
};
|
|
|
|
} // namespace QodeAssist::Tools
|