Anchorage API reference
    Preparing search index...
    interface AgentApprovalResumerOptions {
        agents: readonly AgentMeta[];
        fallback: ResumeRunFn;
        tenantForPrincipal: (
            principal: ExecutionPrincipal,
            record: ApprovalRecord,
        ) => TenantContext | Promise<TenantContext>;
        topology: AgentThreadTopology;
    }
    Index

    Properties

    agents: readonly AgentMeta[]
    fallback: ResumeRunFn
    tenantForPrincipal: (
        principal: ExecutionPrincipal,
        record: ApprovalRecord,
    ) => TenantContext | Promise<TenantContext>

    Builds the tenant context the resume runs under, from the STORED principal. It must return that principal unchanged; createAgentApprovalResumer enforces that with an exact comparison after calling this.