| 40 | } |
| 41 | |
| 42 | QJsonObject FindFileTool::parametersSchema() const |
| 43 | { |
| 44 | QJsonObject properties; |
| 45 | |
| 46 | properties["query"] = QJsonObject{ |
| 47 | {"type", "string"}, |
| 48 | {"description", |
| 49 | "Filename, partial filename, or partial path to look for. Case-insensitive. " |
| 50 | "Exact filename matches rank highest, then path matches, then partial name matches."}}; |
| 51 | |
| 52 | properties["file_pattern"] = QJsonObject{ |
| 53 | {"type", "string"}, |
| 54 | {"description", |
| 55 | "Optional wildcard filter applied to the filename. Examples: '*.cpp', '*.h', '*.qml'. " |
| 56 | "Leave empty to match any extension."}}; |
| 57 | |
| 58 | QJsonObject definition; |
| 59 | definition["type"] = "object"; |
| 60 | definition["properties"] = properties; |
| 61 | definition["required"] = QJsonArray{"query"}; |
| 62 | |
| 63 | return definition; |
| 64 | } |
| 65 | |
| 66 | QFuture<LLMQore::ToolResult> FindFileTool::executeAsync(const QJsonObject &input) |
| 67 | { |
nothing calls this directly
no outgoing calls
no test coverage detected