@retrivora-ai/rag-engine 2.5.2 → 2.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/FREE_TIER_ARCHITECTURE.md +232 -232
- package/README.md +206 -206
- package/dist/handlers/index.d.mts +2 -2
- package/dist/handlers/index.d.ts +2 -2
- package/dist/handlers/index.js +271 -202
- package/dist/handlers/index.mjs +271 -202
- package/dist/{BatchProcessor-B8OLSahY.d.ts → index--RhMcXrt.d.ts} +380 -379
- package/dist/{index-BC635WW-.d.ts → index-DE8qPWpI.d.mts} +3 -17
- package/dist/{BatchProcessor-OVOIlNfK.d.mts → index-Dex_gQ3P.d.mts} +380 -379
- package/dist/{index-D2mY1CrY.d.mts → index-DkOhRqEc.d.ts} +3 -17
- package/dist/index.css +869 -1302
- package/dist/index.d.mts +37 -18
- package/dist/index.d.ts +37 -18
- package/dist/index.js +421 -225
- package/dist/index.min.css +2 -2
- package/dist/index.mjs +445 -249
- package/dist/server.d.mts +36 -31
- package/dist/server.d.ts +36 -31
- package/dist/server.js +271 -202
- package/dist/server.mjs +271 -202
- package/package.json +156 -148
- package/dist/{ILLMProvider-BynaFBpy.d.mts → ILLMProvider-DO5gj-e5.d.mts} +83 -83
- package/dist/{ILLMProvider-BynaFBpy.d.ts → ILLMProvider-DO5gj-e5.d.ts} +83 -83
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { C as ChatWidgetProps, a as ChatWindowProps, D as DocumentUploadProps, M as MessageBubbleProps, S as SourceCardProps, b as ConfigProviderProps, c as ClientConfig, P as ProductCardProps, d as ProductCarouselProps, e as ChatViewportSize, R as RemoteConfig } from './BatchProcessor-OVOIlNfK.mjs';
|
|
3
|
-
export { A as AuthenticationException, B as BatchOptions, f as BatchProcessor, g as BatchResult, h as ChartType, i as Chunk, j as ChunkOptions, k as CircuitBreaker, l as CircuitBreakerOptions, m as ConfigFetcher, n as ConfigurationException, o as DecisionContext, E as EmbeddingFailedException, I as IRenderRule, p as IRendererStrategy, q as IntentCategory, L as LicenseTierConfig, r as LicenseValidationError, s as LicenseValidationRequest, t as LicenseValidationResponse, u as LicenseValidator, v as ProviderCredentials, w as ProviderNotFoundException, x as RateLimitException, y as RemoteEmbeddingConfig, z as RemoteLLMConfig, F as RemoteVectorConfig, G as RenderDecision, H as RenderType, J as RetrievalException, K as Retrivora, N as RetrivoraError, O as RetrivoraErrorCode, Q as SDKVersionUnsupportedError, T as SDK_VERSION, U as isTransientError } from './BatchProcessor-OVOIlNfK.mjs';
|
|
4
|
-
import { O as ObservabilityTrace, P as Product, U as UITransformationResponse, a as UseRagChatOptions, b as UseRagChatReturn, c as ProjectChatSettings } from './ILLMProvider-BynaFBpy.mjs';
|
|
5
|
-
export { A as AuthMode, C as ChatMessage, d as ChatOptions, e as ChatResponse, E as EmbedOptions, f as EmbeddingConfig, g as EmbeddingProvider, I as ILLMProvider, h as IngestDocument, L as LLMConfig, i as LLMProvider, j as LatencyBreakdown, k as ProjectAiSettings, l as ProjectAuthSettings, m as ProjectBrandingSettings, n as ProjectTelemetrySettings, o as ProjectWidgetSettings, R as RAGConfig, p as RagConfig, q as RagMessage, r as RetrievalConfig, s as RetrievedChunk, T as ThemeMode, t as TokenUsage, u as UIConfig, v as UniversalRagConfig, w as UpsertDocument, V as VectorDBConfig, x as VectorDBProvider, y as VectorMatch, W as WidgetPosition, z as WorkflowConfig, B as createDefaultProjectSettings, D as normalizeProjectSettings, F as projectSettingsToUiConfig } from './ILLMProvider-BynaFBpy.mjs';
|
|
6
1
|
import React from 'react';
|
|
2
|
+
import { C as ChatWidgetProps, a as ChatWindowProps, D as DocumentUploadProps, M as MessageBubbleProps, S as SourceCardProps, b as ConfigProviderProps, c as ClientConfig, P as ProductCardProps, d as ProductCarouselProps, e as ChatViewportSize, R as RemoteConfig } from './index-Dex_gQ3P.mjs';
|
|
3
|
+
export { A as AuthenticationException, B as BatchOptions, f as BatchProcessor, g as BatchResult, h as ChartType, i as Chunk, j as ChunkOptions, k as CircuitBreaker, l as CircuitBreakerOptions, m as ConfigFetcher, n as ConfigurationException, o as DecisionContext, E as EmbeddingFailedException, I as IRenderRule, p as IRendererStrategy, q as IntentCategory, L as LicenseTierConfig, r as LicenseValidationError, s as LicenseValidationRequest, t as LicenseValidationResponse, u as LicenseValidator, v as ProviderCredentials, w as ProviderNotFoundException, x as RateLimitException, y as RemoteEmbeddingConfig, z as RemoteLLMConfig, F as RemoteVectorConfig, G as RenderDecision, H as RenderType, J as RetrievalException, K as Retrivora, N as RetrivoraError, O as RetrivoraErrorCode, Q as SDKVersionUnsupportedError, T as SDK_VERSION, U as isTransientError } from './index-Dex_gQ3P.mjs';
|
|
4
|
+
import { O as ObservabilityTrace, P as Product, U as UITransformationResponse, a as UseRagChatOptions, b as UseRagChatReturn, c as ProjectChatSettings } from './ILLMProvider-DO5gj-e5.mjs';
|
|
5
|
+
export { A as AuthMode, C as ChatMessage, d as ChatOptions, e as ChatResponse, E as EmbedOptions, f as EmbeddingConfig, g as EmbeddingProvider, I as ILLMProvider, h as IngestDocument, L as LLMConfig, i as LLMProvider, j as LatencyBreakdown, k as ProjectAiSettings, l as ProjectAuthSettings, m as ProjectBrandingSettings, n as ProjectTelemetrySettings, o as ProjectWidgetSettings, R as RAGConfig, p as RagConfig, q as RagMessage, r as RetrievalConfig, s as RetrievedChunk, T as ThemeMode, t as TokenUsage, u as UIConfig, v as UniversalRagConfig, w as UpsertDocument, V as VectorDBConfig, x as VectorDBProvider, y as VectorMatch, W as WidgetPosition, z as WorkflowConfig, B as createDefaultProjectSettings, D as normalizeProjectSettings, F as projectSettingsToUiConfig } from './ILLMProvider-DO5gj-e5.mjs';
|
|
7
6
|
|
|
8
7
|
/**
|
|
9
8
|
* ChatWidget — Floating Action Button (FAB) that toggles the chat window.
|
|
@@ -23,7 +22,20 @@ import React from 'react';
|
|
|
23
22
|
*
|
|
24
23
|
* @param props - Widget position, callbacks, API overrides, and license overrides
|
|
25
24
|
*/
|
|
26
|
-
declare function ChatWidget({ position, onAddToCart, apiUrl, retrivoraApiBase, licenseKey: licenseKeyProp, headers }: ChatWidgetProps):
|
|
25
|
+
declare function ChatWidget({ position, onAddToCart, apiUrl, retrivoraApiBase, licenseKey: licenseKeyProp, headers }: ChatWidgetProps): React.JSX.Element | null;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* ChatWindow — The primary chat interface container component.
|
|
29
|
+
*
|
|
30
|
+
* Renders a fully functional chat experience including:
|
|
31
|
+
* - Header with branding, online indicator, and window controls (clear/resize/maximize/close)
|
|
32
|
+
* - Scrollable message area with SSE-streamed assistant replies, sources, and welcome state
|
|
33
|
+
* - Input area with textarea, voice input, document upload, auto-suggestions, and send controls
|
|
34
|
+
* - Mandatory license validation on mount (shows a blocking error overlay if invalid / terminated)
|
|
35
|
+
*
|
|
36
|
+
* All chat-send-side inputs (textarea, voice, upload, suggestion chips, send button) are
|
|
37
|
+
* automatically disabled when the license validation fails or SDK version is unsupported.
|
|
38
|
+
*/
|
|
27
39
|
|
|
28
40
|
/**
|
|
29
41
|
* ChatWindow component.
|
|
@@ -43,21 +55,28 @@ declare function ChatWidget({ position, onAddToCart, apiUrl, retrivoraApiBase, l
|
|
|
43
55
|
* @param licenseKey - Override license key (highest priority; falls back to headers/env).
|
|
44
56
|
* @param headers - Custom headers forwarded with every network request.
|
|
45
57
|
*/
|
|
46
|
-
declare function ChatWindow({ className, style, onClose, showClose, onResizeStart, onResetResize, isResized, onMaximize, isMaximized, onAddToCart, apiUrl, retrivoraApiBase, licenseKey: licenseKeyProp, headers, sessionId: sessionIdProp, showHistory, }: ChatWindowProps):
|
|
58
|
+
declare function ChatWindow({ className, style, onClose, showClose, onResizeStart, onResetResize, isResized, onMaximize, isMaximized, onAddToCart, apiUrl, retrivoraApiBase, licenseKey: licenseKeyProp, headers, sessionId: sessionIdProp, showHistory, }: ChatWindowProps): React.JSX.Element;
|
|
47
59
|
|
|
48
|
-
declare function DocumentUpload({ namespace, uploadUrl, retrivoraApiBase, onUploadComplete, className }: DocumentUploadProps):
|
|
60
|
+
declare function DocumentUpload({ namespace, uploadUrl, retrivoraApiBase, onUploadComplete, className }: DocumentUploadProps): React.JSX.Element;
|
|
49
61
|
|
|
50
|
-
declare function MessageBubble({ message, sources, isStreaming, primaryColor, accentColor, onAddToCart, viewportSize, showSources: showSourcesProp, onFeedback, }: MessageBubbleProps):
|
|
62
|
+
declare function MessageBubble({ message, sources, isStreaming, primaryColor, accentColor, onAddToCart, viewportSize, showSources: showSourcesProp, onFeedback, }: MessageBubbleProps): React.JSX.Element;
|
|
51
63
|
|
|
52
|
-
declare function SourceCard({ source, index }: SourceCardProps):
|
|
64
|
+
declare function SourceCard({ source, index }: SourceCardProps): React.JSX.Element;
|
|
53
65
|
|
|
54
66
|
interface ObservabilityPanelProps {
|
|
55
67
|
trace: ObservabilityTrace;
|
|
56
68
|
primaryColor?: string;
|
|
57
69
|
}
|
|
58
|
-
declare function ObservabilityPanel({ trace, primaryColor }: ObservabilityPanelProps):
|
|
70
|
+
declare function ObservabilityPanel({ trace, primaryColor }: ObservabilityPanelProps): React.JSX.Element;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* ConfigProvider — React Context that makes RagConfig (UI subset) available
|
|
74
|
+
* to all child components without prop drilling.
|
|
75
|
+
*
|
|
76
|
+
* Only the UI-safe portions of RagConfig are exposed to the client.
|
|
77
|
+
*/
|
|
59
78
|
|
|
60
|
-
declare function ConfigProvider({ config, children, }: ConfigProviderProps):
|
|
79
|
+
declare function ConfigProvider({ config, children, }: ConfigProviderProps): React.JSX.Element;
|
|
61
80
|
declare function useConfig(): ClientConfig;
|
|
62
81
|
|
|
63
82
|
interface Snippet {
|
|
@@ -70,11 +89,11 @@ interface Snippet {
|
|
|
70
89
|
|
|
71
90
|
declare function CodeViewer({ snippet }: {
|
|
72
91
|
snippet: Snippet;
|
|
73
|
-
}):
|
|
92
|
+
}): React.JSX.Element;
|
|
74
93
|
|
|
75
|
-
declare function ProductCard({ product, primaryColor, onAddToCart }: ProductCardProps):
|
|
94
|
+
declare function ProductCard({ product, primaryColor, onAddToCart }: ProductCardProps): React.JSX.Element;
|
|
76
95
|
|
|
77
|
-
declare function ProductCarousel({ products, primaryColor, onAddToCart }: ProductCarouselProps):
|
|
96
|
+
declare function ProductCarousel({ products, primaryColor, onAddToCart }: ProductCarouselProps): React.JSX.Element | null;
|
|
78
97
|
|
|
79
98
|
declare function UIDispatcher({ rawContent, primaryColor, accentColor, isStreaming, onAddToCart, viewportSize }: {
|
|
80
99
|
rawContent: string;
|
|
@@ -83,7 +102,7 @@ declare function UIDispatcher({ rawContent, primaryColor, accentColor, isStreami
|
|
|
83
102
|
isStreaming?: boolean;
|
|
84
103
|
onAddToCart?: (product: Product) => void;
|
|
85
104
|
viewportSize?: ChatViewportSize;
|
|
86
|
-
}):
|
|
105
|
+
}): React.JSX.Element | null;
|
|
87
106
|
|
|
88
107
|
interface VisualizationRendererProps {
|
|
89
108
|
data: UITransformationResponse;
|
|
@@ -105,7 +124,7 @@ interface VisualizationRendererProps {
|
|
|
105
124
|
* const transformation = await UITransformer.analyzeAndDecide(query, sources, llm);
|
|
106
125
|
* return <VisualizationRenderer data={transformation} />;
|
|
107
126
|
*/
|
|
108
|
-
declare function VisualizationRenderer({ data, className, primaryColor, onAddToCart, isStreaming, }: VisualizationRendererProps):
|
|
127
|
+
declare function VisualizationRenderer({ data, className, primaryColor, onAddToCart, isStreaming, }: VisualizationRendererProps): React.JSX.Element;
|
|
109
128
|
|
|
110
129
|
interface UIBlock {
|
|
111
130
|
view: 'carousel' | 'table' | 'chart' | 'form' | 'actions' | string;
|
|
@@ -142,7 +161,7 @@ interface UIBlockRendererProps {
|
|
|
142
161
|
onFormSubmit?: (formData: Record<string, any>) => void | Promise<void>;
|
|
143
162
|
isStreaming?: boolean;
|
|
144
163
|
}
|
|
145
|
-
declare function UIBlockRenderer({ block, customRenderers, primaryColor, accentColor, onAddToCart, onActionTriggered, onFormSubmit, isStreaming, }: UIBlockRendererProps):
|
|
164
|
+
declare function UIBlockRenderer({ block, customRenderers, primaryColor, accentColor, onAddToCart, onActionTriggered, onFormSubmit, isStreaming, }: UIBlockRendererProps): React.JSX.Element | null;
|
|
146
165
|
|
|
147
166
|
declare function useRagChat(projectId: string, options?: UseRagChatOptions): UseRagChatReturn;
|
|
148
167
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { C as ChatWidgetProps, a as ChatWindowProps, D as DocumentUploadProps, M as MessageBubbleProps, S as SourceCardProps, b as ConfigProviderProps, c as ClientConfig, P as ProductCardProps, d as ProductCarouselProps, e as ChatViewportSize, R as RemoteConfig } from './BatchProcessor-B8OLSahY.js';
|
|
3
|
-
export { A as AuthenticationException, B as BatchOptions, f as BatchProcessor, g as BatchResult, h as ChartType, i as Chunk, j as ChunkOptions, k as CircuitBreaker, l as CircuitBreakerOptions, m as ConfigFetcher, n as ConfigurationException, o as DecisionContext, E as EmbeddingFailedException, I as IRenderRule, p as IRendererStrategy, q as IntentCategory, L as LicenseTierConfig, r as LicenseValidationError, s as LicenseValidationRequest, t as LicenseValidationResponse, u as LicenseValidator, v as ProviderCredentials, w as ProviderNotFoundException, x as RateLimitException, y as RemoteEmbeddingConfig, z as RemoteLLMConfig, F as RemoteVectorConfig, G as RenderDecision, H as RenderType, J as RetrievalException, K as Retrivora, N as RetrivoraError, O as RetrivoraErrorCode, Q as SDKVersionUnsupportedError, T as SDK_VERSION, U as isTransientError } from './BatchProcessor-B8OLSahY.js';
|
|
4
|
-
import { O as ObservabilityTrace, P as Product, U as UITransformationResponse, a as UseRagChatOptions, b as UseRagChatReturn, c as ProjectChatSettings } from './ILLMProvider-BynaFBpy.js';
|
|
5
|
-
export { A as AuthMode, C as ChatMessage, d as ChatOptions, e as ChatResponse, E as EmbedOptions, f as EmbeddingConfig, g as EmbeddingProvider, I as ILLMProvider, h as IngestDocument, L as LLMConfig, i as LLMProvider, j as LatencyBreakdown, k as ProjectAiSettings, l as ProjectAuthSettings, m as ProjectBrandingSettings, n as ProjectTelemetrySettings, o as ProjectWidgetSettings, R as RAGConfig, p as RagConfig, q as RagMessage, r as RetrievalConfig, s as RetrievedChunk, T as ThemeMode, t as TokenUsage, u as UIConfig, v as UniversalRagConfig, w as UpsertDocument, V as VectorDBConfig, x as VectorDBProvider, y as VectorMatch, W as WidgetPosition, z as WorkflowConfig, B as createDefaultProjectSettings, D as normalizeProjectSettings, F as projectSettingsToUiConfig } from './ILLMProvider-BynaFBpy.js';
|
|
6
1
|
import React from 'react';
|
|
2
|
+
import { C as ChatWidgetProps, a as ChatWindowProps, D as DocumentUploadProps, M as MessageBubbleProps, S as SourceCardProps, b as ConfigProviderProps, c as ClientConfig, P as ProductCardProps, d as ProductCarouselProps, e as ChatViewportSize, R as RemoteConfig } from './index--RhMcXrt.js';
|
|
3
|
+
export { A as AuthenticationException, B as BatchOptions, f as BatchProcessor, g as BatchResult, h as ChartType, i as Chunk, j as ChunkOptions, k as CircuitBreaker, l as CircuitBreakerOptions, m as ConfigFetcher, n as ConfigurationException, o as DecisionContext, E as EmbeddingFailedException, I as IRenderRule, p as IRendererStrategy, q as IntentCategory, L as LicenseTierConfig, r as LicenseValidationError, s as LicenseValidationRequest, t as LicenseValidationResponse, u as LicenseValidator, v as ProviderCredentials, w as ProviderNotFoundException, x as RateLimitException, y as RemoteEmbeddingConfig, z as RemoteLLMConfig, F as RemoteVectorConfig, G as RenderDecision, H as RenderType, J as RetrievalException, K as Retrivora, N as RetrivoraError, O as RetrivoraErrorCode, Q as SDKVersionUnsupportedError, T as SDK_VERSION, U as isTransientError } from './index--RhMcXrt.js';
|
|
4
|
+
import { O as ObservabilityTrace, P as Product, U as UITransformationResponse, a as UseRagChatOptions, b as UseRagChatReturn, c as ProjectChatSettings } from './ILLMProvider-DO5gj-e5.js';
|
|
5
|
+
export { A as AuthMode, C as ChatMessage, d as ChatOptions, e as ChatResponse, E as EmbedOptions, f as EmbeddingConfig, g as EmbeddingProvider, I as ILLMProvider, h as IngestDocument, L as LLMConfig, i as LLMProvider, j as LatencyBreakdown, k as ProjectAiSettings, l as ProjectAuthSettings, m as ProjectBrandingSettings, n as ProjectTelemetrySettings, o as ProjectWidgetSettings, R as RAGConfig, p as RagConfig, q as RagMessage, r as RetrievalConfig, s as RetrievedChunk, T as ThemeMode, t as TokenUsage, u as UIConfig, v as UniversalRagConfig, w as UpsertDocument, V as VectorDBConfig, x as VectorDBProvider, y as VectorMatch, W as WidgetPosition, z as WorkflowConfig, B as createDefaultProjectSettings, D as normalizeProjectSettings, F as projectSettingsToUiConfig } from './ILLMProvider-DO5gj-e5.js';
|
|
7
6
|
|
|
8
7
|
/**
|
|
9
8
|
* ChatWidget — Floating Action Button (FAB) that toggles the chat window.
|
|
@@ -23,7 +22,20 @@ import React from 'react';
|
|
|
23
22
|
*
|
|
24
23
|
* @param props - Widget position, callbacks, API overrides, and license overrides
|
|
25
24
|
*/
|
|
26
|
-
declare function ChatWidget({ position, onAddToCart, apiUrl, retrivoraApiBase, licenseKey: licenseKeyProp, headers }: ChatWidgetProps):
|
|
25
|
+
declare function ChatWidget({ position, onAddToCart, apiUrl, retrivoraApiBase, licenseKey: licenseKeyProp, headers }: ChatWidgetProps): React.JSX.Element | null;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* ChatWindow — The primary chat interface container component.
|
|
29
|
+
*
|
|
30
|
+
* Renders a fully functional chat experience including:
|
|
31
|
+
* - Header with branding, online indicator, and window controls (clear/resize/maximize/close)
|
|
32
|
+
* - Scrollable message area with SSE-streamed assistant replies, sources, and welcome state
|
|
33
|
+
* - Input area with textarea, voice input, document upload, auto-suggestions, and send controls
|
|
34
|
+
* - Mandatory license validation on mount (shows a blocking error overlay if invalid / terminated)
|
|
35
|
+
*
|
|
36
|
+
* All chat-send-side inputs (textarea, voice, upload, suggestion chips, send button) are
|
|
37
|
+
* automatically disabled when the license validation fails or SDK version is unsupported.
|
|
38
|
+
*/
|
|
27
39
|
|
|
28
40
|
/**
|
|
29
41
|
* ChatWindow component.
|
|
@@ -43,21 +55,28 @@ declare function ChatWidget({ position, onAddToCart, apiUrl, retrivoraApiBase, l
|
|
|
43
55
|
* @param licenseKey - Override license key (highest priority; falls back to headers/env).
|
|
44
56
|
* @param headers - Custom headers forwarded with every network request.
|
|
45
57
|
*/
|
|
46
|
-
declare function ChatWindow({ className, style, onClose, showClose, onResizeStart, onResetResize, isResized, onMaximize, isMaximized, onAddToCart, apiUrl, retrivoraApiBase, licenseKey: licenseKeyProp, headers, sessionId: sessionIdProp, showHistory, }: ChatWindowProps):
|
|
58
|
+
declare function ChatWindow({ className, style, onClose, showClose, onResizeStart, onResetResize, isResized, onMaximize, isMaximized, onAddToCart, apiUrl, retrivoraApiBase, licenseKey: licenseKeyProp, headers, sessionId: sessionIdProp, showHistory, }: ChatWindowProps): React.JSX.Element;
|
|
47
59
|
|
|
48
|
-
declare function DocumentUpload({ namespace, uploadUrl, retrivoraApiBase, onUploadComplete, className }: DocumentUploadProps):
|
|
60
|
+
declare function DocumentUpload({ namespace, uploadUrl, retrivoraApiBase, onUploadComplete, className }: DocumentUploadProps): React.JSX.Element;
|
|
49
61
|
|
|
50
|
-
declare function MessageBubble({ message, sources, isStreaming, primaryColor, accentColor, onAddToCart, viewportSize, showSources: showSourcesProp, onFeedback, }: MessageBubbleProps):
|
|
62
|
+
declare function MessageBubble({ message, sources, isStreaming, primaryColor, accentColor, onAddToCart, viewportSize, showSources: showSourcesProp, onFeedback, }: MessageBubbleProps): React.JSX.Element;
|
|
51
63
|
|
|
52
|
-
declare function SourceCard({ source, index }: SourceCardProps):
|
|
64
|
+
declare function SourceCard({ source, index }: SourceCardProps): React.JSX.Element;
|
|
53
65
|
|
|
54
66
|
interface ObservabilityPanelProps {
|
|
55
67
|
trace: ObservabilityTrace;
|
|
56
68
|
primaryColor?: string;
|
|
57
69
|
}
|
|
58
|
-
declare function ObservabilityPanel({ trace, primaryColor }: ObservabilityPanelProps):
|
|
70
|
+
declare function ObservabilityPanel({ trace, primaryColor }: ObservabilityPanelProps): React.JSX.Element;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* ConfigProvider — React Context that makes RagConfig (UI subset) available
|
|
74
|
+
* to all child components without prop drilling.
|
|
75
|
+
*
|
|
76
|
+
* Only the UI-safe portions of RagConfig are exposed to the client.
|
|
77
|
+
*/
|
|
59
78
|
|
|
60
|
-
declare function ConfigProvider({ config, children, }: ConfigProviderProps):
|
|
79
|
+
declare function ConfigProvider({ config, children, }: ConfigProviderProps): React.JSX.Element;
|
|
61
80
|
declare function useConfig(): ClientConfig;
|
|
62
81
|
|
|
63
82
|
interface Snippet {
|
|
@@ -70,11 +89,11 @@ interface Snippet {
|
|
|
70
89
|
|
|
71
90
|
declare function CodeViewer({ snippet }: {
|
|
72
91
|
snippet: Snippet;
|
|
73
|
-
}):
|
|
92
|
+
}): React.JSX.Element;
|
|
74
93
|
|
|
75
|
-
declare function ProductCard({ product, primaryColor, onAddToCart }: ProductCardProps):
|
|
94
|
+
declare function ProductCard({ product, primaryColor, onAddToCart }: ProductCardProps): React.JSX.Element;
|
|
76
95
|
|
|
77
|
-
declare function ProductCarousel({ products, primaryColor, onAddToCart }: ProductCarouselProps):
|
|
96
|
+
declare function ProductCarousel({ products, primaryColor, onAddToCart }: ProductCarouselProps): React.JSX.Element | null;
|
|
78
97
|
|
|
79
98
|
declare function UIDispatcher({ rawContent, primaryColor, accentColor, isStreaming, onAddToCart, viewportSize }: {
|
|
80
99
|
rawContent: string;
|
|
@@ -83,7 +102,7 @@ declare function UIDispatcher({ rawContent, primaryColor, accentColor, isStreami
|
|
|
83
102
|
isStreaming?: boolean;
|
|
84
103
|
onAddToCart?: (product: Product) => void;
|
|
85
104
|
viewportSize?: ChatViewportSize;
|
|
86
|
-
}):
|
|
105
|
+
}): React.JSX.Element | null;
|
|
87
106
|
|
|
88
107
|
interface VisualizationRendererProps {
|
|
89
108
|
data: UITransformationResponse;
|
|
@@ -105,7 +124,7 @@ interface VisualizationRendererProps {
|
|
|
105
124
|
* const transformation = await UITransformer.analyzeAndDecide(query, sources, llm);
|
|
106
125
|
* return <VisualizationRenderer data={transformation} />;
|
|
107
126
|
*/
|
|
108
|
-
declare function VisualizationRenderer({ data, className, primaryColor, onAddToCart, isStreaming, }: VisualizationRendererProps):
|
|
127
|
+
declare function VisualizationRenderer({ data, className, primaryColor, onAddToCart, isStreaming, }: VisualizationRendererProps): React.JSX.Element;
|
|
109
128
|
|
|
110
129
|
interface UIBlock {
|
|
111
130
|
view: 'carousel' | 'table' | 'chart' | 'form' | 'actions' | string;
|
|
@@ -142,7 +161,7 @@ interface UIBlockRendererProps {
|
|
|
142
161
|
onFormSubmit?: (formData: Record<string, any>) => void | Promise<void>;
|
|
143
162
|
isStreaming?: boolean;
|
|
144
163
|
}
|
|
145
|
-
declare function UIBlockRenderer({ block, customRenderers, primaryColor, accentColor, onAddToCart, onActionTriggered, onFormSubmit, isStreaming, }: UIBlockRendererProps):
|
|
164
|
+
declare function UIBlockRenderer({ block, customRenderers, primaryColor, accentColor, onAddToCart, onActionTriggered, onFormSubmit, isStreaming, }: UIBlockRendererProps): React.JSX.Element | null;
|
|
146
165
|
|
|
147
166
|
declare function useRagChat(projectId: string, options?: UseRagChatOptions): UseRagChatReturn;
|
|
148
167
|
|