|
Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
|
Classes | |
| class | ThreadClient |
| A blocking local-socket client for use on a thread of its own, so it keeps working while the main thread is blocked. More... | |
| struct | TimeoutServer |
| A WorkerThread server with a short start timeout and a few tools. More... | |
| struct | EventServer |
| A WorkerThread server with an event source "net", the log and the stalls. More... | |
Functions | |
| QJsonObject | initializeParams () |
| initialize params. | |
| void | whileBlocked (const QString &name, int blockMs, int afterMs, const std::function< void(ThreadClient &)> &body) |
Runs body on a thread with a ThreadClient while the main thread sleeps blockMs, then lets the main thread's event loop run for afterMs. | |
| QString | responseText (const QJsonObject &response) |
| The text of a tools/call response. | |
| QJsonObject | callParams (const QString &tool, const QJsonObject &arguments={ }) |
| A tools/call request's params. | |