import { VISION_SEE } from "./contract.js"; import type { VisionEnv } from "./env.js"; import type { CallContext, CallSetup } from "./host.js"; import { type MediaRequest } from "./media.js"; export { SeeMiss } from "./media.js"; /** What the agent's code asks: `fragments[i]` names medium `i`, the images first and then the paths. */ export type SeeRequest = MediaRequest & { readonly ask: string; }; /** The answer, the eyes' model, the looks' price (null when one is unknown), the receipts filed, one a request in order * (none for a request the host's sink filed nothing for), and `kept` when this request asked nothing: each answer was * the call's already, kept in its memo or being asked by another request of the call. */ export type SeeAnswer = { readonly text: string; readonly model: string; readonly costUsd: number | null; readonly receipts: readonly string[]; readonly kept?: true; }; /** A code-mode global as pi-codemode's `globals` take it: the contract's name and words, and `execute`. */ export type CodeGlobal = C & { execute(request: unknown, context?: { readonly signal?: AbortSignal; }): Promise; }; /** `vision.see` as a code-mode global: the contract's words and `execute`, which puts a question about images to the eyes. */ export type SeeGlobal = CodeGlobal; /** One `vision.see` call: the media read and fitted, packed into requests, each asked once, filed and told. */ export declare function see(input: unknown, env: VisionEnv | undefined, call: CallContext, setup: CallSetup): Promise;