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

    Properties

    agents: readonly AgentMeta[]
    contextForPrincipal: (
        principal: ExecutionPrincipal,
        record: ApprovalRecord,
    ) => ActorContext | Promise<ActorContext>

    Builds the actor 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.

    fallback: ResumeRunFn