@erdoai/types 0.1.10 → 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
@@ -237,12 +237,19 @@ interface SendMessageParams {
237
237
  /** A message content item from the thread API */
238
238
  interface ThreadMessageContent {
239
239
  id: string;
240
+ message_id?: string;
240
241
  content_type: string;
242
+ /** UI content type hint (e.g., 'markdown', 'ui_generation') */
241
243
  ui_content_type?: string;
244
+ /** History content type - how content is serialized for LLM context */
245
+ history_content_type?: string;
242
246
  content: unknown;
243
247
  user_visibility?: string;
244
248
  bot_visibility?: string;
245
249
  created_at?: string;
250
+ updated_at?: string;
251
+ /** The invocation ID that created this content - needed for fetching chart/table data */
252
+ created_by_invocation_id?: string;
246
253
  }
247
254
  /** A message with its contents from the thread API */
248
255
  interface ThreadMessage {
@@ -257,5 +264,43 @@ interface ThreadMessage {
257
264
  interface ListThreadMessagesResponse {
258
265
  messages: ThreadMessage[];
259
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
+ }
260
305
 
261
- 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
@@ -237,12 +237,19 @@ interface SendMessageParams {
237
237
  /** A message content item from the thread API */
238
238
  interface ThreadMessageContent {
239
239
  id: string;
240
+ message_id?: string;
240
241
  content_type: string;
242
+ /** UI content type hint (e.g., 'markdown', 'ui_generation') */
241
243
  ui_content_type?: string;
244
+ /** History content type - how content is serialized for LLM context */
245
+ history_content_type?: string;
242
246
  content: unknown;
243
247
  user_visibility?: string;
244
248
  bot_visibility?: string;
245
249
  created_at?: string;
250
+ updated_at?: string;
251
+ /** The invocation ID that created this content - needed for fetching chart/table data */
252
+ created_by_invocation_id?: string;
246
253
  }
247
254
  /** A message with its contents from the thread API */
248
255
  interface ThreadMessage {
@@ -257,5 +264,43 @@ interface ThreadMessage {
257
264
  interface ListThreadMessagesResponse {
258
265
  messages: ThreadMessage[];
259
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
+ }
260
305
 
261
- 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.10",
3
+ "version": "0.1.12",
4
4
  "description": "Erdo SDK shared types",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",