Module protocol

Source

Re-exports§

pub use crate::utils::asynchronous::BoxPlatformSendFuture;
pub use crate::utils::asynchronous::BoxPlatformSendStream;

Structs§

Attachment
Represents a file/image/document sent or received as part of a message.
Bot
BotCapabilities
Set of capabilities that a bot supports
BotContext
A sharable wrapper around a BotClient that holds loadeed bots and provides synchronous APIs to access them, mainly from the UI.
BotId
Identifies any kind of bot, local or remote, model or agent, whatever.
ClientError
Standard error returned from client operations.
ClientResult
The outcome of a client operation.
Message
A message that is part of a conversation.
MessageContent
Standard message content format.
MessageMetadata
Metadata automatically tracked by MolyKit for each message.
RealtimeChannel
Channel for realtime communication events
Tool
ToolCall
Represents a function/tool call made by the AI
ToolResult
Represents the result of a tool call execution

Enums§

BotCapability
Represents the capabilities of a bot
ClientErrorKind
The standard error kinds a client implementatiin should facilitate.
EntityId
Indentify the entities that are recognized by this crate, mainly in a chat.
Picture
The picture/avatar of an entity that may be represented/encoded in different ways.
RealtimeCommand
Commands sent from the UI to the realtime client
RealtimeEvent
Events sent from the realtime client to the UI
ToolCallPermissionStatus
Permission status for tool call execution
Upgrade
Upgrade types for enhanced communication modes

Traits§

BotClient
A standard interface to fetch bots information and send messages to them.