#[non_exhaustive]pub struct Caps {
pub session: SessionSupport,
pub fork: bool,
pub events: bool,
pub native_system: bool,
pub schema: SchemaSupport,
pub commands: bool,
pub live_follow_up: bool,
pub approvals: bool,
}Expand description
What an agent supports. Used to reject an impossible request before spawning rather than silently doing something weaker than asked.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.session: SessionSupportHow a native session id is obtained, if at all.
fork: boolWhether resuming can branch a new session instead of appending in place.
events: boolWhether the agent emits a structured event stream this crate normalizes.
native_system: boolWhether the agent takes a real system-prompt flag. When false the system text is prepended to the prompt so it still reaches the model.
schema: SchemaSupportHow the agent accepts a JSON Schema for its answer, if at all.
commands: boolWhether the agent answers slash commands such as /compact.
Claude publishes a catalogue and acts on them; the others read the same text as prose and would discuss the command rather than run it, which is worse than refusing.
live_follow_up: boolWhether another user message can be delivered while a turn is running.
approvals: boolWhether gated tool calls can be routed to the caller for a decision.