MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / makeMetaTool

Function makeMetaTool

app/src/AI/Conversation.cpp:2022–2031  ·  view source on GitHub ↗

* @brief Builds a single meta-tool definition for the discovery surface. */

Source from the content-addressed store, hash-verified

2020 * @brief Builds a single meta-tool definition for the discovery surface.
2021 */
2022static 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>] }.

Callers 4

appendBasicMetaToolsFunction · 0.85
appendCommandMetaToolsFunction · 0.85
appendReferenceMetaToolsFunction · 0.85
appendSearchMetaToolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected