import { Journal } from "./journal.js"; import { ChatCompletionRequest, Fixture, HandlerDefaults } from "./types.js"; import * as http$1 from "node:http"; //#region src/cohere.d.ts interface CohereToolCallDef { id?: string; type: string; function: { name: string; arguments: string; }; } interface CohereContentPart { type: string; text?: string; } interface CohereMessage { role: "user" | "assistant" | "system" | "tool"; content: string | CohereContentPart[]; tool_call_id?: string; tool_calls?: CohereToolCallDef[]; } interface CohereToolDefOpenAI { type: string; function: { name: string; description?: string; parameters?: object; }; } interface CohereToolDefNative { name: string; description?: string; parameter_definitions?: object; } type CohereToolDef = CohereToolDefOpenAI | CohereToolDefNative; interface CohereRequest { model: string; messages: CohereMessage[]; stream?: boolean; tools?: CohereToolDef[]; response_format?: { type: string; json_schema?: object; }; temperature?: number; max_tokens?: number; } declare function cohereToCompletionRequest(req: CohereRequest): ChatCompletionRequest; declare function handleCohere(req: http$1.IncomingMessage, res: http$1.ServerResponse, raw: string, fixtures: Fixture[], journal: Journal, defaults: HandlerDefaults, setCorsHeaders: (res: http$1.ServerResponse) => void): Promise; //#endregion export { cohereToCompletionRequest, handleCohere }; //# sourceMappingURL=cohere.d.ts.map