UNPKG

@adonis-agora/agent

Version:

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

35 lines • 1.53 kB
import { AgentCommand } from '../src/cli/agent_command.js'; import { type ToolCallDecision } from '../src/tool-call-decision.js'; /** * Approve or reject a parked tool call through the same rules as the console's approvals inbox * (`decideToolCall`): ownership or the recorded approver's role, expiry, a run that already ended. * The decision is recorded as made by `cli:<os user>`, through `cli`. */ declare abstract class DecideCommand extends AgentCommand { toolCallId: string; runId?: string; force: boolean; protected abstract decision(): ToolCallDecision; protected abstract readonly verb: 'approve' | 'reject'; /** Refuse (exit `1`); with `--json`, first print `{ ok: false, toolCallId, status, message }`. */ private refuseDecision; protected execute(): Promise<void>; } /** `agent:approvals:approve <toolCallId>` — release a call waiting for a human approval. */ export declare class AgentApprovalsApprove extends DecideCommand { static commandName: string; static description: string; protected readonly verb: 'approve'; remember: boolean; protected decision(): ToolCallDecision; } /** `agent:approvals:reject <toolCallId>` — deny a call waiting for a human approval. */ export declare class AgentApprovalsReject extends DecideCommand { static commandName: string; static description: string; protected readonly verb: 'reject'; note?: string; protected decision(): ToolCallDecision; } export {}; //# sourceMappingURL=agent_approvals.d.ts.map