Skip to main content

reduceToCanonicalAction

@totemsdk/agent-policy


@totemsdk/agent-policy / reduceToCanonicalAction

Function: reduceToCanonicalAction()

reduceToCanonicalAction(runId, principal, agentId, step, evidence): CanonicalAgentAction

Build a canonical action from a PREPARED operation. The wallet supplies the effects; the autonomy policy authorizes exactly these.

Parameters​

runId​

string

principal​

string

agentId​

string

step​

PreparedStep

evidence​

executionReceipt?​

unknown

postconditionsVerified?​

boolean

quoteTimestamp?​

number

simulation?​

unknown

Returns​

CanonicalAgentAction