@erdoai/types 0.1.11 → 0.1.12

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
@@ -264,5 +264,43 @@ interface ThreadMessage {
264
264
  interface ListThreadMessagesResponse {
265
265
  messages: ThreadMessage[];
266
266
  }
267
+ /** Step types: agent, LLM call, or tool call */
268
+ type StepType = 'agent' | 'llm_call' | 'tool_call';
269
+ /** A step in the execution tree */
270
+ interface Step {
271
+ id: string;
272
+ parent_id: string | null;
273
+ type: StepType;
274
+ name: string;
275
+ /** For agent steps: the agent key (e.g., "erdo.data-analyst"). Used for display label lookup. */
276
+ key?: string;
277
+ status: 'running' | 'completed' | 'error';
278
+ content: StepContentItem[];
279
+ error?: string;
280
+ /** For llm_call steps: "text" (markdown) or "json" (structured output). Set from step_started. */
281
+ content_type?: string;
282
+ /** Human-readable label while step is running (e.g., "Searching datasets..."). Set from step_started. */
283
+ running_status?: string;
284
+ /** Human-readable label when step completes (e.g., "Searched datasets"). Set from step_started or step_finished. */
285
+ finished_status?: string;
286
+ /** If true, step should not be rendered in the UI. */
287
+ hidden?: boolean;
288
+ /** Pre-parsed content chunks from parseMixedJson. Updated as text_delta accumulates. */
289
+ parsed_content?: Array<{
290
+ content: string | Record<string, unknown>;
291
+ type: 'json' | 'text';
292
+ }>;
293
+ }
294
+ /** One piece of content produced by a step */
295
+ interface StepContentItem {
296
+ type: 'text_delta' | 'tool_input' | 'tool_result' | 'error' | 'status_update';
297
+ data: unknown;
298
+ }
299
+ /** State for step-based streaming */
300
+ interface StepStreamState {
301
+ steps: Record<string, Step>;
302
+ rootStepId: string | null;
303
+ isStreaming: boolean;
304
+ }
267
305
 
268
- export type { AxisConfig, BotInvocationInfo, ChartConfig, ChartContent, ChartSeriesConfig, ChartType, CodeExecOutputItem, ContentItem, ContentType, CreateThreadParams, CreateTokenParams, ErdoClient, ErdoClientConfig, InvocationMode, InvocationStatus, InvokeParams, InvokeResult, ListThreadMessagesResponse, ListThreadsResponse, LogEntry, LogLevel, Message, MessageContent, Result, ResultOutput, SSEEvent, SSEEventMetadata, SendMessageParams, SeriesConfig, StepInfo, Thread, ThreadMessage, ThreadMessageContent, TokenResponse, ToolGroup, ToolInvocation, ToolResult, UIContentType, WebParseOutput, WebSearchOutput, WebSearchResult };
306
+ export type { AxisConfig, BotInvocationInfo, ChartConfig, ChartContent, ChartSeriesConfig, ChartType, CodeExecOutputItem, ContentItem, ContentType, CreateThreadParams, CreateTokenParams, ErdoClient, ErdoClientConfig, InvocationMode, InvocationStatus, InvokeParams, InvokeResult, ListThreadMessagesResponse, ListThreadsResponse, LogEntry, LogLevel, Message, MessageContent, Result, ResultOutput, SSEEvent, SSEEventMetadata, SendMessageParams, SeriesConfig, Step, StepContentItem, StepInfo, StepStreamState, StepType, Thread, ThreadMessage, ThreadMessageContent, TokenResponse, ToolGroup, ToolInvocation, ToolResult, UIContentType, WebParseOutput, WebSearchOutput, WebSearchResult };
package/dist/index.d.ts CHANGED
@@ -264,5 +264,43 @@ interface ThreadMessage {
264
264
  interface ListThreadMessagesResponse {
265
265
  messages: ThreadMessage[];
266
266
  }
267
+ /** Step types: agent, LLM call, or tool call */
268
+ type StepType = 'agent' | 'llm_call' | 'tool_call';
269
+ /** A step in the execution tree */
270
+ interface Step {
271
+ id: string;
272
+ parent_id: string | null;
273
+ type: StepType;
274
+ name: string;
275
+ /** For agent steps: the agent key (e.g., "erdo.data-analyst"). Used for display label lookup. */
276
+ key?: string;
277
+ status: 'running' | 'completed' | 'error';
278
+ content: StepContentItem[];
279
+ error?: string;
280
+ /** For llm_call steps: "text" (markdown) or "json" (structured output). Set from step_started. */
281
+ content_type?: string;
282
+ /** Human-readable label while step is running (e.g., "Searching datasets..."). Set from step_started. */
283
+ running_status?: string;
284
+ /** Human-readable label when step completes (e.g., "Searched datasets"). Set from step_started or step_finished. */
285
+ finished_status?: string;
286
+ /** If true, step should not be rendered in the UI. */
287
+ hidden?: boolean;
288
+ /** Pre-parsed content chunks from parseMixedJson. Updated as text_delta accumulates. */
289
+ parsed_content?: Array<{
290
+ content: string | Record<string, unknown>;
291
+ type: 'json' | 'text';
292
+ }>;
293
+ }
294
+ /** One piece of content produced by a step */
295
+ interface StepContentItem {
296
+ type: 'text_delta' | 'tool_input' | 'tool_result' | 'error' | 'status_update';
297
+ data: unknown;
298
+ }
299
+ /** State for step-based streaming */
300
+ interface StepStreamState {
301
+ steps: Record<string, Step>;
302
+ rootStepId: string | null;
303
+ isStreaming: boolean;
304
+ }
267
305
 
268
- export type { AxisConfig, BotInvocationInfo, ChartConfig, ChartContent, ChartSeriesConfig, ChartType, CodeExecOutputItem, ContentItem, ContentType, CreateThreadParams, CreateTokenParams, ErdoClient, ErdoClientConfig, InvocationMode, InvocationStatus, InvokeParams, InvokeResult, ListThreadMessagesResponse, ListThreadsResponse, LogEntry, LogLevel, Message, MessageContent, Result, ResultOutput, SSEEvent, SSEEventMetadata, SendMessageParams, SeriesConfig, StepInfo, Thread, ThreadMessage, ThreadMessageContent, TokenResponse, ToolGroup, ToolInvocation, ToolResult, UIContentType, WebParseOutput, WebSearchOutput, WebSearchResult };
306
+ export type { AxisConfig, BotInvocationInfo, ChartConfig, ChartContent, ChartSeriesConfig, ChartType, CodeExecOutputItem, ContentItem, ContentType, CreateThreadParams, CreateTokenParams, ErdoClient, ErdoClientConfig, InvocationMode, InvocationStatus, InvokeParams, InvokeResult, ListThreadMessagesResponse, ListThreadsResponse, LogEntry, LogLevel, Message, MessageContent, Result, ResultOutput, SSEEvent, SSEEventMetadata, SendMessageParams, SeriesConfig, Step, StepContentItem, StepInfo, StepStreamState, StepType, Thread, ThreadMessage, ThreadMessageContent, TokenResponse, ToolGroup, ToolInvocation, ToolResult, UIContentType, WebParseOutput, WebSearchOutput, WebSearchResult };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@erdoai/types",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "description": "Erdo SDK shared types",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",