UNPKG

@redocly/theme

Version:

Shared UI components lib

21 lines (20 loc) 905 B
import { type AiSearchErrorConfig, ToolCallName } from '../types/search'; export declare enum AiSearchError { Unauthorized = "ai_search_unauthorized", Forbidden = "ai_search_forbidden", HttpRequestFailed = "http_request_in_failed_status", EmptyResponse = "empty_response", ErrorProcessingResponse = "error_processing_response" } export declare const AiSearchConversationRole: { readonly USER: "user"; readonly ASSISTANT: "assistant"; }; export type AiSearchConversationRole = (typeof AiSearchConversationRole)[keyof typeof AiSearchConversationRole]; export declare const AI_SEARCH_ERROR_CONFIG: Record<AiSearchError, AiSearchErrorConfig>; export declare const AI_SEARCH_MAX_MESSAGE_LENGTH = 45000; export declare const SEARCH_DEBOUNCE_TIME_MS = 300; export declare const TOOL_CALL_DISPLAY_TEXT: Record<ToolCallName, { inProgressText: string; completedText: string; }>;