UNPKG

@adonis-agora/agent

Version:

Governed, durable-backed AI agent (chat + tool-calling + governance) for AdonisJS — part of the Agora ecosystem.

17 lines • 912 B
import type { ActionProposal, ClaimActionProposal } from './action-proposal-store.js'; /** Privileged worker-only discovery; never expose this unscoped capability on public routes. */ export interface ActionProposalWorkerStore { /** Claim one queued or expired-lease action across scopes; null means no claim was won. */ claimNextActionProposal(command: ClaimActionProposal): Promise<ActionProposal | null>; /** Expire at most limit (1..1000) due pending proposals using the store's trusted clock. */ expireActionProposals(command: { limit: number; }): Promise<number>; } /** SQL upgrade capability. Run bounded batches after additive DDL and before starting workers. */ export interface ActionProposalDiscoveryIndexStore { backfillActionProposalDiscoveryIndex(command: { limit: number; }): Promise<number>; } //# sourceMappingURL=action-proposal-worker-store.d.ts.map