| 42 | } |
| 43 | |
| 44 | QJsonObject ReadFileTool::parametersSchema() const |
| 45 | { |
| 46 | QJsonObject properties; |
| 47 | |
| 48 | properties["file_path"] = QJsonObject{ |
| 49 | {"type", "string"}, |
| 50 | {"description", |
| 51 | "Absolute path (e.g. /path/to/file.cpp) or project-relative path (e.g. src/main.cpp). " |
| 52 | "Relative paths are resolved against the root of the active project."}}; |
| 53 | |
| 54 | QJsonObject definition; |
| 55 | definition["type"] = "object"; |
| 56 | definition["properties"] = properties; |
| 57 | definition["required"] = QJsonArray{"file_path"}; |
| 58 | |
| 59 | return definition; |
| 60 | } |
| 61 | |
| 62 | QFuture<LLMQore::ToolResult> ReadFileTool::executeAsync(const QJsonObject &input) |
| 63 | { |
nothing calls this directly
no outgoing calls
no test coverage detected