|
Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
|
Builders for tool argument schemas (JSON Schema subsets that the server's argument check understands: type, enum, required). More...
Functions | |
| QJsonObject | described (QJsonObject schema, const QString &description) |
schema with "description" set to description, unless that is empty: a description that says nothing (an array's items, say) costs tokens in every session. | |
| QJsonObject | property (JsonType type, const QString &description) |
A property of a JSON type. | |
| QJsonObject | anyProperty (const QString &description) |
| A property of any JSON type. | |
| QJsonObject | enumProperty (const QStringList &values, const QString &description) |
A string property restricted to values. | |
| QJsonObject | arrayProperty (const QJsonObject &items, const QString &description) |
An array property whose elements match items (an empty object allows anything). | |
| QJsonObject | object (const QJsonObject &properties, const QStringList &required={ }) |
The schema of a tool's arguments: an object with properties, of which required must be given. | |
Builders for tool argument schemas (JSON Schema subsets that the server's argument check understands: type, enum, required).
|
inline |
The schema of a tool's arguments: an object with properties, of which required must be given.
Arguments not listed in properties are refused by the server (see the user guide), so list every argument the tool accepts.
|
inline |
A property of a JSON type.
An empty description is left out, as in the builders below.