Skip to main content

Module core

Module core 

Source
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§

AskOption
PlanEntry
Plan entry from spec §7.3.
Usage
Token / cost accounting for a completed turn.

Enums§

AgentEvent
A streaming event from the agent. Subset of spec §7.
AskKind
ClientFrame
A frame sent by the client (orchestrator) to the agent during a session.
Content
A content part of a user prompt.
PermissionDecision
PermissionScope
PlanPriority
PlanStatus
StopReason
TextChannel
Channel hint for AgentEvent::TextChunk.