donobu
Version:
Create browser automations with an LLM agent and replay them as Playwright scripts.
15 lines • 830 B
TypeScript
import type { FlowMetadata } from '../../../models/FlowMetadata';
import type { ProposedToolCall } from '../../../models/ProposedToolCall';
import type { PageAiCacheEntry } from './cache';
/**
* Utility for translating flow metadata into cache entries. By centralising the
* logic here, both the runtime (`PageAi`) and the code generator can build
* matching cache files without duplicating knowledge about the schema.
*/
export declare class PageAiCacheEntryBuilder {
/**
* Produces a cache entry that mirrors the format persisted by the runtime.
*/
static fromMetadata(pageUrl: string, metadata: Pick<FlowMetadata, 'overallObjective' | 'resultJsonSchema' | 'allowedTools' | 'maxToolCalls' | 'envVars'>, toolCallCache: ProposedToolCall[]): PageAiCacheEntry;
}
//# sourceMappingURL=cacheEntryBuilder.d.ts.map