Skip to main content

Module frontend

Module frontend 

Source
Expand description

Frontend trait — abstract interface between Agent and UI.

The Agent doesn’t know whether the frontend is a TUI, Feishu bot, or QQ bot. It only interacts through this trait.

Structs§

AgentChannels
Channel pair for Agent <-> Frontend communication.
FrontendChannels
Frontend-side channel ends.

Traits§

Frontend
Abstract frontend interface. Implementations handle rendering events and collecting user input.

Functions§

create_channels
Create a matched pair of Agent and Frontend channels.