Module prelude

Module prelude 

Source
Expand description

Re-exports Rust code of widgets and aitk’s prelude.

Re-exports§

pub use crate::widgets::chat::*;
pub use crate::widgets::citation_list::*;
pub use crate::widgets::message_markdown::*;
pub use crate::widgets::messages::*;
pub use crate::widgets::model_selector::*;
pub use crate::widgets::model_selector_list::*;
pub use crate::widgets::moly_modal::*;
pub use crate::widgets::prompt_input::*;
pub use crate::widgets::realtime::*;

Structs§

Attachment
Represents a file/image/document sent or received as part of a message.
Bot
Represents a bot, which is an automated assistant of any kind (model, agent, etc).
BotCapabilities
Set of capabilities that a bot supports
BotId
Identifies any kind of bot, local or remote, model or agent, whatever.
ChatController
State management abstraction specialized in handling the core complex chat logic.
ChatControllerBuilder
ChatControllerPluginRegistrationId
Unique identifier for a registered plugin. Can be used to unregister it later.
ChatState
State of the chat that you should reflect in your view component/widget/element.
ClientError
Standard error returned from client operations.
ClientResult
The outcome of a client operation.
IndexSet
Set of indexes, unique and sorted.
MapClient
Utility wrapper client that transforms the output of the underlying client.
McpManagerClient
Manages MCP servers and provides a unified interface for tool discovery and invocation.
Message
A message that is part of a conversation.
MessageContent
Standard message content format.
MessageMetadata
Metadata automatically tracked by MolyKit for each message.
OpenAiClient
A client capable of interacting with Moly Server and other OpenAI-compatible APIs.
OpenAiImageClient
Specific OpenAI client to hit image generation endpoints.
OpenAiRealtimeClient
OpenAiSttClient
Specific OpenAI client to hit speech-to-text endpoints.
RealtimeChannel
Channel for realtime communication events
RouterClient
A client that can be composed from multiple subclients to interact with all of them as one.
TesterClient
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
ChatControl
Controls if remaining callbacks and default behavior should be executed.
ChatStateMutation
ChatTask
Represents complex (mostly async) operations that may cause multiple mutations over time.
ClientErrorKind
The standard error kinds a client implementatiin should facilitate.
EntityAvatar
The picture/avatar of an entity that may be represented/encoded in different ways.
EntityId
Indentify the entities that are recognized by this crate, mainly in a chat.
McpTransport
RealtimeCommand
Commands sent from the UI to the realtime client
RealtimeEvent
Events sent from the realtime client to the UI
Status
Represents a generic status in which an operation can be.
ToolCallPermissionStatus
Permission status for tool call execution
Upgrade
Upgrade types for enhanced communication modes
VecEffect
A primitive operation that will be performed on a Vec<T> as a result of a higher level and more optimized VecMutation.
VecMutation
Ergonomic, debuggable and loggable mutation to a Vec<T>.

Traits§

BotClient
A standard interface to fetch bots information and send messages to them.
ChatControllerPlugin
Allows to hook between dispatched events of any kind.

Type Aliases§

BoxPlatformSendFuture
An owned dynamically typed Future that only requires Send on native platforms, but not on WASM.
BoxPlatformSendStream
An owned dynamically typed Stream that only requires Send on native platforms, but not on WASM.