pub struct ProviderInteractionOption {
pub option_id: String,
pub name: String,
pub kind: String,
}Expand description
One option the agent offered on a session/request_permission-style
interaction, carried on ProviderEvent::InteractionRequested::options
exactly as the agent gave it – see ACP’s PermissionOption in
src/acp/protocol.rs (option_id, name, kind). This crate cannot
depend on gate4agent (see this crate’s own CLAUDE.md), so the shape
is repeated here rather than shared, the same precedent
ProviderRateLimitKind already sets for a wire-typed mirror of a
gate4agent-side enum.
kind is carried as the ACP wire’s own snake_case string (allow_once,
allow_always, reject_once, reject_always) rather than re-typed
into an enum here: nothing in this crate interprets kind, an operator
surface only ever displays it, and gate4agent-node-protocol’s
AgentStreamInteractionOptionV1::kind – the wire shape this eventually
becomes – is the same plain String, so a round trip through an enum
here would buy no safety, only an extra conversion.
Fields§
§option_id: String§name: String§kind: String