|
Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
|
Value types shared by the Sonde API: tool definitions and results, asynchronous tool-call handles, resources, log levels and events. More...
#include <sonde/global.h>#include <QtCore/QByteArray>#include <QtCore/QDateTime>#include <QtCore/QJsonArray>#include <QtCore/QJsonObject>#include <QtCore/QJsonValue>#include <QtCore/QSharedDataPointer>#include <QtCore/QString>#include <functional>#include <memory>#include <optional>Go to the source code of this file.
Classes | |
| struct | Sonde::ToolDefinition |
| Describes a tool as advertised in tools/list. More... | |
| class | Sonde::ToolResult |
| The result of a tools/call: content blocks, optional structured content, and an error flag. More... | |
| class | Sonde::ToolCall |
| Handle for an in-flight tools/call, used by asynchronous tools. More... | |
| struct | Sonde::ResourceDefinition |
| Describes a resource as advertised in resources/list. More... | |
| struct | Sonde::ResourceContents |
| Contents returned by a ResourceReader: text or binary data. More... | |
| struct | Sonde::Event |
| One entry of an event stream (see EventSource). More... | |
Namespaces | |
| namespace | Sonde |
| Embeddable Model Context Protocol server for Qt applications. | |
Typedefs | |
| using | Sonde::ToolHandler = std::function<ToolResult(const QJsonObject &arguments)> |
| Handler of a synchronous tool: arguments in, result out. | |
| using | Sonde::AsyncToolHandler = std::function<void(const ToolCall &call)> |
| Handler of an asynchronous tool; answer via ToolCall::finish(). | |
| using | Sonde::ResourceReader = std::function<ResourceContents(const QString &uri)> |
| Produces a resource's contents when a client reads it. | |
Enumerations | |
| enum class | Sonde::LogLevel { Sonde::Debug , Sonde::Info , Sonde::Notice , Sonde::Warning , Sonde::Error , Sonde::Critical , Sonde::Alert , Sonde::Emergency } |
| MCP (RFC 5424) log levels, from lowest to highest severity. More... | |
Functions | |
| QString | Sonde::logLevelName (LogLevel level) |
The MCP wire name of level, e.g. "warning". | |
| std::optional< LogLevel > | Sonde::logLevelFromName (QStringView name) |
| Parses an MCP level name (case-insensitive). | |
| QStringList | Sonde::logLevelNames () |
| All level names, lowest severity first. | |
Value types shared by the Sonde API: tool definitions and results, asynchronous tool-call handles, resources, log levels and events.