Expand description
Local chat runtimes. Service tools come from the boards the product selects,
as a subspace_agent_tools::Catalog. No GPUI dependencies.
Re-exports§
pub use failure::FailureCategory;pub use failure::TurnFailure;
Modules§
- canvas
- Read-only native canvas input and per-conversation selection.
- failure
- Why a Copilot turn failed, with the facts that help to report it. The
runtime builds a
TurnFailurefrom asession.errorevent, or when the Copilot runtime stops or stops answering, and the chat panel shows its title, its action and its details.
Structs§
- Agent
Handle - Chat
Preferences - Preferences captured by the UI at the boundary where a new chat opens.
- Choice
- Context
Ref - Image
Attachment - An image kept in the chat draft until the user explicitly submits it. Shared bytes let the UI retain a rejected draft without copying its payload.
- Model
Choice - A model the SDK offers, with the reasoning efforts it supports.
- Session
Summary - A saved conversation of the current account.
- Slash
Command - A skill-backed slash command. Runtime built-ins are not offered.
- Tool
Call - One tool call, built from the
toolRequestsentry that asked for it and the execution events that carry its outcome.call_idis the SDK’stoolCallId, so start and completion update one transcript row. - Transcript
Entry - Usage
- What the SDK reported for the last request. Every field is optional: a missing counter is omitted rather than invented, and this is never a remaining credit balance.
Enums§
- AcpAgent
- An ACP agent preset.
Customrunschat.acp.command. - Chat
Command - What one open chat is asked to do.
- Chat
Engine - Chat
Event - What happened in one open chat.
- Chat
Mode - The agent interaction mode, mapped to the SDK
SessionMode. - Command
- Entry
- A transcript row. The runtime builds these from SDK events, so the view never parses preformatted text.
- Entry
Kind - Event
- Sign
InOffer - The sign-in that would give chat a working GitHub account.
- Tool
Status - How a tool call ended, as
tool.execution_completereported it.
Constants§
- ATTACHMENT_
MARKER - Separates the message from each attached reference in a sent prompt. The chat transcript replays the whole prompt, so the UI splits it on this.
- DRAFT_
ATTACHMENT_ LIMIT - One draft’s total encoded image budget, matching the existing private attachment-workspace budget.
- MAX_
CHATS - The most chats the runtime keeps open at once.
Traits§
Functions§
- export_
file_ name - A file name for the save dialog: the chat’s name, without path separators and without the ellipsis a cut display name carries.
- read_
attachment_ image - Reads a prospective image attachment without following symlinks or trusting metadata alone. Decoding remains the UI image module’s responsibility.
- repeats
- Whether a title says what an argument summary already says.
Type Aliases§
- ChatId
- One open chat, as the panel numbers its tabs. The runtime never invents
one: it only answers for the ids the panel opened, or the ids it reports
in
Event::Restore.