Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
Loading...
Searching...
No Matches
anonymous_namespace{test_catalogue.cpp} Namespace Reference

Functions

qsizetype bytes (const QJsonValue &value)
 Compact JSON size of value.
std::string sizeTable (const QJsonArray &tools)
 The tools, largest first, as "name bytes" lines: printed when a limit is exceeded.
QSet< QString > documentedTools (const QString &file, const QString &header, int column)
 The tool names in the Markdown table of file that starts with the line header.
std::string listed (const QSet< QString > &names)
 names, sorted and joined, for a failure message.

Variables

constexpr qsizetype kMaxListBytes = 29000
 The whole tool list, compact, at most this many bytes (about 7,250 tokens).
constexpr qsizetype kMaxToolBytes = 1700
 No one tool larger than this.
constexpr qsizetype kMaxInstructionsBytes = 3500
 The server's instructions, at most this many bytes.

Function Documentation

◆ documentedTools()

QSet< QString > anonymous_namespace{test_catalogue.cpp}::documentedTools ( const QString & file,
const QString & header,
int column )

The tool names in the Markdown table of file that starts with the line header.

They are the backticked words in column column (0 is the first) of each row.