import type { Temporal } from "temporal-polyfill"; import type { Content, ContentMeta, View } from "../content/content.js"; import type { PipelineSettings } from "../index.js"; import type { ToolInvocationResult } from "./tool"; export declare const DEFAULT_SYSTEM_PROMPT = "You are Ailly, the helpful AI Writer's Ally."; export interface EngineDebug { toolUse?: { name: string; input: Record; partial: string; id: string; }; engine?: string; model?: string; finish?: string; error?: Error; lastRun?: Temporal.Instant | string; } export type EngineGenerate = (c: Content, parameters: PipelineSettings) => { stream: ReadableStream; message(): string; debug(): D; done: Promise; }; export interface Engine { DEFAULT_MODEL: string; name: string; format(c: Content[], context: Record): Promise; generate: EngineGenerate; vector(s: string, parameters: ContentMeta): Promise; view?(): Promise; models?(): string[]; formatError?(content: Content): string | undefined; } export interface Message { role: "system" | "user" | "assistant"; content: string; toolUse?: { name: string; input: Record; result: ToolInvocationResult; id?: string; }; tokens?: number; } export interface Summary { tokens: number; prompts: number; } export declare const ENGINES: Record; export declare function getEngine(name: string): Promise; //# sourceMappingURL=index.d.ts.map