Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
Loading...
Searching...
No Matches
describe.h
Go to the documentation of this file.
1#pragma once
2
6
7#include <QtCore/QJsonObject>
8#include <QtCore/QString>
9#include <QtCore/QStringList>
10
11namespace Sonde::Cli {
12
15QString firstSentence(const QString &text);
16
21QStringList wrap(const QString &text, int width, const QString &initialIndent,
22 const QString &subsequentIndent);
23
25QString describeTool(const QJsonObject &tool);
26
27} // namespace Sonde::Cli
QString describeTool(const QJsonObject &tool)
A tool's name, title, description and arguments, as sonde describe shows them.
Definition describe.cpp:152
QString firstSentence(const QString &text)
The first sentence of a tool's description text, with its white space made single spaces.
Definition describe.cpp:113
QStringList 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 sta...
Definition describe.cpp:120