* @brief Builds a single meta-tool definition for the discovery surface. */
| 2020 | * @brief Builds a single meta-tool definition for the discovery surface. |
| 2021 | */ |
| 2022 | static QJsonObject makeMetaTool(const QString& name, |
| 2023 | const QString& description, |
| 2024 | const QJsonObject& schema) |
| 2025 | { |
| 2026 | QJsonObject tool; |
| 2027 | tool[QStringLiteral("name")] = name; |
| 2028 | tool[QStringLiteral("description")] = description; |
| 2029 | tool[QStringLiteral("input_schema")] = schema; |
| 2030 | return tool; |
| 2031 | } |
| 2032 | |
| 2033 | /** |
| 2034 | * @brief Returns the schema { type:object, properties:{<key>:propSchema}, required:[<key>] }. |
no outgoing calls
no test coverage detected