MCPcopy Create free account
hub / github.com/Palm1r/QodeAssist / parametersSchema

Method parametersSchema

tools/FindFileTool.cpp:42–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42QJsonObject 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
66QFuture<LLMQore::ToolResult> FindFileTool::executeAsync(const QJsonObject &input)
67{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected