/**
 * Responses协议相关类型定义
 * 支持OpenAI Responses API的JSON↔SSE双向转换
 */
// 重新导出基础事件类型
export * from './sse-events.js';
// Responses转换错误代码
export const RESPONSES_CONVERSION_ERROR_CODES = {
    TIMEOUT: 'RESPONSES_TIMEOUT',
    INVALID_EVENT: 'RESPONSES_INVALID_EVENT',
    SEQUENCE_ERROR: 'RESPONSES_SEQUENCE_ERROR',
    OUTPUT_ITEM_ERROR: 'RESPONSES_OUTPUT_ITEM_ERROR',
    CONTENT_PART_ERROR: 'RESPONSES_CONTENT_PART_ERROR',
    PARSE_ERROR: 'RESPONSES_PARSE_ERROR',
    VALIDATION_ERROR: 'RESPONSES_VALIDATION_ERROR',
    STREAM_ERROR: 'RESPONSES_STREAM_ERROR'
};
// 默认Responses转换配置
export const DEFAULT_RESPONSES_CONVERSION_CONFIG = {
    defaultTimeoutMs: 30000,
    heartbeatIntervalMs: 15000,
    eventTimeoutMs: 5000,
    defaultChunkSize: 12,
    defaultDelayMs: 8,
    reasoningChunkSize: 24,
    textChunkSize: 128,
    functionCallChunkSize: 24,
    enableEventValidation: true,
    enableSequenceValidation: true,
    strictMode: false,
    validateOutputItems: true,
    maxConcurrentOutputItems: 10,
    maxConcurrentContentParts: 50,
    eventBufferSize: 1000,
    debugMode: false,
    logLevel: 'info',
    enableMetrics: true
};
