UNPKG

@adonis-agora/agent

Version:

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

15 lines • 661 B
import type { UIMessage } from 'ai'; import type { ActionProposal } from '../../../index.js'; import type { StoredMessage } from '../client-wire.js'; export type ApprovalTarget = { kind: 'legacy'; toolCallId: string; } | { kind: 'proposal'; proposalId: string; threadId?: string; }; export declare function proposalNeedsPolling(proposal: ActionProposal): boolean; /** Patch proposal metadata and append outcome facts; never replace live text with stored rows. */ export declare function reconcileProposalMessages(current: UIMessage[], proposals: ActionProposal[], facts: StoredMessage[]): UIMessage[]; //# sourceMappingURL=proposals.d.ts.map