Interface: AgentProposal
@roomful/svelte / AgentProposal
Interface: AgentProposal
Section titled “Interface: AgentProposal”Defined in: packages/core/dist/types.d.ts:1673
An action an AI agent proposes but does not apply itself — it waits for a human to approve or reject it, so AI actions are inspectable before they commit. Synced to every peer.
Properties
Section titled “Properties”decidedBy?
Section titled “decidedBy?”
optionaldecidedBy:Peer<PresenceData>
Defined in: packages/core/dist/types.d.ts:1701
The peer that approved or rejected it, once decided.
id:
string
Defined in: packages/core/dist/types.d.ts:1677
Identifies the proposal within the room.
payload?
Section titled “payload?”
optionalpayload:unknown
Defined in: packages/core/dist/types.d.ts:1689
An optional structured payload describing the action, e.g. { field, value }.
proposer
Section titled “proposer”proposer:
Peer
Defined in: packages/core/dist/types.d.ts:1681
The peer that proposed the action (an AI agent), carrying live presence.
status
Section titled “status”status:
AgentProposalStatus
Defined in: packages/core/dist/types.d.ts:1693
The current decision state.
timestamp
Section titled “timestamp”timestamp:
number
Defined in: packages/core/dist/types.d.ts:1697
When the proposal was created (ms epoch).
type:
string
Defined in: packages/core/dist/types.d.ts:1685
The proposed action type — an app-defined label, e.g. 'clear-canvas' or 'set-field'.