Skip to main content

Module frontend

Module frontend 

Source
Expand description

Per-session Frontend implementation for Bot platforms.

ChatbotFrontend implements robit_agent::frontend::Frontend for a single chat (group or private). It buffers streaming TextDelta events and flushes them in natural-boundary segments (so Markdown and code blocks aren’t cut mid-construct), sends a rate-limited progress hint when tools run, and delegates tool confirmation to the shared Confirmer.

On platforms with edit support, the first message is sent then edited in place to create a “growing message” effect; otherwise segments are sent as separate messages.

Structs§

ChatbotFrontend
Per-session Frontend trait implementation for Bot platforms.

Traits§

PlatformExt
Platform extension for file/media operations.
PlatformSender
Abstracted message sending capability (platform-agnostic).