@adonis-agora/agent
Version:
Governed, durable-backed AI agent (chat + tool-calling + governance) for AdonisJS — part of the Agora ecosystem.
12 lines • 717 B
TypeScript
import type { AiToolCtx, ToolHandler } from './spi/tool.js';
/** JSON-only component output, structurally shared with the optional GenUI core. */
export interface ComponentPresentation<P extends object = Record<string, unknown>> {
component: string;
props: P;
version: number;
fallbackText: string;
}
export type ToolResultPresentation = ComponentPresentation<object> | readonly ComponentPresentation<object>[] | undefined;
/** Presentation must never turn a completed domain write into a retryable tool failure. */
export declare function presentToolResult(toolName: string, handler: ToolHandler, output: unknown, ctx: AiToolCtx): Promise<void>;
//# sourceMappingURL=tool-result-presentation.d.ts.map