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

Method parametersSchema

tools/ReadFileTool.cpp:44–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44QJsonObject 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
62QFuture<LLMQore::ToolResult> ReadFileTool::executeAsync(const QJsonObject &input)
63{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected