import type { ToolDefinition } from "@earendil-works/pi-coding-agent"; import type { ExtractField } from "./extract-fields.js"; export { parseExtractFields, type ExtractField } from "./extract-fields.js"; export declare function createSetResultTool(runtime: RunResult): ToolDefinition; /** * The values `extract` asks for, one parameter each. A tool rather than a * line of text: the model can be told "one line" and still add a sentence. */ export declare function createExtractTool(runtime: RunResult, fields: ExtractField[]): ToolDefinition; export declare const EXTRACT_TOOL = "submit_values"; export interface RunResult { status?: "pass" | "fail"; reason?: string; /** What `extract` found, by field name. */ values?: Record; }