UNPKG

@adonis-agora/agent

Version:

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

20 lines • 832 B
import type { RolesPolicy } from './spi/roles-policy.js'; import type { AiToolCtx } from './spi/tool.js'; import type { InvokeOptions, ToolRegistry } from './tool-registry.js'; /** Trusted producer path: retain the original JSON and the exact data shown for approval. */ export declare function prepareActionProposal(registry: ToolRegistry, name: string, input: unknown, ctx: AiToolCtx, policy: RolesPolicy, options?: InvokeOptions): Promise<{ replacementKey?: string; preparationInput: unknown; input: unknown; preflight: { status: 'ready'; confirmation?: import("./tool-presentation.js").ToolConfirmation; } | { status: 'denied'; reason: string; } | { status: 'completed'; output: unknown; }; }>; //# sourceMappingURL=action-proposal-preparation.d.ts.map