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

Function stringEnumProperty

app/src/AI/ToolDispatcher.cpp:106–111  ·  view source on GitHub ↗

* @brief Builds a JSON Schema string property restricted to the given enum values. */

Source from the content-addressed store, hash-verified

104 * @brief Builds a JSON Schema string property restricted to the given enum values.
105 */
106static QJsonObject stringEnumProperty(const QString& description, const QStringList& values)
107{
108 auto prop = makeProperty(QStringLiteral("string"), description);
109 prop[QStringLiteral("enum")] = stringEnum(values);
110 return prop;
111}
112
113/**
114 * @brief Input schema for assistant.snapshot.

Callers 2

tileInputSchemaFunction · 0.85
scriptPropsBagFunction · 0.85

Calls 2

makePropertyFunction · 0.85
stringEnumFunction · 0.85

Tested by

no test coverage detected