/** * ollama_classify — single-label classification with confidence. * Tier: Instant. * * Three input modes (exactly one): * - `text` : single text, classified directly * - `source_path` : single file, read + classified server-side — caller * never pre-reads the file (context preservation) * - `items` : batch of {id, text} — returns one batch envelope with * per-item {id, ok, result|error} * * Exactly one of {text, source_path, items} must be provided. */ import { z } from "zod"; import type { Envelope } from "../envelope.js"; import { type BatchResult } from "./batch.js"; import { type ClassifyGuarded } from "../guardrails/confidence.js"; import type { RunContext } from "../runContext.js"; export declare const classifySchema: z.ZodObject<{ text: z.ZodOptional; source_path: z.ZodOptional; items: z.ZodOptional>>; labels: z.ZodType>; allow_none: z.ZodOptional; threshold: z.ZodOptional; frame: z.ZodOptional; per_file_max_chars: z.ZodOptional; model: z.ZodOptional; }, z.core.$strip>; export type ClassifyInput = z.infer; export interface ClassifyGuardedWithFrame extends ClassifyGuarded { off_topic?: boolean; off_topic_reason?: string | null; } export declare function handleClassify(input: ClassifyInput, ctx: RunContext): Promise | Envelope>>; //# sourceMappingURL=classify.d.ts.map