tiny.acp.PermissionReply
Defined in client.
An observer that decides a permission request itself returns this value, so the client sends that decision to the agent.
API (3)
Fields and members
Public fields and members.
Source
Source: lib/acp/src/client.zig:253
zig
/// An observer that decides a permission request itself returns this value, so the client sends/// that decision to the agent. The structure holds the answer to one request from the agent for/// permission to run a tool call. The client copies each string before it uses it. The client sends/// the outcome and the option id to the agent, and records all three fields in the request the/// observer commits. The client does not check the option id against the options the agent offered.pub const PermissionReply = struct { /// The outcome sent to the agent: the client uses `selected` when it picks an option and /// `cancelled` when it picks none. The field is required. outcome: []const u8, /// The id of the chosen option, from the options the agent offered. The client sends it as /// `optionId`, and leaves it out when empty. The field defaults to empty. option_id: []const u8 = "", /// The kind of the chosen option, such as `allow_once` or `reject_once`. The string is kept in /// the committed record and never sent to the agent. The field defaults to empty. option_kind: []const u8 = "",};Source: lib/acp/src/root.zig:75
zig
pub const PermissionReply = client.PermissionReply;Audit
| Definitions | 1 |
|---|---|
| Public names | 2 |
| Members | 3 |
| Version | 26.7.0 |
| Revision | daab053ee433 |