@erdoai/types 0.1.11 → 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 +51 -1
- package/dist/index.d.ts +51 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -264,5 +264,55 @@ 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
|
+
/** Active content streams created by content_start events, keyed by content_id */
|
|
294
|
+
content_streams?: Record<string, ContentStream>;
|
|
295
|
+
}
|
|
296
|
+
/** One piece of content produced by a step */
|
|
297
|
+
interface StepContentItem {
|
|
298
|
+
type: 'text_delta' | 'tool_input' | 'tool_result' | 'error' | 'status_update' | 'content_start' | 'content_delta' | 'content_result';
|
|
299
|
+
data: unknown;
|
|
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
|
+
}
|
|
311
|
+
/** State for step-based streaming */
|
|
312
|
+
interface StepStreamState {
|
|
313
|
+
steps: Record<string, Step>;
|
|
314
|
+
rootStepId: string | null;
|
|
315
|
+
isStreaming: boolean;
|
|
316
|
+
}
|
|
267
317
|
|
|
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 };
|
|
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
|
@@ -264,5 +264,55 @@ 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
|
+
/** Active content streams created by content_start events, keyed by content_id */
|
|
294
|
+
content_streams?: Record<string, ContentStream>;
|
|
295
|
+
}
|
|
296
|
+
/** One piece of content produced by a step */
|
|
297
|
+
interface StepContentItem {
|
|
298
|
+
type: 'text_delta' | 'tool_input' | 'tool_result' | 'error' | 'status_update' | 'content_start' | 'content_delta' | 'content_result';
|
|
299
|
+
data: unknown;
|
|
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
|
+
}
|
|
311
|
+
/** State for step-based streaming */
|
|
312
|
+
interface StepStreamState {
|
|
313
|
+
steps: Record<string, Step>;
|
|
314
|
+
rootStepId: string | null;
|
|
315
|
+
isStreaming: boolean;
|
|
316
|
+
}
|
|
267
317
|
|
|
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 };
|
|
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 };
|