@uptiqai/widgets-sdk 1.291.0 → 1.292.0

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.ts CHANGED
@@ -187,6 +187,10 @@ declare type ConversationElement = {
187
187
  type: ConversationElementType;
188
188
  timestamp: Date;
189
189
  conversationId?: string;
190
+ /** The execution that wrote this element. Every sub-agent invocation of a thread has one of its own. */
191
+ executionId?: string;
192
+ /** The agent that wrote it. Absent on the optimistic user echo, which is minted here rather than served. */
193
+ agentId?: string;
190
194
  metadata?: Record<string, any>;
191
195
  };
192
196
 
@@ -507,6 +511,10 @@ export declare type SdkTool = {
507
511
  metadata?: Record<string, any>;
508
512
  type: SdkAgentStepType.TOOL_CALL;
509
513
  error?: string;
514
+ /** The call handed its work to a sub-agent rather than running it. */
515
+ isAgentInvocation?: boolean;
516
+ /** The sub-agent run it started — linked onto the call a moment after it, once the dispatch lands. */
517
+ subAgentExecutionId?: string;
510
518
  };
511
519
 
512
520
  export declare type SdkUserMessage = Pick<UserMessage_2, 'metadata' | 'id' | 'content' | 'timestamp'> & {
@@ -552,6 +560,8 @@ declare type ToolCallElement = ConversationElement & {
552
560
  status: 'pending' | 'executing' | 'completed' | 'failed';
553
561
  metadata?: Record<string, any>;
554
562
  relatedStepId?: string;
563
+ /** Marks a call that handed its work to a sub-agent instead of running it. */
564
+ subtype?: 'agent_invoke';
555
565
  };
556
566
 
557
567
  declare type ToolResultElement = ConversationElement & {