@erdoai/ui 0.1.82 → 0.1.84
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 +121 -1
- package/dist/index.d.ts +121 -1
- package/dist/index.js +10 -10
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1311,6 +1311,74 @@ 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
|
+
/** Callback when a suggestion is clicked */
|
|
1344
|
+
onSuggestionClick?: (suggestion: string) => void;
|
|
1345
|
+
}
|
|
1346
|
+
/**
|
|
1347
|
+
* Renders an Erdo MCP tool result from a Vercel AI SDK message part.
|
|
1348
|
+
*
|
|
1349
|
+
* This component bridges AI SDK's tool invocation system with Erdo's
|
|
1350
|
+
* rich UI rendering. It handles:
|
|
1351
|
+
*
|
|
1352
|
+
* - **Loading states**: Shows a spinner while the tool is executing
|
|
1353
|
+
* - **UI tools** (render_chart, render_table): Renders charts and tables
|
|
1354
|
+
* via `UIGenerationNodes`, using `toolCallId` as invocationId for data fetching
|
|
1355
|
+
* - **Markdown tools** (ask_data_question): Renders text answer as markdown
|
|
1356
|
+
* - **Data tools** (list_datasets, get_schema, etc.): Renders JSON output
|
|
1357
|
+
* - **Errors**: Displays error messages
|
|
1358
|
+
*
|
|
1359
|
+
* @example
|
|
1360
|
+
* ```tsx
|
|
1361
|
+
* import { isErdoTool, ErdoToolResult } from '@erdoai/ui';
|
|
1362
|
+
*
|
|
1363
|
+
* function ChatMessage({ message }) {
|
|
1364
|
+
* return (
|
|
1365
|
+
* <div>
|
|
1366
|
+
* {message.parts.map((part, i) => {
|
|
1367
|
+
* if (isErdoTool(part)) {
|
|
1368
|
+
* return <ErdoToolResult key={part.toolCallId} part={part} />;
|
|
1369
|
+
* }
|
|
1370
|
+
* if (part.type === 'text') {
|
|
1371
|
+
* return <p key={i}>{part.text}</p>;
|
|
1372
|
+
* }
|
|
1373
|
+
* return null;
|
|
1374
|
+
* })}
|
|
1375
|
+
* </div>
|
|
1376
|
+
* );
|
|
1377
|
+
* }
|
|
1378
|
+
* ```
|
|
1379
|
+
*/
|
|
1380
|
+
declare function ErdoToolResult({ part, className, onSuggestionClick, }: ErdoToolResultProps): react_jsx_runtime.JSX.Element | null;
|
|
1381
|
+
|
|
1314
1382
|
/** Node structure from UI generation content */
|
|
1315
1383
|
interface UINode {
|
|
1316
1384
|
_type: string;
|
|
@@ -1795,6 +1863,58 @@ interface UINodeLike {
|
|
|
1795
1863
|
*/
|
|
1796
1864
|
declare function normalizeUINodes(nodes: unknown[]): UINodeLike[];
|
|
1797
1865
|
|
|
1866
|
+
/**
|
|
1867
|
+
* Utilities for identifying Erdo tool results in AI SDK message parts.
|
|
1868
|
+
*
|
|
1869
|
+
* When using Erdo's MCP server with Vercel AI SDK, tool calls appear as
|
|
1870
|
+
* message parts. In AI SDK v6, these come in two forms:
|
|
1871
|
+
* - Static tools: `{ type: 'tool-erdo_list_datasets', toolCallId, state, ... }`
|
|
1872
|
+
* - Dynamic tools (MCP): `{ type: 'dynamic-tool', toolName: 'erdo_list_datasets', ... }`
|
|
1873
|
+
*
|
|
1874
|
+
* These helpers detect Erdo tool parts so you can render them with `ErdoToolResult`.
|
|
1875
|
+
*/
|
|
1876
|
+
/**
|
|
1877
|
+
* Extract the Erdo tool name from an AI SDK message part.
|
|
1878
|
+
*
|
|
1879
|
+
* Returns the tool name if the part is an Erdo tool, or undefined otherwise.
|
|
1880
|
+
* Handles both static tool parts (`type: 'tool-erdo_*'`) and dynamic tool
|
|
1881
|
+
* parts (`type: 'dynamic-tool'` with `toolName: 'erdo_*'`).
|
|
1882
|
+
*/
|
|
1883
|
+
declare function getErdoToolName(part: {
|
|
1884
|
+
type: string;
|
|
1885
|
+
toolName?: string;
|
|
1886
|
+
}): string | undefined;
|
|
1887
|
+
/**
|
|
1888
|
+
* Check if an AI SDK message part is an Erdo tool call/result.
|
|
1889
|
+
*
|
|
1890
|
+
* @example
|
|
1891
|
+
* ```tsx
|
|
1892
|
+
* import { isErdoTool, ErdoToolResult } from '@erdoai/ui';
|
|
1893
|
+
*
|
|
1894
|
+
* // In your AI SDK chat message renderer:
|
|
1895
|
+
* {message.parts.map((part) => {
|
|
1896
|
+
* if (isErdoTool(part)) {
|
|
1897
|
+
* return <ErdoToolResult key={part.toolCallId} part={part} />;
|
|
1898
|
+
* }
|
|
1899
|
+
* // ... render other parts
|
|
1900
|
+
* })}
|
|
1901
|
+
* ```
|
|
1902
|
+
*/
|
|
1903
|
+
declare function isErdoTool(part: {
|
|
1904
|
+
type: string;
|
|
1905
|
+
toolName?: string;
|
|
1906
|
+
}): boolean;
|
|
1907
|
+
/** How each Erdo tool's result should be rendered. */
|
|
1908
|
+
type ErdoToolRenderType = 'ui' | 'markdown' | 'data';
|
|
1909
|
+
/**
|
|
1910
|
+
* Get the render type for an Erdo tool.
|
|
1911
|
+
*
|
|
1912
|
+
* - `'ui'`: Structured chart/table output rendered via UIGenerationNodes
|
|
1913
|
+
* - `'markdown'`: Text answer rendered as markdown
|
|
1914
|
+
* - `'data'`: Raw JSON output
|
|
1915
|
+
*/
|
|
1916
|
+
declare function getErdoToolRenderType(toolName: string): ErdoToolRenderType;
|
|
1917
|
+
|
|
1798
1918
|
/**
|
|
1799
1919
|
* SSE Event Handler
|
|
1800
1920
|
*
|
|
@@ -1926,4 +2046,4 @@ declare function useInvocationState(invocationId: string | undefined): AgentStre
|
|
|
1926
2046
|
*/
|
|
1927
2047
|
declare function useAgentStreamGlobalState(): AgentStreamState;
|
|
1928
2048
|
|
|
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 };
|
|
2049
|
+
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, type ErdoToolRenderType, 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, getErdoToolRenderType, handleAgentEvent, handleIncrementalMixedJsonParsing, handleSSEEvent, hasRenderableAssistantOutput, isErdoTool, 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,74 @@ 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
|
+
/** Callback when a suggestion is clicked */
|
|
1344
|
+
onSuggestionClick?: (suggestion: string) => void;
|
|
1345
|
+
}
|
|
1346
|
+
/**
|
|
1347
|
+
* Renders an Erdo MCP tool result from a Vercel AI SDK message part.
|
|
1348
|
+
*
|
|
1349
|
+
* This component bridges AI SDK's tool invocation system with Erdo's
|
|
1350
|
+
* rich UI rendering. It handles:
|
|
1351
|
+
*
|
|
1352
|
+
* - **Loading states**: Shows a spinner while the tool is executing
|
|
1353
|
+
* - **UI tools** (render_chart, render_table): Renders charts and tables
|
|
1354
|
+
* via `UIGenerationNodes`, using `toolCallId` as invocationId for data fetching
|
|
1355
|
+
* - **Markdown tools** (ask_data_question): Renders text answer as markdown
|
|
1356
|
+
* - **Data tools** (list_datasets, get_schema, etc.): Renders JSON output
|
|
1357
|
+
* - **Errors**: Displays error messages
|
|
1358
|
+
*
|
|
1359
|
+
* @example
|
|
1360
|
+
* ```tsx
|
|
1361
|
+
* import { isErdoTool, ErdoToolResult } from '@erdoai/ui';
|
|
1362
|
+
*
|
|
1363
|
+
* function ChatMessage({ message }) {
|
|
1364
|
+
* return (
|
|
1365
|
+
* <div>
|
|
1366
|
+
* {message.parts.map((part, i) => {
|
|
1367
|
+
* if (isErdoTool(part)) {
|
|
1368
|
+
* return <ErdoToolResult key={part.toolCallId} part={part} />;
|
|
1369
|
+
* }
|
|
1370
|
+
* if (part.type === 'text') {
|
|
1371
|
+
* return <p key={i}>{part.text}</p>;
|
|
1372
|
+
* }
|
|
1373
|
+
* return null;
|
|
1374
|
+
* })}
|
|
1375
|
+
* </div>
|
|
1376
|
+
* );
|
|
1377
|
+
* }
|
|
1378
|
+
* ```
|
|
1379
|
+
*/
|
|
1380
|
+
declare function ErdoToolResult({ part, className, onSuggestionClick, }: ErdoToolResultProps): react_jsx_runtime.JSX.Element | null;
|
|
1381
|
+
|
|
1314
1382
|
/** Node structure from UI generation content */
|
|
1315
1383
|
interface UINode {
|
|
1316
1384
|
_type: string;
|
|
@@ -1795,6 +1863,58 @@ interface UINodeLike {
|
|
|
1795
1863
|
*/
|
|
1796
1864
|
declare function normalizeUINodes(nodes: unknown[]): UINodeLike[];
|
|
1797
1865
|
|
|
1866
|
+
/**
|
|
1867
|
+
* Utilities for identifying Erdo tool results in AI SDK message parts.
|
|
1868
|
+
*
|
|
1869
|
+
* When using Erdo's MCP server with Vercel AI SDK, tool calls appear as
|
|
1870
|
+
* message parts. In AI SDK v6, these come in two forms:
|
|
1871
|
+
* - Static tools: `{ type: 'tool-erdo_list_datasets', toolCallId, state, ... }`
|
|
1872
|
+
* - Dynamic tools (MCP): `{ type: 'dynamic-tool', toolName: 'erdo_list_datasets', ... }`
|
|
1873
|
+
*
|
|
1874
|
+
* These helpers detect Erdo tool parts so you can render them with `ErdoToolResult`.
|
|
1875
|
+
*/
|
|
1876
|
+
/**
|
|
1877
|
+
* Extract the Erdo tool name from an AI SDK message part.
|
|
1878
|
+
*
|
|
1879
|
+
* Returns the tool name if the part is an Erdo tool, or undefined otherwise.
|
|
1880
|
+
* Handles both static tool parts (`type: 'tool-erdo_*'`) and dynamic tool
|
|
1881
|
+
* parts (`type: 'dynamic-tool'` with `toolName: 'erdo_*'`).
|
|
1882
|
+
*/
|
|
1883
|
+
declare function getErdoToolName(part: {
|
|
1884
|
+
type: string;
|
|
1885
|
+
toolName?: string;
|
|
1886
|
+
}): string | undefined;
|
|
1887
|
+
/**
|
|
1888
|
+
* Check if an AI SDK message part is an Erdo tool call/result.
|
|
1889
|
+
*
|
|
1890
|
+
* @example
|
|
1891
|
+
* ```tsx
|
|
1892
|
+
* import { isErdoTool, ErdoToolResult } from '@erdoai/ui';
|
|
1893
|
+
*
|
|
1894
|
+
* // In your AI SDK chat message renderer:
|
|
1895
|
+
* {message.parts.map((part) => {
|
|
1896
|
+
* if (isErdoTool(part)) {
|
|
1897
|
+
* return <ErdoToolResult key={part.toolCallId} part={part} />;
|
|
1898
|
+
* }
|
|
1899
|
+
* // ... render other parts
|
|
1900
|
+
* })}
|
|
1901
|
+
* ```
|
|
1902
|
+
*/
|
|
1903
|
+
declare function isErdoTool(part: {
|
|
1904
|
+
type: string;
|
|
1905
|
+
toolName?: string;
|
|
1906
|
+
}): boolean;
|
|
1907
|
+
/** How each Erdo tool's result should be rendered. */
|
|
1908
|
+
type ErdoToolRenderType = 'ui' | 'markdown' | 'data';
|
|
1909
|
+
/**
|
|
1910
|
+
* Get the render type for an Erdo tool.
|
|
1911
|
+
*
|
|
1912
|
+
* - `'ui'`: Structured chart/table output rendered via UIGenerationNodes
|
|
1913
|
+
* - `'markdown'`: Text answer rendered as markdown
|
|
1914
|
+
* - `'data'`: Raw JSON output
|
|
1915
|
+
*/
|
|
1916
|
+
declare function getErdoToolRenderType(toolName: string): ErdoToolRenderType;
|
|
1917
|
+
|
|
1798
1918
|
/**
|
|
1799
1919
|
* SSE Event Handler
|
|
1800
1920
|
*
|
|
@@ -1926,4 +2046,4 @@ declare function useInvocationState(invocationId: string | undefined): AgentStre
|
|
|
1926
2046
|
*/
|
|
1927
2047
|
declare function useAgentStreamGlobalState(): AgentStreamState;
|
|
1928
2048
|
|
|
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 };
|
|
2049
|
+
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, type ErdoToolRenderType, 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, getErdoToolRenderType, handleAgentEvent, handleIncrementalMixedJsonParsing, handleSSEEvent, hasRenderableAssistantOutput, isErdoTool, 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 };
|