@erdoai/ui 0.1.82 → 0.1.83
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/dist/index.cjs +10 -10
- package/dist/index.d.cts +122 -1
- package/dist/index.d.ts +122 -1
- package/dist/index.js +10 -10
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1311,6 +1311,78 @@ interface StepTreeContentProps {
|
|
|
1311
1311
|
*/
|
|
1312
1312
|
declare function StepTreeContent({ agentState, ContentComponent, className }: StepTreeContentProps): react_jsx_runtime.JSX.Element | null;
|
|
1313
1313
|
|
|
1314
|
+
/**
|
|
1315
|
+
* Minimal type for an AI SDK tool invocation part.
|
|
1316
|
+
*
|
|
1317
|
+
* Intentionally loose to work with both AI SDK v5 and v6 part types:
|
|
1318
|
+
* - v6 static: `{ type: 'tool-erdo_list_datasets', toolCallId, state, ... }`
|
|
1319
|
+
* - v6 dynamic: `{ type: 'dynamic-tool', toolName: 'erdo_list_datasets', ... }`
|
|
1320
|
+
*/
|
|
1321
|
+
interface ErdoToolPart {
|
|
1322
|
+
type: string;
|
|
1323
|
+
toolName?: string;
|
|
1324
|
+
toolCallId: string;
|
|
1325
|
+
state: string;
|
|
1326
|
+
input?: unknown;
|
|
1327
|
+
args?: Record<string, unknown>;
|
|
1328
|
+
result?: unknown;
|
|
1329
|
+
output?: unknown;
|
|
1330
|
+
errorText?: string;
|
|
1331
|
+
}
|
|
1332
|
+
/**
|
|
1333
|
+
* Props for the ErdoToolResult component.
|
|
1334
|
+
*
|
|
1335
|
+
* Accepts an AI SDK tool invocation part and renders the appropriate
|
|
1336
|
+
* Erdo UI (charts, tables, markdown) or a JSON fallback for data tools.
|
|
1337
|
+
*/
|
|
1338
|
+
interface ErdoToolResultProps {
|
|
1339
|
+
/** AI SDK tool invocation part from message.parts */
|
|
1340
|
+
part: ErdoToolPart;
|
|
1341
|
+
/** Optional className for styling */
|
|
1342
|
+
className?: string;
|
|
1343
|
+
/**
|
|
1344
|
+
* Invocation ID for data fetching (charts/tables).
|
|
1345
|
+
* If not provided, charts and tables will show a warning instead of data.
|
|
1346
|
+
*/
|
|
1347
|
+
invocationId?: string;
|
|
1348
|
+
/** Callback when a suggestion is clicked */
|
|
1349
|
+
onSuggestionClick?: (suggestion: string) => void;
|
|
1350
|
+
}
|
|
1351
|
+
/**
|
|
1352
|
+
* Renders an Erdo MCP tool result from a Vercel AI SDK message part.
|
|
1353
|
+
*
|
|
1354
|
+
* This component bridges AI SDK's tool invocation system with Erdo's
|
|
1355
|
+
* rich UI rendering. It handles:
|
|
1356
|
+
*
|
|
1357
|
+
* - **Loading states**: Shows a spinner while the tool is executing
|
|
1358
|
+
* - **UI tools** (ask_data_question, query_data): Renders charts, tables,
|
|
1359
|
+
* and markdown via `UIGenerationNodes`
|
|
1360
|
+
* - **Data tools** (list_datasets, get_schema, etc.): Renders JSON output
|
|
1361
|
+
* - **Errors**: Displays error messages
|
|
1362
|
+
*
|
|
1363
|
+
* @example
|
|
1364
|
+
* ```tsx
|
|
1365
|
+
* import { isErdoTool, ErdoToolResult } from '@erdoai/ui';
|
|
1366
|
+
*
|
|
1367
|
+
* function ChatMessage({ message }) {
|
|
1368
|
+
* return (
|
|
1369
|
+
* <div>
|
|
1370
|
+
* {message.parts.map((part, i) => {
|
|
1371
|
+
* if (isErdoTool(part)) {
|
|
1372
|
+
* return <ErdoToolResult key={part.toolCallId} part={part} />;
|
|
1373
|
+
* }
|
|
1374
|
+
* if (part.type === 'text') {
|
|
1375
|
+
* return <p key={i}>{part.text}</p>;
|
|
1376
|
+
* }
|
|
1377
|
+
* return null;
|
|
1378
|
+
* })}
|
|
1379
|
+
* </div>
|
|
1380
|
+
* );
|
|
1381
|
+
* }
|
|
1382
|
+
* ```
|
|
1383
|
+
*/
|
|
1384
|
+
declare function ErdoToolResult({ part, className, invocationId, onSuggestionClick, }: ErdoToolResultProps): react_jsx_runtime.JSX.Element | null;
|
|
1385
|
+
|
|
1314
1386
|
/** Node structure from UI generation content */
|
|
1315
1387
|
interface UINode {
|
|
1316
1388
|
_type: string;
|
|
@@ -1795,6 +1867,55 @@ interface UINodeLike {
|
|
|
1795
1867
|
*/
|
|
1796
1868
|
declare function normalizeUINodes(nodes: unknown[]): UINodeLike[];
|
|
1797
1869
|
|
|
1870
|
+
/**
|
|
1871
|
+
* Utilities for identifying Erdo tool results in AI SDK message parts.
|
|
1872
|
+
*
|
|
1873
|
+
* When using Erdo's MCP server with Vercel AI SDK, tool calls appear as
|
|
1874
|
+
* message parts. In AI SDK v6, these come in two forms:
|
|
1875
|
+
* - Static tools: `{ type: 'tool-erdo_list_datasets', toolCallId, state, ... }`
|
|
1876
|
+
* - Dynamic tools (MCP): `{ type: 'dynamic-tool', toolName: 'erdo_list_datasets', ... }`
|
|
1877
|
+
*
|
|
1878
|
+
* These helpers detect Erdo tool parts so you can render them with `ErdoToolResult`.
|
|
1879
|
+
*/
|
|
1880
|
+
/**
|
|
1881
|
+
* Extract the Erdo tool name from an AI SDK message part.
|
|
1882
|
+
*
|
|
1883
|
+
* Returns the tool name if the part is an Erdo tool, or undefined otherwise.
|
|
1884
|
+
* Handles both static tool parts (`type: 'tool-erdo_*'`) and dynamic tool
|
|
1885
|
+
* parts (`type: 'dynamic-tool'` with `toolName: 'erdo_*'`).
|
|
1886
|
+
*/
|
|
1887
|
+
declare function getErdoToolName(part: {
|
|
1888
|
+
type: string;
|
|
1889
|
+
toolName?: string;
|
|
1890
|
+
}): string | undefined;
|
|
1891
|
+
/**
|
|
1892
|
+
* Check if an AI SDK message part is an Erdo tool call/result.
|
|
1893
|
+
*
|
|
1894
|
+
* @example
|
|
1895
|
+
* ```tsx
|
|
1896
|
+
* import { isErdoTool, ErdoToolResult } from '@erdoai/ui';
|
|
1897
|
+
*
|
|
1898
|
+
* // In your AI SDK chat message renderer:
|
|
1899
|
+
* {message.parts.map((part) => {
|
|
1900
|
+
* if (isErdoTool(part)) {
|
|
1901
|
+
* return <ErdoToolResult key={part.toolCallId} part={part} />;
|
|
1902
|
+
* }
|
|
1903
|
+
* // ... render other parts
|
|
1904
|
+
* })}
|
|
1905
|
+
* ```
|
|
1906
|
+
*/
|
|
1907
|
+
declare function isErdoTool(part: {
|
|
1908
|
+
type: string;
|
|
1909
|
+
toolName?: string;
|
|
1910
|
+
}): boolean;
|
|
1911
|
+
/** Names of Erdo tools that return structured UI output (charts, tables, text). */
|
|
1912
|
+
declare const ERDO_UI_TOOLS: Set<string>;
|
|
1913
|
+
/**
|
|
1914
|
+
* Check if an Erdo tool returns structured UI output (charts, tables, markdown).
|
|
1915
|
+
* Non-UI tools (list_datasets, get_schema, etc.) return plain JSON data.
|
|
1916
|
+
*/
|
|
1917
|
+
declare function isErdoUITool(toolName: string): boolean;
|
|
1918
|
+
|
|
1798
1919
|
/**
|
|
1799
1920
|
* SSE Event Handler
|
|
1800
1921
|
*
|
|
@@ -1926,4 +2047,4 @@ declare function useInvocationState(invocationId: string | undefined): AgentStre
|
|
|
1926
2047
|
*/
|
|
1927
2048
|
declare function useAgentStreamGlobalState(): AgentStreamState;
|
|
1928
2049
|
|
|
1929
|
-
export { type AgentStreamStore, AgentStreamStoreProvider, type AgentStreamStoreProviderProps, BarChart, type BaseChartProps, type BotInvocation, BotInvocationContent, type BotInvocationContentData, type BotInvocationContentProps, type BotInvocationData, type BotInvocationEventInfo, type BotInvocationStatusInfo, Chart, type ChartConfig, ChartContainer, ChartContent, type ChartContentProps, ChartLegend, ChartLegendContent, ChartNode, type ChartNodeContent, ChartStyle, ChartTooltip, ChartTooltipContent, CodeexecContent, type CodeexecContentProps, CodegenContent, type CodegenContentProps, CollapsibleCodeBlock, type CollapsibleCodeBlockProps, Content, type ContentChartConfig, type ContentChunk, type ContentComponentProps, type ContentProps, type ContentType, type DataFetcher, DatasetChart, type DatasetChartProps, type DatasetDetails, DatasetDownload, type DatasetDownloadProps, type DatasetFetchRequest, DatasetTable, type DatasetTableProps, DownloadButtonNode, type DownloadButtonNodeContent, type Entity, type EntityType, ErdoProvider, type ErdoProviderConfig, type ErdoProviderProps, ErdoUI, type ErdoUIProps, ErrorBoundary, ExecutionStatus, ExpandableOutputContent, type ExpandableOutputContentProps, FileDownloadsNode, type FileDownloadsNodeContent, type GeneratedFile, HeatmapChart, InvocationEvent, type InvocationEventProps, InvocationEvents, type InvocationEventsProps, InvocationStatus, JSONStreamParser, type JSONValue, JsonContent, type JsonContentProps, LineChart, Loader, Log, LogContent, type LogContentProps, type LogProps, MarkdownContent, type MarkdownContentProps, type Memory, MemoryContent, type MemoryContentProps, type Message, type MessageContent, type MessageStreamingState, type MessageWithContents, type NodeRendererProps, type NullString, Output, type OutputContent, type OutputProps, type OutputWithContents, PieChart, type RawApiContent, type ResolvedBotInvocation, type ResultHandler, type SSEEventData, ScatterChart, type SpinnerStatus, SqlContent, type SqlContentProps, type Status, type StatusEvent, StatusSpinner, type StatusSpinnerProps, StderrText, StdoutText, StdwarnText, type Step, StepInvocation, type StepInvocationProps, StepInvocationStatus, type StepInvocationStatusProps, StepTreeContent, type StepTreeContentProps, SuggestionsNode, type SuggestionsNodeContent, TableContent, type TableContentProps, TableNode, type TableNodeContent, TextContent, type TextContentProps, TextMarkdownNode, type TextMarkdownNodeContent, ThinkingContent, type ThinkingContentProps, ToolGroupContent, type ToolGroupContentProps, UIGenerationNodes, type UIGenerationNodesProps, type UINode, type UseDatasetContentsResult, type UseThreadOptions, type UseThreadReturn, WebParseContent, type WebParseContentProps, WebSearchContent, type WebSearchContentProps, type WrapperType, WritingLoader, agentStateToContents, cn, completeStreamingContent, createAgentStreamStore, createInitialAgentState, extractContentItems, formatValue, handleAgentEvent, handleIncrementalMixedJsonParsing, handleSSEEvent, hasRenderableAssistantOutput, isJsonLike, isNullString, isParsingComplete, isParsingInProgress, isWhitespaceChar, nodeComponents, normalizeContent, normalizeContents, normalizeUIGenerationChunks, normalizeUINodes, parseCompleteJson, parseMixedJson, parseToDate, resolveKeyFromData, sliceAgentStateToRoot, toSnakeCase, unwrapNullString, unwrapNullStringOr, useAgentStreamGlobalState, useAgentStreamStoreOptional, useChartZoom, useDatasetContents, useErdoConfig, useErdoConfigOptional, useInvocationState, useMultipleDatasetContents, useMultipleDatasetRequests, useThread };
|
|
2050
|
+
export { type AgentStreamStore, AgentStreamStoreProvider, type AgentStreamStoreProviderProps, BarChart, type BaseChartProps, type BotInvocation, BotInvocationContent, type BotInvocationContentData, type BotInvocationContentProps, type BotInvocationData, type BotInvocationEventInfo, type BotInvocationStatusInfo, Chart, type ChartConfig, ChartContainer, ChartContent, type ChartContentProps, ChartLegend, ChartLegendContent, ChartNode, type ChartNodeContent, ChartStyle, ChartTooltip, ChartTooltipContent, CodeexecContent, type CodeexecContentProps, CodegenContent, type CodegenContentProps, CollapsibleCodeBlock, type CollapsibleCodeBlockProps, Content, type ContentChartConfig, type ContentChunk, type ContentComponentProps, type ContentProps, type ContentType, type DataFetcher, DatasetChart, type DatasetChartProps, type DatasetDetails, DatasetDownload, type DatasetDownloadProps, type DatasetFetchRequest, DatasetTable, type DatasetTableProps, DownloadButtonNode, type DownloadButtonNodeContent, ERDO_UI_TOOLS, type Entity, type EntityType, ErdoProvider, type ErdoProviderConfig, type ErdoProviderProps, ErdoToolResult, type ErdoToolResultProps, ErdoUI, type ErdoUIProps, ErrorBoundary, ExecutionStatus, ExpandableOutputContent, type ExpandableOutputContentProps, FileDownloadsNode, type FileDownloadsNodeContent, type GeneratedFile, HeatmapChart, InvocationEvent, type InvocationEventProps, InvocationEvents, type InvocationEventsProps, InvocationStatus, JSONStreamParser, type JSONValue, JsonContent, type JsonContentProps, LineChart, Loader, Log, LogContent, type LogContentProps, type LogProps, MarkdownContent, type MarkdownContentProps, type Memory, MemoryContent, type MemoryContentProps, type Message, type MessageContent, type MessageStreamingState, type MessageWithContents, type NodeRendererProps, type NullString, Output, type OutputContent, type OutputProps, type OutputWithContents, PieChart, type RawApiContent, type ResolvedBotInvocation, type ResultHandler, type SSEEventData, ScatterChart, type SpinnerStatus, SqlContent, type SqlContentProps, type Status, type StatusEvent, StatusSpinner, type StatusSpinnerProps, StderrText, StdoutText, StdwarnText, type Step, StepInvocation, type StepInvocationProps, StepInvocationStatus, type StepInvocationStatusProps, StepTreeContent, type StepTreeContentProps, SuggestionsNode, type SuggestionsNodeContent, TableContent, type TableContentProps, TableNode, type TableNodeContent, TextContent, type TextContentProps, TextMarkdownNode, type TextMarkdownNodeContent, ThinkingContent, type ThinkingContentProps, ToolGroupContent, type ToolGroupContentProps, UIGenerationNodes, type UIGenerationNodesProps, type UINode, type UseDatasetContentsResult, type UseThreadOptions, type UseThreadReturn, WebParseContent, type WebParseContentProps, WebSearchContent, type WebSearchContentProps, type WrapperType, WritingLoader, agentStateToContents, cn, completeStreamingContent, createAgentStreamStore, createInitialAgentState, extractContentItems, formatValue, getErdoToolName, handleAgentEvent, handleIncrementalMixedJsonParsing, handleSSEEvent, hasRenderableAssistantOutput, isErdoTool, isErdoUITool, isJsonLike, isNullString, isParsingComplete, isParsingInProgress, isWhitespaceChar, nodeComponents, normalizeContent, normalizeContents, normalizeUIGenerationChunks, normalizeUINodes, parseCompleteJson, parseMixedJson, parseToDate, resolveKeyFromData, sliceAgentStateToRoot, toSnakeCase, unwrapNullString, unwrapNullStringOr, useAgentStreamGlobalState, useAgentStreamStoreOptional, useChartZoom, useDatasetContents, useErdoConfig, useErdoConfigOptional, useInvocationState, useMultipleDatasetContents, useMultipleDatasetRequests, useThread };
|
package/dist/index.d.ts
CHANGED
|
@@ -1311,6 +1311,78 @@ interface StepTreeContentProps {
|
|
|
1311
1311
|
*/
|
|
1312
1312
|
declare function StepTreeContent({ agentState, ContentComponent, className }: StepTreeContentProps): react_jsx_runtime.JSX.Element | null;
|
|
1313
1313
|
|
|
1314
|
+
/**
|
|
1315
|
+
* Minimal type for an AI SDK tool invocation part.
|
|
1316
|
+
*
|
|
1317
|
+
* Intentionally loose to work with both AI SDK v5 and v6 part types:
|
|
1318
|
+
* - v6 static: `{ type: 'tool-erdo_list_datasets', toolCallId, state, ... }`
|
|
1319
|
+
* - v6 dynamic: `{ type: 'dynamic-tool', toolName: 'erdo_list_datasets', ... }`
|
|
1320
|
+
*/
|
|
1321
|
+
interface ErdoToolPart {
|
|
1322
|
+
type: string;
|
|
1323
|
+
toolName?: string;
|
|
1324
|
+
toolCallId: string;
|
|
1325
|
+
state: string;
|
|
1326
|
+
input?: unknown;
|
|
1327
|
+
args?: Record<string, unknown>;
|
|
1328
|
+
result?: unknown;
|
|
1329
|
+
output?: unknown;
|
|
1330
|
+
errorText?: string;
|
|
1331
|
+
}
|
|
1332
|
+
/**
|
|
1333
|
+
* Props for the ErdoToolResult component.
|
|
1334
|
+
*
|
|
1335
|
+
* Accepts an AI SDK tool invocation part and renders the appropriate
|
|
1336
|
+
* Erdo UI (charts, tables, markdown) or a JSON fallback for data tools.
|
|
1337
|
+
*/
|
|
1338
|
+
interface ErdoToolResultProps {
|
|
1339
|
+
/** AI SDK tool invocation part from message.parts */
|
|
1340
|
+
part: ErdoToolPart;
|
|
1341
|
+
/** Optional className for styling */
|
|
1342
|
+
className?: string;
|
|
1343
|
+
/**
|
|
1344
|
+
* Invocation ID for data fetching (charts/tables).
|
|
1345
|
+
* If not provided, charts and tables will show a warning instead of data.
|
|
1346
|
+
*/
|
|
1347
|
+
invocationId?: string;
|
|
1348
|
+
/** Callback when a suggestion is clicked */
|
|
1349
|
+
onSuggestionClick?: (suggestion: string) => void;
|
|
1350
|
+
}
|
|
1351
|
+
/**
|
|
1352
|
+
* Renders an Erdo MCP tool result from a Vercel AI SDK message part.
|
|
1353
|
+
*
|
|
1354
|
+
* This component bridges AI SDK's tool invocation system with Erdo's
|
|
1355
|
+
* rich UI rendering. It handles:
|
|
1356
|
+
*
|
|
1357
|
+
* - **Loading states**: Shows a spinner while the tool is executing
|
|
1358
|
+
* - **UI tools** (ask_data_question, query_data): Renders charts, tables,
|
|
1359
|
+
* and markdown via `UIGenerationNodes`
|
|
1360
|
+
* - **Data tools** (list_datasets, get_schema, etc.): Renders JSON output
|
|
1361
|
+
* - **Errors**: Displays error messages
|
|
1362
|
+
*
|
|
1363
|
+
* @example
|
|
1364
|
+
* ```tsx
|
|
1365
|
+
* import { isErdoTool, ErdoToolResult } from '@erdoai/ui';
|
|
1366
|
+
*
|
|
1367
|
+
* function ChatMessage({ message }) {
|
|
1368
|
+
* return (
|
|
1369
|
+
* <div>
|
|
1370
|
+
* {message.parts.map((part, i) => {
|
|
1371
|
+
* if (isErdoTool(part)) {
|
|
1372
|
+
* return <ErdoToolResult key={part.toolCallId} part={part} />;
|
|
1373
|
+
* }
|
|
1374
|
+
* if (part.type === 'text') {
|
|
1375
|
+
* return <p key={i}>{part.text}</p>;
|
|
1376
|
+
* }
|
|
1377
|
+
* return null;
|
|
1378
|
+
* })}
|
|
1379
|
+
* </div>
|
|
1380
|
+
* );
|
|
1381
|
+
* }
|
|
1382
|
+
* ```
|
|
1383
|
+
*/
|
|
1384
|
+
declare function ErdoToolResult({ part, className, invocationId, onSuggestionClick, }: ErdoToolResultProps): react_jsx_runtime.JSX.Element | null;
|
|
1385
|
+
|
|
1314
1386
|
/** Node structure from UI generation content */
|
|
1315
1387
|
interface UINode {
|
|
1316
1388
|
_type: string;
|
|
@@ -1795,6 +1867,55 @@ interface UINodeLike {
|
|
|
1795
1867
|
*/
|
|
1796
1868
|
declare function normalizeUINodes(nodes: unknown[]): UINodeLike[];
|
|
1797
1869
|
|
|
1870
|
+
/**
|
|
1871
|
+
* Utilities for identifying Erdo tool results in AI SDK message parts.
|
|
1872
|
+
*
|
|
1873
|
+
* When using Erdo's MCP server with Vercel AI SDK, tool calls appear as
|
|
1874
|
+
* message parts. In AI SDK v6, these come in two forms:
|
|
1875
|
+
* - Static tools: `{ type: 'tool-erdo_list_datasets', toolCallId, state, ... }`
|
|
1876
|
+
* - Dynamic tools (MCP): `{ type: 'dynamic-tool', toolName: 'erdo_list_datasets', ... }`
|
|
1877
|
+
*
|
|
1878
|
+
* These helpers detect Erdo tool parts so you can render them with `ErdoToolResult`.
|
|
1879
|
+
*/
|
|
1880
|
+
/**
|
|
1881
|
+
* Extract the Erdo tool name from an AI SDK message part.
|
|
1882
|
+
*
|
|
1883
|
+
* Returns the tool name if the part is an Erdo tool, or undefined otherwise.
|
|
1884
|
+
* Handles both static tool parts (`type: 'tool-erdo_*'`) and dynamic tool
|
|
1885
|
+
* parts (`type: 'dynamic-tool'` with `toolName: 'erdo_*'`).
|
|
1886
|
+
*/
|
|
1887
|
+
declare function getErdoToolName(part: {
|
|
1888
|
+
type: string;
|
|
1889
|
+
toolName?: string;
|
|
1890
|
+
}): string | undefined;
|
|
1891
|
+
/**
|
|
1892
|
+
* Check if an AI SDK message part is an Erdo tool call/result.
|
|
1893
|
+
*
|
|
1894
|
+
* @example
|
|
1895
|
+
* ```tsx
|
|
1896
|
+
* import { isErdoTool, ErdoToolResult } from '@erdoai/ui';
|
|
1897
|
+
*
|
|
1898
|
+
* // In your AI SDK chat message renderer:
|
|
1899
|
+
* {message.parts.map((part) => {
|
|
1900
|
+
* if (isErdoTool(part)) {
|
|
1901
|
+
* return <ErdoToolResult key={part.toolCallId} part={part} />;
|
|
1902
|
+
* }
|
|
1903
|
+
* // ... render other parts
|
|
1904
|
+
* })}
|
|
1905
|
+
* ```
|
|
1906
|
+
*/
|
|
1907
|
+
declare function isErdoTool(part: {
|
|
1908
|
+
type: string;
|
|
1909
|
+
toolName?: string;
|
|
1910
|
+
}): boolean;
|
|
1911
|
+
/** Names of Erdo tools that return structured UI output (charts, tables, text). */
|
|
1912
|
+
declare const ERDO_UI_TOOLS: Set<string>;
|
|
1913
|
+
/**
|
|
1914
|
+
* Check if an Erdo tool returns structured UI output (charts, tables, markdown).
|
|
1915
|
+
* Non-UI tools (list_datasets, get_schema, etc.) return plain JSON data.
|
|
1916
|
+
*/
|
|
1917
|
+
declare function isErdoUITool(toolName: string): boolean;
|
|
1918
|
+
|
|
1798
1919
|
/**
|
|
1799
1920
|
* SSE Event Handler
|
|
1800
1921
|
*
|
|
@@ -1926,4 +2047,4 @@ declare function useInvocationState(invocationId: string | undefined): AgentStre
|
|
|
1926
2047
|
*/
|
|
1927
2048
|
declare function useAgentStreamGlobalState(): AgentStreamState;
|
|
1928
2049
|
|
|
1929
|
-
export { type AgentStreamStore, AgentStreamStoreProvider, type AgentStreamStoreProviderProps, BarChart, type BaseChartProps, type BotInvocation, BotInvocationContent, type BotInvocationContentData, type BotInvocationContentProps, type BotInvocationData, type BotInvocationEventInfo, type BotInvocationStatusInfo, Chart, type ChartConfig, ChartContainer, ChartContent, type ChartContentProps, ChartLegend, ChartLegendContent, ChartNode, type ChartNodeContent, ChartStyle, ChartTooltip, ChartTooltipContent, CodeexecContent, type CodeexecContentProps, CodegenContent, type CodegenContentProps, CollapsibleCodeBlock, type CollapsibleCodeBlockProps, Content, type ContentChartConfig, type ContentChunk, type ContentComponentProps, type ContentProps, type ContentType, type DataFetcher, DatasetChart, type DatasetChartProps, type DatasetDetails, DatasetDownload, type DatasetDownloadProps, type DatasetFetchRequest, DatasetTable, type DatasetTableProps, DownloadButtonNode, type DownloadButtonNodeContent, type Entity, type EntityType, ErdoProvider, type ErdoProviderConfig, type ErdoProviderProps, ErdoUI, type ErdoUIProps, ErrorBoundary, ExecutionStatus, ExpandableOutputContent, type ExpandableOutputContentProps, FileDownloadsNode, type FileDownloadsNodeContent, type GeneratedFile, HeatmapChart, InvocationEvent, type InvocationEventProps, InvocationEvents, type InvocationEventsProps, InvocationStatus, JSONStreamParser, type JSONValue, JsonContent, type JsonContentProps, LineChart, Loader, Log, LogContent, type LogContentProps, type LogProps, MarkdownContent, type MarkdownContentProps, type Memory, MemoryContent, type MemoryContentProps, type Message, type MessageContent, type MessageStreamingState, type MessageWithContents, type NodeRendererProps, type NullString, Output, type OutputContent, type OutputProps, type OutputWithContents, PieChart, type RawApiContent, type ResolvedBotInvocation, type ResultHandler, type SSEEventData, ScatterChart, type SpinnerStatus, SqlContent, type SqlContentProps, type Status, type StatusEvent, StatusSpinner, type StatusSpinnerProps, StderrText, StdoutText, StdwarnText, type Step, StepInvocation, type StepInvocationProps, StepInvocationStatus, type StepInvocationStatusProps, StepTreeContent, type StepTreeContentProps, SuggestionsNode, type SuggestionsNodeContent, TableContent, type TableContentProps, TableNode, type TableNodeContent, TextContent, type TextContentProps, TextMarkdownNode, type TextMarkdownNodeContent, ThinkingContent, type ThinkingContentProps, ToolGroupContent, type ToolGroupContentProps, UIGenerationNodes, type UIGenerationNodesProps, type UINode, type UseDatasetContentsResult, type UseThreadOptions, type UseThreadReturn, WebParseContent, type WebParseContentProps, WebSearchContent, type WebSearchContentProps, type WrapperType, WritingLoader, agentStateToContents, cn, completeStreamingContent, createAgentStreamStore, createInitialAgentState, extractContentItems, formatValue, handleAgentEvent, handleIncrementalMixedJsonParsing, handleSSEEvent, hasRenderableAssistantOutput, isJsonLike, isNullString, isParsingComplete, isParsingInProgress, isWhitespaceChar, nodeComponents, normalizeContent, normalizeContents, normalizeUIGenerationChunks, normalizeUINodes, parseCompleteJson, parseMixedJson, parseToDate, resolveKeyFromData, sliceAgentStateToRoot, toSnakeCase, unwrapNullString, unwrapNullStringOr, useAgentStreamGlobalState, useAgentStreamStoreOptional, useChartZoom, useDatasetContents, useErdoConfig, useErdoConfigOptional, useInvocationState, useMultipleDatasetContents, useMultipleDatasetRequests, useThread };
|
|
2050
|
+
export { type AgentStreamStore, AgentStreamStoreProvider, type AgentStreamStoreProviderProps, BarChart, type BaseChartProps, type BotInvocation, BotInvocationContent, type BotInvocationContentData, type BotInvocationContentProps, type BotInvocationData, type BotInvocationEventInfo, type BotInvocationStatusInfo, Chart, type ChartConfig, ChartContainer, ChartContent, type ChartContentProps, ChartLegend, ChartLegendContent, ChartNode, type ChartNodeContent, ChartStyle, ChartTooltip, ChartTooltipContent, CodeexecContent, type CodeexecContentProps, CodegenContent, type CodegenContentProps, CollapsibleCodeBlock, type CollapsibleCodeBlockProps, Content, type ContentChartConfig, type ContentChunk, type ContentComponentProps, type ContentProps, type ContentType, type DataFetcher, DatasetChart, type DatasetChartProps, type DatasetDetails, DatasetDownload, type DatasetDownloadProps, type DatasetFetchRequest, DatasetTable, type DatasetTableProps, DownloadButtonNode, type DownloadButtonNodeContent, ERDO_UI_TOOLS, type Entity, type EntityType, ErdoProvider, type ErdoProviderConfig, type ErdoProviderProps, ErdoToolResult, type ErdoToolResultProps, ErdoUI, type ErdoUIProps, ErrorBoundary, ExecutionStatus, ExpandableOutputContent, type ExpandableOutputContentProps, FileDownloadsNode, type FileDownloadsNodeContent, type GeneratedFile, HeatmapChart, InvocationEvent, type InvocationEventProps, InvocationEvents, type InvocationEventsProps, InvocationStatus, JSONStreamParser, type JSONValue, JsonContent, type JsonContentProps, LineChart, Loader, Log, LogContent, type LogContentProps, type LogProps, MarkdownContent, type MarkdownContentProps, type Memory, MemoryContent, type MemoryContentProps, type Message, type MessageContent, type MessageStreamingState, type MessageWithContents, type NodeRendererProps, type NullString, Output, type OutputContent, type OutputProps, type OutputWithContents, PieChart, type RawApiContent, type ResolvedBotInvocation, type ResultHandler, type SSEEventData, ScatterChart, type SpinnerStatus, SqlContent, type SqlContentProps, type Status, type StatusEvent, StatusSpinner, type StatusSpinnerProps, StderrText, StdoutText, StdwarnText, type Step, StepInvocation, type StepInvocationProps, StepInvocationStatus, type StepInvocationStatusProps, StepTreeContent, type StepTreeContentProps, SuggestionsNode, type SuggestionsNodeContent, TableContent, type TableContentProps, TableNode, type TableNodeContent, TextContent, type TextContentProps, TextMarkdownNode, type TextMarkdownNodeContent, ThinkingContent, type ThinkingContentProps, ToolGroupContent, type ToolGroupContentProps, UIGenerationNodes, type UIGenerationNodesProps, type UINode, type UseDatasetContentsResult, type UseThreadOptions, type UseThreadReturn, WebParseContent, type WebParseContentProps, WebSearchContent, type WebSearchContentProps, type WrapperType, WritingLoader, agentStateToContents, cn, completeStreamingContent, createAgentStreamStore, createInitialAgentState, extractContentItems, formatValue, getErdoToolName, handleAgentEvent, handleIncrementalMixedJsonParsing, handleSSEEvent, hasRenderableAssistantOutput, isErdoTool, isErdoUITool, isJsonLike, isNullString, isParsingComplete, isParsingInProgress, isWhitespaceChar, nodeComponents, normalizeContent, normalizeContents, normalizeUIGenerationChunks, normalizeUINodes, parseCompleteJson, parseMixedJson, parseToDate, resolveKeyFromData, sliceAgentStateToRoot, toSnakeCase, unwrapNullString, unwrapNullStringOr, useAgentStreamGlobalState, useAgentStreamStoreOptional, useChartZoom, useDatasetContents, useErdoConfig, useErdoConfigOptional, useInvocationState, useMultipleDatasetContents, useMultipleDatasetRequests, useThread };
|