Expand description
Core protocol types — events, frames, content blocks, usage.
These types are defined in the spec at https://github.com/rsclaw-ai/cap-protocol/blob/main/docs/cap-v1.md sections §7 (events) and §10 (lifecycle).
All enums are marked #[non_exhaustive] during v0.x so new variants can
be added without a semver-breaking change.
Structs§
Enums§
- Agent
Event - A streaming event from the agent. Subset of spec §7.
- AskKind
- Client
Frame - A frame sent by the client (orchestrator) to the agent during a session.
- Content
- A content part of a user prompt.
- Permission
Decision - Permission
Scope - Plan
Priority - Plan
Status - Stop
Reason - Text
Channel - Channel hint for
AgentEvent::TextChunk.