@erdoai/types 0.1.12 → 0.1.13

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
@@ -290,12 +290,24 @@ interface Step {
290
290
  content: string | Record<string, unknown>;
291
291
  type: 'json' | 'text';
292
292
  }>;
293
+ /** Active content streams created by content_start events, keyed by content_id */
294
+ content_streams?: Record<string, ContentStream>;
293
295
  }
294
296
  /** One piece of content produced by a step */
295
297
  interface StepContentItem {
296
- type: 'text_delta' | 'tool_input' | 'tool_result' | 'error' | 'status_update';
298
+ type: 'text_delta' | 'tool_input' | 'tool_result' | 'error' | 'status_update' | 'content_start' | 'content_delta' | 'content_result';
297
299
  data: unknown;
298
300
  }
301
+ /** A streaming content stream identified by content_id, created by content_start events */
302
+ interface ContentStream {
303
+ content_id: string;
304
+ content_type: string;
305
+ ui_content_type: string;
306
+ /** Accumulated text from content_delta events */
307
+ text: string;
308
+ /** Final result data from content_result event */
309
+ result?: unknown;
310
+ }
299
311
  /** State for step-based streaming */
300
312
  interface StepStreamState {
301
313
  steps: Record<string, Step>;
@@ -303,4 +315,4 @@ interface StepStreamState {
303
315
  isStreaming: boolean;
304
316
  }
305
317
 
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 };
318
+ export type { AxisConfig, BotInvocationInfo, ChartConfig, ChartContent, ChartSeriesConfig, ChartType, CodeExecOutputItem, ContentItem, ContentStream, 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
@@ -290,12 +290,24 @@ interface Step {
290
290
  content: string | Record<string, unknown>;
291
291
  type: 'json' | 'text';
292
292
  }>;
293
+ /** Active content streams created by content_start events, keyed by content_id */
294
+ content_streams?: Record<string, ContentStream>;
293
295
  }
294
296
  /** One piece of content produced by a step */
295
297
  interface StepContentItem {
296
- type: 'text_delta' | 'tool_input' | 'tool_result' | 'error' | 'status_update';
298
+ type: 'text_delta' | 'tool_input' | 'tool_result' | 'error' | 'status_update' | 'content_start' | 'content_delta' | 'content_result';
297
299
  data: unknown;
298
300
  }
301
+ /** A streaming content stream identified by content_id, created by content_start events */
302
+ interface ContentStream {
303
+ content_id: string;
304
+ content_type: string;
305
+ ui_content_type: string;
306
+ /** Accumulated text from content_delta events */
307
+ text: string;
308
+ /** Final result data from content_result event */
309
+ result?: unknown;
310
+ }
299
311
  /** State for step-based streaming */
300
312
  interface StepStreamState {
301
313
  steps: Record<string, Step>;
@@ -303,4 +315,4 @@ interface StepStreamState {
303
315
  isStreaming: boolean;
304
316
  }
305
317
 
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 };
318
+ export type { AxisConfig, BotInvocationInfo, ChartConfig, ChartContent, ChartSeriesConfig, ChartType, CodeExecOutputItem, ContentItem, ContentStream, 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.12",
3
+ "version": "0.1.13",
4
4
  "description": "Erdo SDK shared types",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",