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

Function stringProp

app/src/AI/Conversation.cpp:2054–2063  ·  view source on GitHub ↗

* @brief Returns a string-typed property schema with description (and optional enum). */

Source from the content-addressed store, hash-verified

2052 * @brief Returns a string-typed property schema with description (and optional enum).
2053 */
2054static QJsonObject stringProp(const QString& description, const QJsonArray& enumValues = {})
2055{
2056 QJsonObject prop;
2057 prop[QStringLiteral("type")] = QStringLiteral("string");
2058 prop[QStringLiteral("description")] = description;
2059 if (!enumValues.isEmpty())
2060 prop[QStringLiteral("enum")] = enumValues;
2061
2062 return prop;
2063}
2064
2065/**
2066 * @brief Appends meta.listCategories, meta.snapshot, meta.listCommands tools.

Callers 4

appendBasicMetaToolsFunction · 0.70
appendCommandMetaToolsFunction · 0.70
appendReferenceMetaToolsFunction · 0.70
appendSearchMetaToolFunction · 0.70

Calls 1

isEmptyMethod · 0.80

Tested by

no test coverage detected