Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
Loading...
Searching...
No Matches
anonymous_namespace{main.cpp}::Arguments Class Reference

Arguments for a tool, drawn from its schema (design 0029, decision 1). More...

Public Member Functions

 Arguments (Random *random, const QStringList *ids, const QStringList *windows)
 Uses random, and draws objects and windows from ids and windows.
QJsonObject forTool (const QJsonObject &tool)
 Arguments for tool.

Private Member Functions

QJsonValue value (const QString &name, const QJsonObject &schema)
 A value for argument name, as schema describes it.
QJsonValue integer (const QString &name)
 An integer for argument name, in a range that keeps tools quick.
QString object ()
 An object spec: an id seen in results, or a made-up one.
QString string (const QString &name)
 A string for argument name.

Private Attributes

Random * m_random
 Choices.
const QStringList * m_ids
 Object ids seen in results.
const QStringList * m_windows
 Window ids and titles seen in results.

Detailed Description

Arguments for a tool, drawn from its schema (design 0029, decision 1).


The documentation for this class was generated from the following file:
  • tests/chaos/main.cpp