import type { JSONSchemaType } from "ajv";
export type CompletionStreamEvent = {
type: "output" | "reasoning";
delta: string;
text: string;
source?: "summary" | "text";
};
export type CompletionReasoningEffort = "none" | "minimal" | "low" | "medium" | "high" | "xhigh";
export type CompletionTool, Output = any> = {
name: string;
input_schema: JSONSchemaType;
description?: string;
handler: (input: Input) => Promise