Skip to main content

Module chat

Module chat 

Source
Expand description

The agent chat as a view an app can dock: the conversation (the user’s prompts, the agent’s replies, its tool calls) and a prompt box. No network or model code: the pane emits ChatEvents and the app pushes messages in. The conversation is plain data (ChatMessage, serializable) so an app can record it (a session file) and restore it.

Structs§

ChatContext
What the chips above the prompt show: the workspace, where the agent runs, the model.
ChatPane
The agent chat: a scrolling conversation (user, agent and tool-call rows) above a prompt box with context chips. A tool call is one line (“Ran hist.find_cells · 2,539 cells”) that opens to its JSON arguments and result. Agent text streams in with ChatPane::append_agent.
ToolCall
A command the agent ran: its name, arguments, result and a one-line summary.

Enums§

ChatEvent
What the pane asks of the app.
ChatMessage
One message of the conversation.
Location
Where the agent works.