/**
 * Chat协议相关类型定义
 * 支持OpenAI Chat Completions的JSON↔SSE双向转换
 */
// Chat转换错误代码
export const CHAT_CONVERSION_ERROR_CODES = {
    TIMEOUT: 'CHAT_TIMEOUT',
    INVALID_CHUNK: 'CHAT_INVALID_CHUNK',
    SEQUENCE_ERROR: 'CHAT_SEQUENCE_ERROR',
    TOOL_CALL_ERROR: 'CHAT_TOOL_CALL_ERROR',
    PARSE_ERROR: 'CHAT_PARSE_ERROR',
    VALIDATION_ERROR: 'CHAT_VALIDATION_ERROR',
    STREAM_ERROR: 'CHAT_STREAM_ERROR'
};
// 默认Chat转换配置
export const DEFAULT_CHAT_CONVERSION_CONFIG = {
    defaultTimeoutMs: 30000,
    heartbeatIntervalMs: 15000,
    chunkTimeoutMs: 5000,
    defaultChunkDelayMs: 10,
    maxTokensPerChunk: 100,
    maxChunkSize: 1024,
    enableChunkValidation: true,
    strictMode: false,
    validateToolCalls: true,
    maxConcurrentChoices: 10,
    maxConcurrentToolCalls: 50,
    eventBufferSize: 1000,
    debugMode: false,
    logLevel: 'info',
    enableMetrics: true,
    reasoningMode: 'channel'
};
