Interface: AgentApprovalOptions
@roomful/svelte / AgentApprovalOptions
Interface: AgentApprovalOptions
Section titled “Interface: AgentApprovalOptions”Defined in: packages/core/dist/types.d.ts:1706
Configures the agent-approval engine.
Methods
Section titled “Methods”canDecide()?
Section titled “canDecide()?”
optionalcanDecide(proposal,self):boolean
Defined in: packages/core/dist/types.d.ts:1716
Gates who may approve or reject a proposal. Returns true to allow the local peer to decide.
Defaults to allowing everyone. This is a cooperative UI-level gate — the proposer re-checks
decidedBy before it applies an approved action, which is the real enforcement point.
Parameters
Section titled “Parameters”proposal
Section titled “proposal”The proposal being decided.
Peer
The local peer attempting the decision.
Returns
Section titled “Returns”boolean
true when the local peer may decide.