import { z } from "zod"; export { completionStatsSchema, type CompletionStats, } from "./completion-event"; /** * Tool-call output dialect. Auto-detected from the model name; pass via * `completion({ toolDialect })` to override. * * Expected raw model output per dialect: * - `"hermes"`: `{"name":"get_weather","arguments":{"city":"Tokyo"}}` * - `"pythonic"`: `[get_weather(city="Tokyo")]` (optionally `<|tool_call_start|>...<|tool_call_end|>`-wrapped) * - `"json"`: `{"name":"get_weather","arguments":{"city":"Tokyo"}}` or `{"tool_calls":[{"name":"...","arguments":{...}}]}` * - `"harmony"`: `<|channel|>commentary to=functions.get_weather <|constrain|>json<|message|>{"city":"Tokyo"}<|call|>` * - `"qwen35"`: `VALUE` * - `"gemma4"`: `<|tool_call>call:NAME{key:<|"|>val<|"|>,...}` */ export declare const toolDialectSchema: z.ZodEnum<{ hermes: "hermes"; pythonic: "pythonic"; json: "json"; harmony: "harmony"; qwen35: "qwen35"; gemma4: "gemma4"; }>; export declare const attachmentSchema: z.ZodObject<{ path: z.ZodString; }, z.core.$strip>; export declare const generationParamsSchema: z.ZodObject<{ temp: z.ZodOptional; top_p: z.ZodOptional; top_k: z.ZodOptional; predict: z.ZodOptional; seed: z.ZodOptional; frequency_penalty: z.ZodOptional; presence_penalty: z.ZodOptional; repeat_penalty: z.ZodOptional; reasoning_budget: z.ZodOptional, z.ZodLiteral<0>]>>; }, z.core.$strict>; export declare const responseFormatSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"text">; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"json_object">; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"json_schema">; json_schema: z.ZodObject<{ name: z.ZodString; description: z.ZodOptional; schema: z.ZodRecord; strict: z.ZodOptional; }, z.core.$strict>; }, z.core.$strict>], "type">; export declare const completionParamsSchema: z.ZodObject<{ history: z.ZodArray>>; }, z.core.$strip>>; modelId: z.ZodString; kvCache: z.ZodOptional>; }, z.core.$strip>; export declare const completionClientParamsSchema: z.ZodObject<{ history: z.ZodArray>>; }, z.core.$strip>>; modelId: z.ZodString; tools: z.ZodOptional; name: z.ZodString; description: z.ZodString; parameters: z.ZodObject<{ type: z.ZodLiteral<"object">; properties: z.ZodRecord; description: z.ZodOptional; enum: z.ZodOptional>; }, z.core.$strip>>; required: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>>>; stream: z.ZodBoolean; kvCache: z.ZodOptional>; generationParams: z.ZodOptional; top_p: z.ZodOptional; top_k: z.ZodOptional; predict: z.ZodOptional; seed: z.ZodOptional; frequency_penalty: z.ZodOptional; presence_penalty: z.ZodOptional; repeat_penalty: z.ZodOptional; reasoning_budget: z.ZodOptional, z.ZodLiteral<0>]>>; }, z.core.$strict>>; captureThinking: z.ZodOptional; emitRawDeltas: z.ZodOptional; toolDialect: z.ZodOptional>; responseFormat: z.ZodOptional; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"json_object">; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"json_schema">; json_schema: z.ZodObject<{ name: z.ZodString; description: z.ZodOptional; schema: z.ZodRecord; strict: z.ZodOptional; }, z.core.$strict>; }, z.core.$strict>], "type">>; requestId: z.ZodOptional; }, z.core.$strip>; export declare const completionStreamRequestSchema: z.ZodObject<{ history: z.ZodArray>>; }, z.core.$strip>>; modelId: z.ZodString; tools: z.ZodOptional; name: z.ZodString; description: z.ZodString; parameters: z.ZodObject<{ type: z.ZodLiteral<"object">; properties: z.ZodRecord; description: z.ZodOptional; enum: z.ZodOptional>; }, z.core.$strip>>; required: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>>>; stream: z.ZodBoolean; kvCache: z.ZodOptional>; generationParams: z.ZodOptional; top_p: z.ZodOptional; top_k: z.ZodOptional; predict: z.ZodOptional; seed: z.ZodOptional; frequency_penalty: z.ZodOptional; presence_penalty: z.ZodOptional; repeat_penalty: z.ZodOptional; reasoning_budget: z.ZodOptional, z.ZodLiteral<0>]>>; }, z.core.$strict>>; captureThinking: z.ZodOptional; emitRawDeltas: z.ZodOptional; toolDialect: z.ZodOptional>; responseFormat: z.ZodOptional; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"json_object">; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"json_schema">; json_schema: z.ZodObject<{ name: z.ZodString; description: z.ZodOptional; schema: z.ZodRecord; strict: z.ZodOptional; }, z.core.$strict>; }, z.core.$strict>], "type">>; requestId: z.ZodOptional; type: z.ZodLiteral<"completionStream">; }, z.core.$strip>; export declare const completionStreamResponseSchema: z.ZodObject<{ type: z.ZodLiteral<"completionStream">; done: z.ZodOptional; events: z.ZodArray; seq: z.ZodNumber; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"rawDelta">; seq: z.ZodNumber; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"thinkingDelta">; seq: z.ZodNumber; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"toolCall">; seq: z.ZodNumber; call: z.ZodObject<{ id: z.ZodString; name: z.ZodString; arguments: z.ZodRecord; raw: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"toolError">; seq: z.ZodNumber; error: z.ZodObject<{ code: z.ZodEnum<{ PARSE_ERROR: "PARSE_ERROR"; VALIDATION_ERROR: "VALIDATION_ERROR"; UNKNOWN_TOOL: "UNKNOWN_TOOL"; }>; message: z.ZodString; raw: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"completionStats">; seq: z.ZodNumber; stats: z.ZodObject<{ timeToFirstToken: z.ZodOptional; tokensPerSecond: z.ZodOptional; cacheTokens: z.ZodOptional; promptTokens: z.ZodOptional; generatedTokens: z.ZodOptional; backendDevice: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"completionDone">; seq: z.ZodNumber; stopReason: z.ZodLiteral<"error">; error: z.ZodObject<{ message: z.ZodString; }, z.core.$strip>; raw: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"completionDone">; seq: z.ZodNumber; stopReason: z.ZodOptional>; raw: z.ZodOptional>; }, z.core.$strict>]>>; }, z.core.$strict>; export type GenerationParams = z.infer; export type CompletionParams = z.infer; export type ToolDialect = z.infer; export type ResponseFormat = z.infer; export type CompletionClientParams = z.input; export type CompletionStreamRequest = z.infer; export type CompletionStreamResponse = z.infer; export type Attachment = z.infer; //# sourceMappingURL=completion-stream.d.ts.map