@erdoai/ui 0.1.70 → 0.1.71

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.d.cts CHANGED
@@ -1,9 +1,10 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React$1 from 'react';
3
- import React__default from 'react';
3
+ import React__default, { ReactNode } from 'react';
4
4
  import { ErdoClient, ContentItem, InvokeResult, LogEntry, ToolGroup, InvocationStatus as InvocationStatus$1, AgentStreamState, SSEEvent, Thread } from '@erdoai/types';
5
5
  export { ContentItem } from '@erdoai/types';
6
6
  import * as RechartsPrimitive from 'recharts';
7
+ import { StoreApi } from 'zustand';
7
8
  import { ClassValue } from 'clsx';
8
9
 
9
10
  /**
@@ -1494,6 +1495,42 @@ declare function useMultipleDatasetRequests(requests: DatasetFetchRequest[], inv
1494
1495
  */
1495
1496
  declare function useMultipleDatasetContents(datasetSlugs: string[], invocationId: string, sqlQueries?: Record<string, string>, resourceKeys?: Record<string, string>): UseDatasetContentsResult[];
1496
1497
 
1498
+ /**
1499
+ * Zustand store for agent streaming state.
1500
+ *
1501
+ * Holds the global AgentStreamState and per-invocation sliced states.
1502
+ * Components subscribe to individual invocation slices via useInvocationState(),
1503
+ * so only the affected component re-renders when an event arrives.
1504
+ *
1505
+ * The store calls handleAgentEvent internally — consumers just push raw SSE events.
1506
+ */
1507
+
1508
+ declare function sliceAgentStateToRoot(state: AgentStreamState, rootStepID: string): AgentStreamState;
1509
+ interface AgentStreamStore {
1510
+ /** The single merged state from all events */
1511
+ globalState: AgentStreamState;
1512
+ /** Per-invocation sliced states. Key: invocation_id */
1513
+ invocationStates: Record<string, AgentStreamState>;
1514
+ /** Maps invocation_id → root step_id */
1515
+ invocationRootSteps: Record<string, string>;
1516
+ /** Queue for invocations awaiting their root step_started */
1517
+ pendingInvocationQueue: string[];
1518
+ /**
1519
+ * Push a raw SSE event into the store.
1520
+ * Calls handleAgentEvent internally and re-slices affected invocations.
1521
+ * @param event The raw SSE event
1522
+ * @param reconcile Optional post-processing (e.g., reconcileThinkingContentState)
1523
+ */
1524
+ pushEvent: (event: SSEEvent, reconcile?: (state: AgentStreamState) => AgentStreamState) => void;
1525
+ /** Register an invocation_id (from agent_invocation event). Queues it for root mapping. */
1526
+ registerInvocation: (invocationId: string) => void;
1527
+ /** Map an invocation_id to its root step_id (from step_started with type: 'agent'). */
1528
+ mapInvocationRoot: (invocationId: string, rootStepId: string) => void;
1529
+ /** Reset the store (new session). */
1530
+ reset: () => void;
1531
+ }
1532
+ declare function createAgentStreamStore(): StoreApi<AgentStreamStore>;
1533
+
1497
1534
  interface UseThreadOptions {
1498
1535
  /** Initial thread ID to use (if resuming an existing thread) */
1499
1536
  threadId?: string;
@@ -1528,6 +1565,8 @@ interface UseThreadReturn {
1528
1565
  cancel: () => void;
1529
1566
  /** Function to create or set the thread */
1530
1567
  setThread: (thread: Thread) => void;
1568
+ /** The Zustand store — pass to AgentStreamStoreProvider for granular subscriptions */
1569
+ agentStreamStore: StoreApi<AgentStreamStore>;
1531
1570
  }
1532
1571
  /**
1533
1572
  * Hook for managing a thread and sending messages.
@@ -1586,23 +1625,23 @@ interface UseThreadReturn {
1586
1625
  *
1587
1626
  * @example
1588
1627
  * ```tsx
1589
- * import { useThread, Content } from '@erdoai/ui';
1628
+ * import { useThread, Content, AgentStreamStoreProvider } from '@erdoai/ui';
1590
1629
  *
1591
1630
  * function MyChat() {
1592
- * const { isStreaming, streamingContents, sendMessage } = useThread({
1631
+ * const { isStreaming, streamingContents, sendMessage, agentStreamStore } = useThread({
1593
1632
  * botKey: 'org.my-bot',
1594
1633
  * onFinish: (finalContents) => console.log('Message complete with', finalContents.length, 'items'),
1595
1634
  * });
1596
1635
  *
1597
1636
  * return (
1598
- * <div>
1637
+ * <AgentStreamStoreProvider store={agentStreamStore}>
1599
1638
  * {streamingContents.map((content, idx) => (
1600
1639
  * <Content key={content.id || idx} content={content} />
1601
1640
  * ))}
1602
1641
  * <button onClick={() => sendMessage('Hello')} disabled={isStreaming}>
1603
1642
  * Send
1604
1643
  * </button>
1605
- * </div>
1644
+ * </AgentStreamStoreProvider>
1606
1645
  * );
1607
1646
  * }
1608
1647
  * ```
@@ -1858,4 +1897,26 @@ declare function hasRenderableAssistantOutput(state: AgentStreamState): boolean;
1858
1897
  */
1859
1898
  declare function agentStateToContents(state: AgentStreamState): ContentItem[];
1860
1899
 
1861
- export { 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, createInitialAgentState, extractContentItems, formatValue, handleAgentEvent, handleIncrementalMixedJsonParsing, handleSSEEvent, hasRenderableAssistantOutput, isJsonLike, isNullString, isParsingComplete, isParsingInProgress, isWhitespaceChar, nodeComponents, normalizeContent, normalizeContents, normalizeUIGenerationChunks, normalizeUINodes, parseCompleteJson, parseMixedJson, parseToDate, resolveKeyFromData, toSnakeCase, unwrapNullString, unwrapNullStringOr, useChartZoom, useDatasetContents, useErdoConfig, useErdoConfigOptional, useMultipleDatasetContents, useMultipleDatasetRequests, useThread };
1900
+ interface AgentStreamStoreProviderProps {
1901
+ store: StoreApi<AgentStreamStore>;
1902
+ children: ReactNode;
1903
+ }
1904
+ declare function AgentStreamStoreProvider({ store, children }: AgentStreamStoreProviderProps): react_jsx_runtime.JSX.Element;
1905
+ /**
1906
+ * Get the raw store API for imperative use (e.g., in event handlers).
1907
+ * Returns null if no provider is present (backward compat).
1908
+ */
1909
+ declare function useAgentStreamStoreOptional(): StoreApi<AgentStreamStore> | null;
1910
+ /**
1911
+ * Subscribe to a specific invocation's sliced agent state.
1912
+ * Only re-renders when that invocation's state reference changes.
1913
+ * Returns undefined if the invocation is not yet registered or no provider.
1914
+ */
1915
+ declare function useInvocationState(invocationId: string | undefined): AgentStreamState | undefined;
1916
+ /**
1917
+ * Subscribe to the full global agent state.
1918
+ * Re-renders on every event — use sparingly.
1919
+ */
1920
+ declare function useAgentStreamGlobalState(): AgentStreamState;
1921
+
1922
+ 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 };
package/dist/index.d.ts CHANGED
@@ -1,9 +1,10 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React$1 from 'react';
3
- import React__default from 'react';
3
+ import React__default, { ReactNode } from 'react';
4
4
  import { ErdoClient, ContentItem, InvokeResult, LogEntry, ToolGroup, InvocationStatus as InvocationStatus$1, AgentStreamState, SSEEvent, Thread } from '@erdoai/types';
5
5
  export { ContentItem } from '@erdoai/types';
6
6
  import * as RechartsPrimitive from 'recharts';
7
+ import { StoreApi } from 'zustand';
7
8
  import { ClassValue } from 'clsx';
8
9
 
9
10
  /**
@@ -1494,6 +1495,42 @@ declare function useMultipleDatasetRequests(requests: DatasetFetchRequest[], inv
1494
1495
  */
1495
1496
  declare function useMultipleDatasetContents(datasetSlugs: string[], invocationId: string, sqlQueries?: Record<string, string>, resourceKeys?: Record<string, string>): UseDatasetContentsResult[];
1496
1497
 
1498
+ /**
1499
+ * Zustand store for agent streaming state.
1500
+ *
1501
+ * Holds the global AgentStreamState and per-invocation sliced states.
1502
+ * Components subscribe to individual invocation slices via useInvocationState(),
1503
+ * so only the affected component re-renders when an event arrives.
1504
+ *
1505
+ * The store calls handleAgentEvent internally — consumers just push raw SSE events.
1506
+ */
1507
+
1508
+ declare function sliceAgentStateToRoot(state: AgentStreamState, rootStepID: string): AgentStreamState;
1509
+ interface AgentStreamStore {
1510
+ /** The single merged state from all events */
1511
+ globalState: AgentStreamState;
1512
+ /** Per-invocation sliced states. Key: invocation_id */
1513
+ invocationStates: Record<string, AgentStreamState>;
1514
+ /** Maps invocation_id → root step_id */
1515
+ invocationRootSteps: Record<string, string>;
1516
+ /** Queue for invocations awaiting their root step_started */
1517
+ pendingInvocationQueue: string[];
1518
+ /**
1519
+ * Push a raw SSE event into the store.
1520
+ * Calls handleAgentEvent internally and re-slices affected invocations.
1521
+ * @param event The raw SSE event
1522
+ * @param reconcile Optional post-processing (e.g., reconcileThinkingContentState)
1523
+ */
1524
+ pushEvent: (event: SSEEvent, reconcile?: (state: AgentStreamState) => AgentStreamState) => void;
1525
+ /** Register an invocation_id (from agent_invocation event). Queues it for root mapping. */
1526
+ registerInvocation: (invocationId: string) => void;
1527
+ /** Map an invocation_id to its root step_id (from step_started with type: 'agent'). */
1528
+ mapInvocationRoot: (invocationId: string, rootStepId: string) => void;
1529
+ /** Reset the store (new session). */
1530
+ reset: () => void;
1531
+ }
1532
+ declare function createAgentStreamStore(): StoreApi<AgentStreamStore>;
1533
+
1497
1534
  interface UseThreadOptions {
1498
1535
  /** Initial thread ID to use (if resuming an existing thread) */
1499
1536
  threadId?: string;
@@ -1528,6 +1565,8 @@ interface UseThreadReturn {
1528
1565
  cancel: () => void;
1529
1566
  /** Function to create or set the thread */
1530
1567
  setThread: (thread: Thread) => void;
1568
+ /** The Zustand store — pass to AgentStreamStoreProvider for granular subscriptions */
1569
+ agentStreamStore: StoreApi<AgentStreamStore>;
1531
1570
  }
1532
1571
  /**
1533
1572
  * Hook for managing a thread and sending messages.
@@ -1586,23 +1625,23 @@ interface UseThreadReturn {
1586
1625
  *
1587
1626
  * @example
1588
1627
  * ```tsx
1589
- * import { useThread, Content } from '@erdoai/ui';
1628
+ * import { useThread, Content, AgentStreamStoreProvider } from '@erdoai/ui';
1590
1629
  *
1591
1630
  * function MyChat() {
1592
- * const { isStreaming, streamingContents, sendMessage } = useThread({
1631
+ * const { isStreaming, streamingContents, sendMessage, agentStreamStore } = useThread({
1593
1632
  * botKey: 'org.my-bot',
1594
1633
  * onFinish: (finalContents) => console.log('Message complete with', finalContents.length, 'items'),
1595
1634
  * });
1596
1635
  *
1597
1636
  * return (
1598
- * <div>
1637
+ * <AgentStreamStoreProvider store={agentStreamStore}>
1599
1638
  * {streamingContents.map((content, idx) => (
1600
1639
  * <Content key={content.id || idx} content={content} />
1601
1640
  * ))}
1602
1641
  * <button onClick={() => sendMessage('Hello')} disabled={isStreaming}>
1603
1642
  * Send
1604
1643
  * </button>
1605
- * </div>
1644
+ * </AgentStreamStoreProvider>
1606
1645
  * );
1607
1646
  * }
1608
1647
  * ```
@@ -1858,4 +1897,26 @@ declare function hasRenderableAssistantOutput(state: AgentStreamState): boolean;
1858
1897
  */
1859
1898
  declare function agentStateToContents(state: AgentStreamState): ContentItem[];
1860
1899
 
1861
- export { 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, createInitialAgentState, extractContentItems, formatValue, handleAgentEvent, handleIncrementalMixedJsonParsing, handleSSEEvent, hasRenderableAssistantOutput, isJsonLike, isNullString, isParsingComplete, isParsingInProgress, isWhitespaceChar, nodeComponents, normalizeContent, normalizeContents, normalizeUIGenerationChunks, normalizeUINodes, parseCompleteJson, parseMixedJson, parseToDate, resolveKeyFromData, toSnakeCase, unwrapNullString, unwrapNullStringOr, useChartZoom, useDatasetContents, useErdoConfig, useErdoConfigOptional, useMultipleDatasetContents, useMultipleDatasetRequests, useThread };
1900
+ interface AgentStreamStoreProviderProps {
1901
+ store: StoreApi<AgentStreamStore>;
1902
+ children: ReactNode;
1903
+ }
1904
+ declare function AgentStreamStoreProvider({ store, children }: AgentStreamStoreProviderProps): react_jsx_runtime.JSX.Element;
1905
+ /**
1906
+ * Get the raw store API for imperative use (e.g., in event handlers).
1907
+ * Returns null if no provider is present (backward compat).
1908
+ */
1909
+ declare function useAgentStreamStoreOptional(): StoreApi<AgentStreamStore> | null;
1910
+ /**
1911
+ * Subscribe to a specific invocation's sliced agent state.
1912
+ * Only re-renders when that invocation's state reference changes.
1913
+ * Returns undefined if the invocation is not yet registered or no provider.
1914
+ */
1915
+ declare function useInvocationState(invocationId: string | undefined): AgentStreamState | undefined;
1916
+ /**
1917
+ * Subscribe to the full global agent state.
1918
+ * Re-renders on every event — use sparingly.
1919
+ */
1920
+ declare function useAgentStreamGlobalState(): AgentStreamState;
1921
+
1922
+ 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 };