|
Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
|
How sonde tools and sonde describe show a tool: its first sentence, or its description and arguments wrapped as Python's textwrap wraps them. More...
#include <QtCore/QJsonObject>#include <QtCore/QString>#include <QtCore/QStringList>Go to the source code of this file.
Namespaces | |
| namespace | Sonde |
| Embeddable Model Context Protocol server for Qt applications. | |
Functions | |
| QString | Sonde::Cli::firstSentence (const QString &text) |
The first sentence of a tool's description text, with its white space made single spaces. | |
| QStringList | Sonde::Cli::wrap (const QString &text, int width, const QString &initialIndent, const QString &subsequentIndent) |
text in lines of at most width characters, as Python's textwrap.wrap() makes them: the first line starts with initialIndent, the others with subsequentIndent, and words that don't fit are broken (after a hyphen if they have one). | |
| QString | Sonde::Cli::describeTool (const QJsonObject &tool) |
| A tool's name, title, description and arguments, as sonde describe shows them. | |
How sonde tools and sonde describe show a tool: its first sentence, or its description and arguments wrapped as Python's textwrap wraps them.