Skip to main content

defaultActionExtractor

@totemsdk/agent-policy


@totemsdk/agent-policy / defaultActionExtractor

Function: defaultActionExtractor()

defaultActionExtractor(proposal): AuthorityActionIntent

Default mapping: AgentProposal → AuthorityActionIntent.

The action is the intent type itself. The principal is the authenticated proposal.principal (falling back to agentId only when strict mode is off). The target is the recipient. Intent fields and metadata are exposed as constraints so dotted paths (payload.*) resolve via @totemsdk/authority's resolveActionField.

Parameters

proposal

AgentProposal

Returns

AuthorityActionIntent