/** * ollama_triage_logs — stable-shape log digest: errors, warnings, suspected root cause. * Tier: Instant. * * Two input modes: * - `log_text` : single log blob, returns {errors, warnings, suspected_root_cause?} * - `items` : batch of log blobs, each with a caller-provided id. * Returns one batch envelope with per-item {id, ok, result|error}. * * Exactly one of {log_text, items} must be provided. */ import { z } from "zod"; import type { Envelope } from "../envelope.js"; import { type BatchResult } from "./batch.js"; import type { RunContext } from "../runContext.js"; /** * Cap on a single log blob. 5 MB is well past any reasonable log that fits * in an 8B model's context, but it prevents an unbounded-input DoS where a * caller ships a multi-gigabyte blob and OOMs the server. */ export declare const MAX_LOG_TEXT_BYTES = 5000000; export declare const triageLogsSchema: z.ZodObject<{ log_text: z.ZodOptional; items: z.ZodOptional>>; patterns: z.ZodOptional>>; }, z.core.$strip>; export type TriageLogsInput = z.infer; export interface TriageLogsResult { errors: string[]; warnings: string[]; suspected_root_cause?: string; } export declare function handleTriageLogs(input: TriageLogsInput, ctx: RunContext): Promise | Envelope>>; //# sourceMappingURL=triageLogs.d.ts.map