UNPKG

@just-every/ensemble

Version:

LLM provider abstraction layer with unified streaming interface

7 lines 971 B
import { MessageEventBase, ResponseBaseMessage, ResponseThinkingMessage, ResponseOutputMessage, ResponseInputFunctionCall, ResponseInputFunctionCallOutput, ToolCall, ToolCallResult } from "../types/types.cjs"; export declare function convertToThinkingMessage(event: MessageEventBase, model?: string): ResponseThinkingMessage; export declare function convertToOutputMessage(event: MessageEventBase, model?: string, status?: 'in_progress' | 'completed' | 'incomplete'): ResponseOutputMessage; export declare function convertToFunctionCall(toolCall: ToolCall, model?: string, status?: 'in_progress' | 'completed' | 'incomplete'): ResponseInputFunctionCall; export declare function convertToFunctionCallOutput(toolResult: ToolCallResult, model?: string, status?: 'in_progress' | 'completed' | 'incomplete'): ResponseInputFunctionCallOutput; export declare function ensureMessageId<T extends ResponseBaseMessage>(message: T): T; //# sourceMappingURL=message_converter.d.ts.map