@octavus/core 2.2.0 → 2.4.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
@@ -192,6 +192,8 @@ interface ToolCallInfo {
192
192
  status: ToolCallStatus;
193
193
  result?: unknown;
194
194
  error?: string;
195
+ /** Google Gemini 3 thought signature - required for tool call continuation */
196
+ thoughtSignature?: string;
195
197
  }
196
198
  /** Signals the start of a response message */
197
199
  interface StartEvent {
@@ -265,33 +267,45 @@ interface TextStartEvent {
265
267
  * Client SDK should parse as object, not display as text.
266
268
  */
267
269
  responseType?: string;
270
+ /** Worker ID if this event originated from a worker execution */
271
+ workerId?: string;
268
272
  }
269
273
  /** Incremental text content */
270
274
  interface TextDeltaEvent {
271
275
  type: 'text-delta';
272
276
  id: string;
273
277
  delta: string;
278
+ /** Worker ID if this event originated from a worker execution */
279
+ workerId?: string;
274
280
  }
275
281
  /** End of text generation for a specific text part */
276
282
  interface TextEndEvent {
277
283
  type: 'text-end';
278
284
  id: string;
285
+ /** Worker ID if this event originated from a worker execution */
286
+ workerId?: string;
279
287
  }
280
288
  /** Start of reasoning/thinking generation */
281
289
  interface ReasoningStartEvent {
282
290
  type: 'reasoning-start';
283
291
  id: string;
292
+ /** Worker ID if this event originated from a worker execution */
293
+ workerId?: string;
284
294
  }
285
295
  /** Incremental reasoning content */
286
296
  interface ReasoningDeltaEvent {
287
297
  type: 'reasoning-delta';
288
298
  id: string;
289
299
  delta: string;
300
+ /** Worker ID if this event originated from a worker execution */
301
+ workerId?: string;
290
302
  }
291
303
  /** End of reasoning generation */
292
304
  interface ReasoningEndEvent {
293
305
  type: 'reasoning-end';
294
306
  id: string;
307
+ /** Worker ID if this event originated from a worker execution */
308
+ workerId?: string;
295
309
  }
296
310
  /** Tool call initiated - input streaming will follow */
297
311
  interface ToolInputStartEvent {
@@ -300,17 +314,23 @@ interface ToolInputStartEvent {
300
314
  toolName: string;
301
315
  /** Human-readable title/description for the tool call */
302
316
  title?: string;
317
+ /** Worker ID if this event originated from a worker execution */
318
+ workerId?: string;
303
319
  }
304
320
  /** Incremental tool input/arguments */
305
321
  interface ToolInputDeltaEvent {
306
322
  type: 'tool-input-delta';
307
323
  toolCallId: string;
308
324
  inputTextDelta: string;
325
+ /** Worker ID if this event originated from a worker execution */
326
+ workerId?: string;
309
327
  }
310
328
  /** Tool input streaming has ended */
311
329
  interface ToolInputEndEvent {
312
330
  type: 'tool-input-end';
313
331
  toolCallId: string;
332
+ /** Worker ID if this event originated from a worker execution */
333
+ workerId?: string;
314
334
  }
315
335
  /** Tool input is complete and available */
316
336
  interface ToolInputAvailableEvent {
@@ -318,24 +338,32 @@ interface ToolInputAvailableEvent {
318
338
  toolCallId: string;
319
339
  toolName: string;
320
340
  input: unknown;
341
+ /** Worker ID if this event originated from a worker execution */
342
+ workerId?: string;
321
343
  }
322
344
  /** Tool output/result is available */
323
345
  interface ToolOutputAvailableEvent {
324
346
  type: 'tool-output-available';
325
347
  toolCallId: string;
326
348
  output: unknown;
349
+ /** Worker ID if this event originated from a worker execution */
350
+ workerId?: string;
327
351
  }
328
352
  /** Tool execution resulted in error */
329
353
  interface ToolOutputErrorEvent {
330
354
  type: 'tool-output-error';
331
355
  toolCallId: string;
332
356
  error: string;
357
+ /** Worker ID if this event originated from a worker execution */
358
+ workerId?: string;
333
359
  }
334
360
  /** Base source event fields */
335
361
  interface BaseSourceEvent {
336
362
  type: 'source';
337
363
  /** Unique source ID */
338
364
  id: string;
365
+ /** Worker ID if this event originated from a worker execution */
366
+ workerId?: string;
339
367
  }
340
368
  /** URL source from web search or similar tools */
341
369
  interface SourceUrlEvent extends BaseSourceEvent {
@@ -369,12 +397,16 @@ interface BlockStartEvent {
369
397
  outputToChat?: boolean;
370
398
  /** Thread name (undefined or 'main' for main thread) */
371
399
  thread?: string;
400
+ /** Worker ID if this event originated from a worker execution */
401
+ workerId?: string;
372
402
  }
373
403
  /** Protocol block execution completed */
374
404
  interface BlockEndEvent {
375
405
  type: 'block-end';
376
406
  blockId: string;
377
407
  summary?: string;
408
+ /** Worker ID if this event originated from a worker execution */
409
+ workerId?: string;
378
410
  }
379
411
  /** Resource value updated */
380
412
  interface ResourceUpdateEvent {
@@ -393,6 +425,12 @@ interface PendingToolCall {
393
425
  outputVariable?: string;
394
426
  /** For block-based tools: block index to resume from after execution */
395
427
  blockIndex?: number;
428
+ /** Thread name where this tool call originated (for workers with threads) */
429
+ thread?: string;
430
+ /** Worker ID if this tool call originated from a worker execution */
431
+ workerId?: string;
432
+ /** Google Gemini 3 thought signature - required for tool call continuation */
433
+ thoughtSignature?: string;
396
434
  }
397
435
  /**
398
436
  * When this event is received, the stream will close.
@@ -401,6 +439,8 @@ interface PendingToolCall {
401
439
  interface ToolRequestEvent {
402
440
  type: 'tool-request';
403
441
  toolCalls: PendingToolCall[];
442
+ /** Worker ID if this tool request originated from a worker execution */
443
+ workerId?: string;
404
444
  }
405
445
  /**
406
446
  * Request for client-side tool execution.
@@ -430,6 +470,10 @@ interface ToolResult {
430
470
  error?: string;
431
471
  outputVariable?: string;
432
472
  blockIndex?: number;
473
+ /** Thread name where this tool call originated (for workers with threads) */
474
+ thread?: string;
475
+ /** Worker ID if this tool result is for a worker execution */
476
+ workerId?: string;
433
477
  }
434
478
  /**
435
479
  * A file generated during execution.
@@ -465,12 +509,40 @@ interface FileAvailableEvent {
465
509
  size?: number;
466
510
  /** Tool call that generated this file */
467
511
  toolCallId?: string;
512
+ /** Worker ID if this event originated from a worker execution */
513
+ workerId?: string;
514
+ }
515
+ /**
516
+ * Worker execution has started.
517
+ * Emitted when a worker begins execution (standalone or delegated from another agent).
518
+ */
519
+ interface WorkerStartEvent {
520
+ type: 'worker-start';
521
+ /** Unique ID for this worker invocation (correlates with worker-result, also used as session ID) */
522
+ workerId: string;
523
+ /** The worker's slug (agent identifier) */
524
+ workerSlug: string;
525
+ /** Display description for the worker execution */
526
+ description?: string;
527
+ }
528
+ /**
529
+ * Worker execution completed with output value.
530
+ * Emitted by worker agents before the finish event when output is defined.
531
+ */
532
+ interface WorkerResultEvent {
533
+ type: 'worker-result';
534
+ /** Unique ID for this worker invocation (correlates with worker-start) */
535
+ workerId: string;
536
+ /** The worker's output value (undefined if no output variable defined) */
537
+ output?: unknown;
538
+ /** Error message if the worker failed */
539
+ error?: string;
468
540
  }
469
- type StreamEvent = StartEvent | FinishEvent | ErrorEvent | TextStartEvent | TextDeltaEvent | TextEndEvent | ReasoningStartEvent | ReasoningDeltaEvent | ReasoningEndEvent | ToolInputStartEvent | ToolInputDeltaEvent | ToolInputEndEvent | ToolInputAvailableEvent | ToolOutputAvailableEvent | ToolOutputErrorEvent | SourceEvent | BlockStartEvent | BlockEndEvent | ResourceUpdateEvent | ToolRequestEvent | ClientToolRequestEvent | FileAvailableEvent;
541
+ type StreamEvent = StartEvent | FinishEvent | ErrorEvent | TextStartEvent | TextDeltaEvent | TextEndEvent | ReasoningStartEvent | ReasoningDeltaEvent | ReasoningEndEvent | ToolInputStartEvent | ToolInputDeltaEvent | ToolInputEndEvent | ToolInputAvailableEvent | ToolOutputAvailableEvent | ToolOutputErrorEvent | SourceEvent | BlockStartEvent | BlockEndEvent | ResourceUpdateEvent | ToolRequestEvent | ClientToolRequestEvent | FileAvailableEvent | WorkerStartEvent | WorkerResultEvent;
470
542
  /**
471
543
  * Type of content in a message part (internal)
472
544
  */
473
- type MessagePartType = 'text' | 'reasoning' | 'tool-call' | 'source' | 'file' | 'object';
545
+ type MessagePartType = 'text' | 'reasoning' | 'tool-call' | 'operation' | 'source' | 'file' | 'object' | 'worker';
474
546
  /**
475
547
  * Source info for URL sources (from web search, etc.)
476
548
  */
@@ -515,6 +587,37 @@ interface ObjectInfo {
515
587
  /** The structured object value */
516
588
  value: unknown;
517
589
  }
590
+ /**
591
+ * Operation info for block operations (internal storage).
592
+ * Used for operations like set-resource, serialize-thread, etc.
593
+ */
594
+ interface OperationInfo {
595
+ /** Operation ID (same as block ID) */
596
+ id: string;
597
+ /** Human-readable name (from block name/description) */
598
+ name: string;
599
+ /** Type of operation (e.g., 'set-resource', 'serialize-thread') */
600
+ operationType: string;
601
+ }
602
+ /**
603
+ * Worker part info for worker execution (internal storage).
604
+ * Stores nested parts generated by a worker, enabling parallel workers
605
+ * and persistence across page refresh.
606
+ */
607
+ interface WorkerPartInfo {
608
+ /** Unique ID for this worker invocation (also used as session ID for debug) */
609
+ workerId: string;
610
+ /** The worker's slug (agent identifier) */
611
+ workerSlug: string;
612
+ /** Display description for the worker */
613
+ description?: string;
614
+ /** Nested parts generated by the worker (text, reasoning, tool calls, etc.) */
615
+ nestedParts: MessagePart[];
616
+ /** Worker output value (when completed) */
617
+ output?: unknown;
618
+ /** Error message if worker failed */
619
+ error?: string;
620
+ }
518
621
  /**
519
622
  * A single part of a message, stored in order for proper display (internal)
520
623
  */
@@ -526,15 +629,28 @@ interface MessagePart {
526
629
  content?: string;
527
630
  /** Tool call info for tool-call parts */
528
631
  toolCall?: ToolCallInfo;
632
+ /** Operation info for operation parts (block operations) */
633
+ operation?: OperationInfo;
529
634
  /** Source info for source parts (from web search, etc.) */
530
635
  source?: SourceInfo;
531
636
  /** File info for file parts (from skill execution, etc.) */
532
637
  file?: FileInfo;
533
638
  /** Object info for object parts (structured output) */
534
639
  object?: ObjectInfo;
640
+ /** Worker info for worker parts (worker execution container) */
641
+ worker?: WorkerPartInfo;
535
642
  /** Thread name for non-main-thread content (e.g., "summary") */
536
643
  thread?: string;
537
644
  }
645
+ /**
646
+ * Tool result entry for tool continuation messages.
647
+ * Used internally when injecting tool results back into conversation history.
648
+ */
649
+ interface ToolResultEntry {
650
+ toolCallId: string;
651
+ toolName?: string;
652
+ result: unknown;
653
+ }
538
654
  /**
539
655
  * Internal chat message - stored in session state, used by LLM
540
656
  */
@@ -555,6 +671,12 @@ interface ChatMessage {
555
671
  reasoning?: string;
556
672
  /** Required by Anthropic to verify reasoning blocks */
557
673
  reasoningSignature?: string;
674
+ /**
675
+ * Tool results for continuation messages.
676
+ * When present, this message represents tool results being injected back
677
+ * into the conversation (converted to role: 'tool' for the AI SDK).
678
+ */
679
+ toolResults?: ToolResultEntry[];
558
680
  }
559
681
  /**
560
682
  * Status of a UI message
@@ -699,10 +821,36 @@ interface UIObjectPart {
699
821
  /** Thread name (undefined or 'main' for main thread) */
700
822
  thread?: string;
701
823
  }
824
+ /**
825
+ * Status of a UI worker part
826
+ */
827
+ type UIWorkerStatus = 'running' | 'done' | 'error';
828
+ /**
829
+ * Worker execution in a UI message.
830
+ * Represents a nested worker agent execution with its own parts.
831
+ * Used to display worker content in a dedicated container.
832
+ */
833
+ interface UIWorkerPart {
834
+ type: 'worker';
835
+ /** Unique ID for this worker invocation (correlates events, also used as session ID for debug) */
836
+ workerId: string;
837
+ /** The worker's slug (agent identifier) */
838
+ workerSlug: string;
839
+ /** Display description for the worker */
840
+ description?: string;
841
+ /** Nested parts generated by the worker */
842
+ parts: UIMessagePart[];
843
+ /** Worker output value (when done) */
844
+ output?: unknown;
845
+ /** Error message if worker failed */
846
+ error?: string;
847
+ /** Current status */
848
+ status: UIWorkerStatus;
849
+ }
702
850
  /**
703
851
  * Union of all UI message part types
704
852
  */
705
- type UIMessagePart = UITextPart | UIReasoningPart | UIToolCallPart | UIOperationPart | UISourcePart | UIFilePart | UIObjectPart;
853
+ type UIMessagePart = UITextPart | UIReasoningPart | UIToolCallPart | UIOperationPart | UISourcePart | UIFilePart | UIObjectPart | UIWorkerPart;
706
854
  /**
707
855
  * UI Message - the client-facing message format
708
856
  * All complexity is handled by the SDK, this is what consumers render
@@ -809,6 +957,8 @@ declare const toolResultSchema: z.ZodObject<{
809
957
  error: z.ZodOptional<z.ZodString>;
810
958
  outputVariable: z.ZodOptional<z.ZodString>;
811
959
  blockIndex: z.ZodOptional<z.ZodNumber>;
960
+ thread: z.ZodOptional<z.ZodString>;
961
+ workerId: z.ZodOptional<z.ZodString>;
812
962
  }, z.core.$strip>;
813
963
  /**
814
964
  * Schema for file references used in trigger input and user messages.
@@ -834,7 +984,9 @@ declare const chatMessageSchema: z.ZodObject<{
834
984
  text: "text";
835
985
  reasoning: "reasoning";
836
986
  "tool-call": "tool-call";
987
+ operation: "operation";
837
988
  file: "file";
989
+ worker: "worker";
838
990
  }>;
839
991
  visible: z.ZodBoolean;
840
992
  content: z.ZodOptional<z.ZodString>;
@@ -852,6 +1004,11 @@ declare const chatMessageSchema: z.ZodObject<{
852
1004
  result: z.ZodOptional<z.ZodUnknown>;
853
1005
  error: z.ZodOptional<z.ZodString>;
854
1006
  }, z.core.$strip>>;
1007
+ operation: z.ZodOptional<z.ZodObject<{
1008
+ id: z.ZodString;
1009
+ name: z.ZodString;
1010
+ operationType: z.ZodString;
1011
+ }, z.core.$strip>>;
855
1012
  source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
856
1013
  sourceType: z.ZodLiteral<"url">;
857
1014
  id: z.ZodString;
@@ -877,6 +1034,71 @@ declare const chatMessageSchema: z.ZodObject<{
877
1034
  typeName: z.ZodString;
878
1035
  value: z.ZodUnknown;
879
1036
  }, z.core.$strip>>;
1037
+ worker: z.ZodOptional<z.ZodObject<{
1038
+ workerId: z.ZodString;
1039
+ workerSlug: z.ZodString;
1040
+ description: z.ZodOptional<z.ZodString>;
1041
+ nestedParts: z.ZodArray<z.ZodObject<{
1042
+ type: z.ZodEnum<{
1043
+ object: "object";
1044
+ source: "source";
1045
+ text: "text";
1046
+ reasoning: "reasoning";
1047
+ "tool-call": "tool-call";
1048
+ operation: "operation";
1049
+ file: "file";
1050
+ }>;
1051
+ visible: z.ZodBoolean;
1052
+ content: z.ZodOptional<z.ZodString>;
1053
+ toolCall: z.ZodOptional<z.ZodObject<{
1054
+ id: z.ZodString;
1055
+ name: z.ZodString;
1056
+ description: z.ZodOptional<z.ZodString>;
1057
+ arguments: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1058
+ status: z.ZodEnum<{
1059
+ pending: "pending";
1060
+ streaming: "streaming";
1061
+ available: "available";
1062
+ error: "error";
1063
+ }>;
1064
+ result: z.ZodOptional<z.ZodUnknown>;
1065
+ error: z.ZodOptional<z.ZodString>;
1066
+ }, z.core.$strip>>;
1067
+ operation: z.ZodOptional<z.ZodObject<{
1068
+ id: z.ZodString;
1069
+ name: z.ZodString;
1070
+ operationType: z.ZodString;
1071
+ }, z.core.$strip>>;
1072
+ source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1073
+ sourceType: z.ZodLiteral<"url">;
1074
+ id: z.ZodString;
1075
+ url: z.ZodString;
1076
+ title: z.ZodOptional<z.ZodString>;
1077
+ }, z.core.$strip>, z.ZodObject<{
1078
+ sourceType: z.ZodLiteral<"document">;
1079
+ id: z.ZodString;
1080
+ mediaType: z.ZodString;
1081
+ title: z.ZodString;
1082
+ filename: z.ZodOptional<z.ZodString>;
1083
+ }, z.core.$strip>], "sourceType">>;
1084
+ file: z.ZodOptional<z.ZodObject<{
1085
+ id: z.ZodString;
1086
+ mediaType: z.ZodString;
1087
+ url: z.ZodString;
1088
+ filename: z.ZodOptional<z.ZodString>;
1089
+ size: z.ZodOptional<z.ZodNumber>;
1090
+ toolCallId: z.ZodOptional<z.ZodString>;
1091
+ }, z.core.$strip>>;
1092
+ object: z.ZodOptional<z.ZodObject<{
1093
+ id: z.ZodString;
1094
+ typeName: z.ZodString;
1095
+ value: z.ZodUnknown;
1096
+ }, z.core.$strip>>;
1097
+ thread: z.ZodOptional<z.ZodString>;
1098
+ }, z.core.$strip>>;
1099
+ output: z.ZodOptional<z.ZodUnknown>;
1100
+ error: z.ZodOptional<z.ZodString>;
1101
+ }, z.core.$strip>>;
880
1102
  thread: z.ZodOptional<z.ZodString>;
881
1103
  }, z.core.$strip>>;
882
1104
  createdAt: z.ZodString;
@@ -899,6 +1121,103 @@ declare const chatMessageSchema: z.ZodObject<{
899
1121
  reasoning: z.ZodOptional<z.ZodString>;
900
1122
  reasoningSignature: z.ZodOptional<z.ZodString>;
901
1123
  }, z.core.$strip>;
1124
+ declare const uiWorkerStatusSchema: z.ZodEnum<{
1125
+ error: "error";
1126
+ done: "done";
1127
+ running: "running";
1128
+ }>;
1129
+ declare const uiWorkerPartSchema: z.ZodObject<{
1130
+ type: z.ZodLiteral<"worker">;
1131
+ workerId: z.ZodString;
1132
+ workerSlug: z.ZodString;
1133
+ description: z.ZodOptional<z.ZodString>;
1134
+ parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1135
+ type: z.ZodLiteral<"text">;
1136
+ text: z.ZodString;
1137
+ status: z.ZodEnum<{
1138
+ streaming: "streaming";
1139
+ done: "done";
1140
+ }>;
1141
+ thread: z.ZodOptional<z.ZodString>;
1142
+ }, z.core.$strip>, z.ZodObject<{
1143
+ type: z.ZodLiteral<"reasoning">;
1144
+ text: z.ZodString;
1145
+ status: z.ZodEnum<{
1146
+ streaming: "streaming";
1147
+ done: "done";
1148
+ }>;
1149
+ thread: z.ZodOptional<z.ZodString>;
1150
+ }, z.core.$strip>, z.ZodObject<{
1151
+ type: z.ZodLiteral<"tool-call">;
1152
+ toolCallId: z.ZodString;
1153
+ toolName: z.ZodString;
1154
+ displayName: z.ZodOptional<z.ZodString>;
1155
+ args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1156
+ result: z.ZodOptional<z.ZodUnknown>;
1157
+ error: z.ZodOptional<z.ZodString>;
1158
+ status: z.ZodEnum<{
1159
+ pending: "pending";
1160
+ error: "error";
1161
+ done: "done";
1162
+ running: "running";
1163
+ }>;
1164
+ thread: z.ZodOptional<z.ZodString>;
1165
+ }, z.core.$strip>, z.ZodObject<{
1166
+ type: z.ZodLiteral<"operation">;
1167
+ operationId: z.ZodString;
1168
+ name: z.ZodString;
1169
+ operationType: z.ZodString;
1170
+ status: z.ZodEnum<{
1171
+ done: "done";
1172
+ running: "running";
1173
+ }>;
1174
+ thread: z.ZodOptional<z.ZodString>;
1175
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
1176
+ type: z.ZodLiteral<"source">;
1177
+ sourceType: z.ZodLiteral<"url">;
1178
+ id: z.ZodString;
1179
+ url: z.ZodString;
1180
+ title: z.ZodOptional<z.ZodString>;
1181
+ thread: z.ZodOptional<z.ZodString>;
1182
+ }, z.core.$strip>, z.ZodObject<{
1183
+ type: z.ZodLiteral<"source">;
1184
+ sourceType: z.ZodLiteral<"document">;
1185
+ id: z.ZodString;
1186
+ mediaType: z.ZodString;
1187
+ title: z.ZodString;
1188
+ filename: z.ZodOptional<z.ZodString>;
1189
+ thread: z.ZodOptional<z.ZodString>;
1190
+ }, z.core.$strip>], "sourceType">, z.ZodObject<{
1191
+ type: z.ZodLiteral<"file">;
1192
+ id: z.ZodString;
1193
+ mediaType: z.ZodString;
1194
+ url: z.ZodString;
1195
+ filename: z.ZodOptional<z.ZodString>;
1196
+ size: z.ZodOptional<z.ZodNumber>;
1197
+ toolCallId: z.ZodOptional<z.ZodString>;
1198
+ thread: z.ZodOptional<z.ZodString>;
1199
+ }, z.core.$strip>, z.ZodObject<{
1200
+ type: z.ZodLiteral<"object">;
1201
+ id: z.ZodString;
1202
+ typeName: z.ZodString;
1203
+ partial: z.ZodOptional<z.ZodUnknown>;
1204
+ object: z.ZodOptional<z.ZodUnknown>;
1205
+ status: z.ZodEnum<{
1206
+ streaming: "streaming";
1207
+ error: "error";
1208
+ done: "done";
1209
+ }>;
1210
+ error: z.ZodOptional<z.ZodString>;
1211
+ thread: z.ZodOptional<z.ZodString>;
1212
+ }, z.core.$strip>]>>;
1213
+ output: z.ZodOptional<z.ZodUnknown>;
1214
+ error: z.ZodOptional<z.ZodString>;
1215
+ status: z.ZodEnum<{
1216
+ error: "error";
1217
+ done: "done";
1218
+ running: "running";
1219
+ }>;
1220
+ }, z.core.$strip>;
902
1221
  declare const uiMessagePartSchema: z.ZodUnion<readonly [z.ZodObject<{
903
1222
  type: z.ZodLiteral<"text">;
904
1223
  text: z.ZodString;
@@ -977,6 +1296,97 @@ declare const uiMessagePartSchema: z.ZodUnion<readonly [z.ZodObject<{
977
1296
  }>;
978
1297
  error: z.ZodOptional<z.ZodString>;
979
1298
  thread: z.ZodOptional<z.ZodString>;
1299
+ }, z.core.$strip>, z.ZodObject<{
1300
+ type: z.ZodLiteral<"worker">;
1301
+ workerId: z.ZodString;
1302
+ workerSlug: z.ZodString;
1303
+ description: z.ZodOptional<z.ZodString>;
1304
+ parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1305
+ type: z.ZodLiteral<"text">;
1306
+ text: z.ZodString;
1307
+ status: z.ZodEnum<{
1308
+ streaming: "streaming";
1309
+ done: "done";
1310
+ }>;
1311
+ thread: z.ZodOptional<z.ZodString>;
1312
+ }, z.core.$strip>, z.ZodObject<{
1313
+ type: z.ZodLiteral<"reasoning">;
1314
+ text: z.ZodString;
1315
+ status: z.ZodEnum<{
1316
+ streaming: "streaming";
1317
+ done: "done";
1318
+ }>;
1319
+ thread: z.ZodOptional<z.ZodString>;
1320
+ }, z.core.$strip>, z.ZodObject<{
1321
+ type: z.ZodLiteral<"tool-call">;
1322
+ toolCallId: z.ZodString;
1323
+ toolName: z.ZodString;
1324
+ displayName: z.ZodOptional<z.ZodString>;
1325
+ args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1326
+ result: z.ZodOptional<z.ZodUnknown>;
1327
+ error: z.ZodOptional<z.ZodString>;
1328
+ status: z.ZodEnum<{
1329
+ pending: "pending";
1330
+ error: "error";
1331
+ done: "done";
1332
+ running: "running";
1333
+ }>;
1334
+ thread: z.ZodOptional<z.ZodString>;
1335
+ }, z.core.$strip>, z.ZodObject<{
1336
+ type: z.ZodLiteral<"operation">;
1337
+ operationId: z.ZodString;
1338
+ name: z.ZodString;
1339
+ operationType: z.ZodString;
1340
+ status: z.ZodEnum<{
1341
+ done: "done";
1342
+ running: "running";
1343
+ }>;
1344
+ thread: z.ZodOptional<z.ZodString>;
1345
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
1346
+ type: z.ZodLiteral<"source">;
1347
+ sourceType: z.ZodLiteral<"url">;
1348
+ id: z.ZodString;
1349
+ url: z.ZodString;
1350
+ title: z.ZodOptional<z.ZodString>;
1351
+ thread: z.ZodOptional<z.ZodString>;
1352
+ }, z.core.$strip>, z.ZodObject<{
1353
+ type: z.ZodLiteral<"source">;
1354
+ sourceType: z.ZodLiteral<"document">;
1355
+ id: z.ZodString;
1356
+ mediaType: z.ZodString;
1357
+ title: z.ZodString;
1358
+ filename: z.ZodOptional<z.ZodString>;
1359
+ thread: z.ZodOptional<z.ZodString>;
1360
+ }, z.core.$strip>], "sourceType">, z.ZodObject<{
1361
+ type: z.ZodLiteral<"file">;
1362
+ id: z.ZodString;
1363
+ mediaType: z.ZodString;
1364
+ url: z.ZodString;
1365
+ filename: z.ZodOptional<z.ZodString>;
1366
+ size: z.ZodOptional<z.ZodNumber>;
1367
+ toolCallId: z.ZodOptional<z.ZodString>;
1368
+ thread: z.ZodOptional<z.ZodString>;
1369
+ }, z.core.$strip>, z.ZodObject<{
1370
+ type: z.ZodLiteral<"object">;
1371
+ id: z.ZodString;
1372
+ typeName: z.ZodString;
1373
+ partial: z.ZodOptional<z.ZodUnknown>;
1374
+ object: z.ZodOptional<z.ZodUnknown>;
1375
+ status: z.ZodEnum<{
1376
+ streaming: "streaming";
1377
+ error: "error";
1378
+ done: "done";
1379
+ }>;
1380
+ error: z.ZodOptional<z.ZodString>;
1381
+ thread: z.ZodOptional<z.ZodString>;
1382
+ }, z.core.$strip>]>>;
1383
+ output: z.ZodOptional<z.ZodUnknown>;
1384
+ error: z.ZodOptional<z.ZodString>;
1385
+ status: z.ZodEnum<{
1386
+ error: "error";
1387
+ done: "done";
1388
+ running: "running";
1389
+ }>;
980
1390
  }, z.core.$strip>]>;
981
1391
  declare const uiMessageSchema: z.ZodObject<{
982
1392
  id: z.ZodString;
@@ -1062,6 +1472,97 @@ declare const uiMessageSchema: z.ZodObject<{
1062
1472
  }>;
1063
1473
  error: z.ZodOptional<z.ZodString>;
1064
1474
  thread: z.ZodOptional<z.ZodString>;
1475
+ }, z.core.$strip>, z.ZodObject<{
1476
+ type: z.ZodLiteral<"worker">;
1477
+ workerId: z.ZodString;
1478
+ workerSlug: z.ZodString;
1479
+ description: z.ZodOptional<z.ZodString>;
1480
+ parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1481
+ type: z.ZodLiteral<"text">;
1482
+ text: z.ZodString;
1483
+ status: z.ZodEnum<{
1484
+ streaming: "streaming";
1485
+ done: "done";
1486
+ }>;
1487
+ thread: z.ZodOptional<z.ZodString>;
1488
+ }, z.core.$strip>, z.ZodObject<{
1489
+ type: z.ZodLiteral<"reasoning">;
1490
+ text: z.ZodString;
1491
+ status: z.ZodEnum<{
1492
+ streaming: "streaming";
1493
+ done: "done";
1494
+ }>;
1495
+ thread: z.ZodOptional<z.ZodString>;
1496
+ }, z.core.$strip>, z.ZodObject<{
1497
+ type: z.ZodLiteral<"tool-call">;
1498
+ toolCallId: z.ZodString;
1499
+ toolName: z.ZodString;
1500
+ displayName: z.ZodOptional<z.ZodString>;
1501
+ args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1502
+ result: z.ZodOptional<z.ZodUnknown>;
1503
+ error: z.ZodOptional<z.ZodString>;
1504
+ status: z.ZodEnum<{
1505
+ pending: "pending";
1506
+ error: "error";
1507
+ done: "done";
1508
+ running: "running";
1509
+ }>;
1510
+ thread: z.ZodOptional<z.ZodString>;
1511
+ }, z.core.$strip>, z.ZodObject<{
1512
+ type: z.ZodLiteral<"operation">;
1513
+ operationId: z.ZodString;
1514
+ name: z.ZodString;
1515
+ operationType: z.ZodString;
1516
+ status: z.ZodEnum<{
1517
+ done: "done";
1518
+ running: "running";
1519
+ }>;
1520
+ thread: z.ZodOptional<z.ZodString>;
1521
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
1522
+ type: z.ZodLiteral<"source">;
1523
+ sourceType: z.ZodLiteral<"url">;
1524
+ id: z.ZodString;
1525
+ url: z.ZodString;
1526
+ title: z.ZodOptional<z.ZodString>;
1527
+ thread: z.ZodOptional<z.ZodString>;
1528
+ }, z.core.$strip>, z.ZodObject<{
1529
+ type: z.ZodLiteral<"source">;
1530
+ sourceType: z.ZodLiteral<"document">;
1531
+ id: z.ZodString;
1532
+ mediaType: z.ZodString;
1533
+ title: z.ZodString;
1534
+ filename: z.ZodOptional<z.ZodString>;
1535
+ thread: z.ZodOptional<z.ZodString>;
1536
+ }, z.core.$strip>], "sourceType">, z.ZodObject<{
1537
+ type: z.ZodLiteral<"file">;
1538
+ id: z.ZodString;
1539
+ mediaType: z.ZodString;
1540
+ url: z.ZodString;
1541
+ filename: z.ZodOptional<z.ZodString>;
1542
+ size: z.ZodOptional<z.ZodNumber>;
1543
+ toolCallId: z.ZodOptional<z.ZodString>;
1544
+ thread: z.ZodOptional<z.ZodString>;
1545
+ }, z.core.$strip>, z.ZodObject<{
1546
+ type: z.ZodLiteral<"object">;
1547
+ id: z.ZodString;
1548
+ typeName: z.ZodString;
1549
+ partial: z.ZodOptional<z.ZodUnknown>;
1550
+ object: z.ZodOptional<z.ZodUnknown>;
1551
+ status: z.ZodEnum<{
1552
+ streaming: "streaming";
1553
+ error: "error";
1554
+ done: "done";
1555
+ }>;
1556
+ error: z.ZodOptional<z.ZodString>;
1557
+ thread: z.ZodOptional<z.ZodString>;
1558
+ }, z.core.$strip>]>>;
1559
+ output: z.ZodOptional<z.ZodUnknown>;
1560
+ error: z.ZodOptional<z.ZodString>;
1561
+ status: z.ZodEnum<{
1562
+ error: "error";
1563
+ done: "done";
1564
+ running: "running";
1565
+ }>;
1065
1566
  }, z.core.$strip>]>>;
1066
1567
  status: z.ZodEnum<{
1067
1568
  streaming: "streaming";
@@ -1075,6 +1576,7 @@ declare function safeParseStreamEvent(data: unknown): z.ZodSafeParseResult<{
1075
1576
  id: string;
1076
1577
  url: string;
1077
1578
  title?: string | undefined;
1579
+ workerId?: string | undefined;
1078
1580
  } | {
1079
1581
  type: "source";
1080
1582
  sourceType: "document";
@@ -1082,6 +1584,7 @@ declare function safeParseStreamEvent(data: unknown): z.ZodSafeParseResult<{
1082
1584
  mediaType: string;
1083
1585
  title: string;
1084
1586
  filename?: string | undefined;
1587
+ workerId?: string | undefined;
1085
1588
  } | {
1086
1589
  type: "start";
1087
1590
  messageId?: string | undefined;
@@ -1113,48 +1616,60 @@ declare function safeParseStreamEvent(data: unknown): z.ZodSafeParseResult<{
1113
1616
  type: "text-start";
1114
1617
  id: string;
1115
1618
  responseType?: string | undefined;
1619
+ workerId?: string | undefined;
1116
1620
  } | {
1117
1621
  type: "text-delta";
1118
1622
  id: string;
1119
1623
  delta: string;
1624
+ workerId?: string | undefined;
1120
1625
  } | {
1121
1626
  type: "text-end";
1122
1627
  id: string;
1628
+ workerId?: string | undefined;
1123
1629
  } | {
1124
1630
  type: "reasoning-start";
1125
1631
  id: string;
1632
+ workerId?: string | undefined;
1126
1633
  } | {
1127
1634
  type: "reasoning-delta";
1128
1635
  id: string;
1129
1636
  delta: string;
1637
+ workerId?: string | undefined;
1130
1638
  } | {
1131
1639
  type: "reasoning-end";
1132
1640
  id: string;
1641
+ workerId?: string | undefined;
1133
1642
  } | {
1134
1643
  type: "tool-input-start";
1135
1644
  toolCallId: string;
1136
1645
  toolName: string;
1137
1646
  title?: string | undefined;
1647
+ workerId?: string | undefined;
1138
1648
  } | {
1139
1649
  type: "tool-input-delta";
1140
1650
  toolCallId: string;
1141
1651
  inputTextDelta: string;
1652
+ workerId?: string | undefined;
1142
1653
  } | {
1143
1654
  type: "tool-input-end";
1144
1655
  toolCallId: string;
1656
+ workerId?: string | undefined;
1145
1657
  } | {
1146
1658
  type: "tool-input-available";
1147
1659
  toolCallId: string;
1148
1660
  toolName: string;
1149
1661
  input: unknown;
1662
+ workerId?: string | undefined;
1150
1663
  } | {
1151
1664
  type: "tool-output-available";
1152
1665
  toolCallId: string;
1153
1666
  output: unknown;
1667
+ workerId?: string | undefined;
1154
1668
  } | {
1155
1669
  type: "tool-output-error";
1156
1670
  toolCallId: string;
1157
1671
  error: string;
1672
+ workerId?: string | undefined;
1158
1673
  } | {
1159
1674
  type: "block-start";
1160
1675
  blockId: string;
@@ -1164,10 +1679,12 @@ declare function safeParseStreamEvent(data: unknown): z.ZodSafeParseResult<{
1164
1679
  description?: string | undefined;
1165
1680
  outputToChat?: boolean | undefined;
1166
1681
  thread?: string | undefined;
1682
+ workerId?: string | undefined;
1167
1683
  } | {
1168
1684
  type: "block-end";
1169
1685
  blockId: string;
1170
1686
  summary?: string | undefined;
1687
+ workerId?: string | undefined;
1171
1688
  } | {
1172
1689
  type: "resource-update";
1173
1690
  name: string;
@@ -1181,7 +1698,10 @@ declare function safeParseStreamEvent(data: unknown): z.ZodSafeParseResult<{
1181
1698
  source?: "llm" | "block" | undefined;
1182
1699
  outputVariable?: string | undefined;
1183
1700
  blockIndex?: number | undefined;
1701
+ thread?: string | undefined;
1702
+ workerId?: string | undefined;
1184
1703
  }[];
1704
+ workerId?: string | undefined;
1185
1705
  } | {
1186
1706
  type: "client-tool-request";
1187
1707
  executionId: string;
@@ -1192,6 +1712,8 @@ declare function safeParseStreamEvent(data: unknown): z.ZodSafeParseResult<{
1192
1712
  source?: "llm" | "block" | undefined;
1193
1713
  outputVariable?: string | undefined;
1194
1714
  blockIndex?: number | undefined;
1715
+ thread?: string | undefined;
1716
+ workerId?: string | undefined;
1195
1717
  }[];
1196
1718
  serverToolResults?: {
1197
1719
  toolCallId: string;
@@ -1200,6 +1722,8 @@ declare function safeParseStreamEvent(data: unknown): z.ZodSafeParseResult<{
1200
1722
  error?: string | undefined;
1201
1723
  outputVariable?: string | undefined;
1202
1724
  blockIndex?: number | undefined;
1725
+ thread?: string | undefined;
1726
+ workerId?: string | undefined;
1203
1727
  }[] | undefined;
1204
1728
  } | {
1205
1729
  type: "file-available";
@@ -1209,6 +1733,17 @@ declare function safeParseStreamEvent(data: unknown): z.ZodSafeParseResult<{
1209
1733
  filename?: string | undefined;
1210
1734
  size?: number | undefined;
1211
1735
  toolCallId?: string | undefined;
1736
+ workerId?: string | undefined;
1737
+ } | {
1738
+ type: "worker-start";
1739
+ workerId: string;
1740
+ workerSlug: string;
1741
+ description?: string | undefined;
1742
+ } | {
1743
+ type: "worker-result";
1744
+ workerId: string;
1745
+ output?: unknown;
1746
+ error?: string | undefined;
1212
1747
  }>;
1213
1748
  declare function safeParseUIMessage(data: unknown): z.ZodSafeParseResult<{
1214
1749
  id: string;
@@ -1273,6 +1808,75 @@ declare function safeParseUIMessage(data: unknown): z.ZodSafeParseResult<{
1273
1808
  object?: unknown;
1274
1809
  error?: string | undefined;
1275
1810
  thread?: string | undefined;
1811
+ } | {
1812
+ type: "worker";
1813
+ workerId: string;
1814
+ workerSlug: string;
1815
+ parts: ({
1816
+ type: "source";
1817
+ sourceType: "url";
1818
+ id: string;
1819
+ url: string;
1820
+ title?: string | undefined;
1821
+ thread?: string | undefined;
1822
+ } | {
1823
+ type: "source";
1824
+ sourceType: "document";
1825
+ id: string;
1826
+ mediaType: string;
1827
+ title: string;
1828
+ filename?: string | undefined;
1829
+ thread?: string | undefined;
1830
+ } | {
1831
+ type: "text";
1832
+ text: string;
1833
+ status: "streaming" | "done";
1834
+ thread?: string | undefined;
1835
+ } | {
1836
+ type: "reasoning";
1837
+ text: string;
1838
+ status: "streaming" | "done";
1839
+ thread?: string | undefined;
1840
+ } | {
1841
+ type: "tool-call";
1842
+ toolCallId: string;
1843
+ toolName: string;
1844
+ args: Record<string, unknown>;
1845
+ status: "pending" | "error" | "done" | "running";
1846
+ displayName?: string | undefined;
1847
+ result?: unknown;
1848
+ error?: string | undefined;
1849
+ thread?: string | undefined;
1850
+ } | {
1851
+ type: "operation";
1852
+ operationId: string;
1853
+ name: string;
1854
+ operationType: string;
1855
+ status: "done" | "running";
1856
+ thread?: string | undefined;
1857
+ } | {
1858
+ type: "file";
1859
+ id: string;
1860
+ mediaType: string;
1861
+ url: string;
1862
+ filename?: string | undefined;
1863
+ size?: number | undefined;
1864
+ toolCallId?: string | undefined;
1865
+ thread?: string | undefined;
1866
+ } | {
1867
+ type: "object";
1868
+ id: string;
1869
+ typeName: string;
1870
+ status: "streaming" | "error" | "done";
1871
+ partial?: unknown;
1872
+ object?: unknown;
1873
+ error?: string | undefined;
1874
+ thread?: string | undefined;
1875
+ })[];
1876
+ status: "error" | "done" | "running";
1877
+ description?: string | undefined;
1878
+ output?: unknown;
1879
+ error?: string | undefined;
1276
1880
  })[];
1277
1881
  status: "streaming" | "done";
1278
1882
  createdAt: Date;
@@ -1340,6 +1944,75 @@ declare function safeParseUIMessages(data: unknown): z.ZodSafeParseResult<{
1340
1944
  object?: unknown;
1341
1945
  error?: string | undefined;
1342
1946
  thread?: string | undefined;
1947
+ } | {
1948
+ type: "worker";
1949
+ workerId: string;
1950
+ workerSlug: string;
1951
+ parts: ({
1952
+ type: "source";
1953
+ sourceType: "url";
1954
+ id: string;
1955
+ url: string;
1956
+ title?: string | undefined;
1957
+ thread?: string | undefined;
1958
+ } | {
1959
+ type: "source";
1960
+ sourceType: "document";
1961
+ id: string;
1962
+ mediaType: string;
1963
+ title: string;
1964
+ filename?: string | undefined;
1965
+ thread?: string | undefined;
1966
+ } | {
1967
+ type: "text";
1968
+ text: string;
1969
+ status: "streaming" | "done";
1970
+ thread?: string | undefined;
1971
+ } | {
1972
+ type: "reasoning";
1973
+ text: string;
1974
+ status: "streaming" | "done";
1975
+ thread?: string | undefined;
1976
+ } | {
1977
+ type: "tool-call";
1978
+ toolCallId: string;
1979
+ toolName: string;
1980
+ args: Record<string, unknown>;
1981
+ status: "pending" | "error" | "done" | "running";
1982
+ displayName?: string | undefined;
1983
+ result?: unknown;
1984
+ error?: string | undefined;
1985
+ thread?: string | undefined;
1986
+ } | {
1987
+ type: "operation";
1988
+ operationId: string;
1989
+ name: string;
1990
+ operationType: string;
1991
+ status: "done" | "running";
1992
+ thread?: string | undefined;
1993
+ } | {
1994
+ type: "file";
1995
+ id: string;
1996
+ mediaType: string;
1997
+ url: string;
1998
+ filename?: string | undefined;
1999
+ size?: number | undefined;
2000
+ toolCallId?: string | undefined;
2001
+ thread?: string | undefined;
2002
+ } | {
2003
+ type: "object";
2004
+ id: string;
2005
+ typeName: string;
2006
+ status: "streaming" | "error" | "done";
2007
+ partial?: unknown;
2008
+ object?: unknown;
2009
+ error?: string | undefined;
2010
+ thread?: string | undefined;
2011
+ })[];
2012
+ status: "error" | "done" | "running";
2013
+ description?: string | undefined;
2014
+ output?: unknown;
2015
+ error?: string | undefined;
1343
2016
  })[];
1344
2017
  status: "streaming" | "done";
1345
2018
  createdAt: Date;
@@ -1398,4 +2071,4 @@ declare function isOctavusSkillTool(toolName: string): toolName is OctavusSkillT
1398
2071
  */
1399
2072
  declare function getSkillSlugFromToolCall(toolName: string, args: Record<string, unknown> | undefined): string | undefined;
1400
2073
 
1401
- export { AppError, type BlockEndEvent, type BlockStartEvent, type ChatMessage, type ClientToolRequestEvent, ConflictError, type CreateErrorEventOptions, type DisplayMode, type ErrorEvent, type ErrorSource, type ErrorType, type FileAvailableEvent, type FileInfo, type FileReference, type FinishEvent, type FinishReason, ForbiddenError, type GeneratedFile, MAIN_THREAD, type MessagePart, type MessagePartType, type MessageRole, NotFoundError, OCTAVUS_SKILL_TOOLS, type ObjectInfo, OctavusError, type OctavusErrorOptions, type OctavusSkillToolName, type PendingToolCall, type ProviderErrorInfo, type ReasoningDeltaEvent, type ReasoningEndEvent, type ReasoningStartEvent, type ResourceUpdateEvent, type ResourceUpdateHandler, type SourceDocumentEvent, type SourceDocumentInfo, type SourceEvent, type SourceInfo, type SourceUrlEvent, type SourceUrlInfo, type StartEvent, type StreamEvent, type TextDeltaEvent, type TextEndEvent, type TextStartEvent, type ToolCallInfo, type ToolCallStatus, type ToolErrorInfo, type ToolHandler, type ToolHandlers, type ToolInputAvailableEvent, type ToolInputDeltaEvent, type ToolInputEndEvent, type ToolInputStartEvent, type ToolOutputAvailableEvent, type ToolOutputErrorEvent, type ToolRequestEvent, type ToolResult, type UIFilePart, type UIMessage, type UIMessagePart, type UIMessageStatus, type UIObjectPart, type UIObjectStatus, type UIOperationPart, type UIOperationStatus, type UIPartStatus, type UIReasoningPart, type UISourceDocumentPart, type UISourcePart, type UISourceUrlPart, type UITextPart, type UIToolCallPart, type UIToolCallStatus, ValidationError, chatMessageSchema, createApiErrorEvent, createErrorEvent, createInternalErrorEvent, errorToStreamEvent, fileReferenceSchema, generateId, getSkillSlugFromToolCall, isAbortError, isAuthenticationError, isFileReference, isFileReferenceArray, isMainThread, isOctavusSkillTool, isOtherThread, isProviderError, isRateLimitError, isRetryableError, isToolError, isValidationError, resolveThread, safeParseStreamEvent, safeParseUIMessage, safeParseUIMessages, threadForPart, toolResultSchema, uiMessagePartSchema, uiMessageSchema };
2074
+ export { AppError, type BlockEndEvent, type BlockStartEvent, type ChatMessage, type ClientToolRequestEvent, ConflictError, type CreateErrorEventOptions, type DisplayMode, type ErrorEvent, type ErrorSource, type ErrorType, type FileAvailableEvent, type FileInfo, type FileReference, type FinishEvent, type FinishReason, ForbiddenError, type GeneratedFile, MAIN_THREAD, type MessagePart, type MessagePartType, type MessageRole, NotFoundError, OCTAVUS_SKILL_TOOLS, type ObjectInfo, OctavusError, type OctavusErrorOptions, type OctavusSkillToolName, type OperationInfo, type PendingToolCall, type ProviderErrorInfo, type ReasoningDeltaEvent, type ReasoningEndEvent, type ReasoningStartEvent, type ResourceUpdateEvent, type ResourceUpdateHandler, type SourceDocumentEvent, type SourceDocumentInfo, type SourceEvent, type SourceInfo, type SourceUrlEvent, type SourceUrlInfo, type StartEvent, type StreamEvent, type TextDeltaEvent, type TextEndEvent, type TextStartEvent, type ToolCallInfo, type ToolCallStatus, type ToolErrorInfo, type ToolHandler, type ToolHandlers, type ToolInputAvailableEvent, type ToolInputDeltaEvent, type ToolInputEndEvent, type ToolInputStartEvent, type ToolOutputAvailableEvent, type ToolOutputErrorEvent, type ToolRequestEvent, type ToolResult, type ToolResultEntry, type UIFilePart, type UIMessage, type UIMessagePart, type UIMessageStatus, type UIObjectPart, type UIObjectStatus, type UIOperationPart, type UIOperationStatus, type UIPartStatus, type UIReasoningPart, type UISourceDocumentPart, type UISourcePart, type UISourceUrlPart, type UITextPart, type UIToolCallPart, type UIToolCallStatus, type UIWorkerPart, type UIWorkerStatus, ValidationError, type WorkerPartInfo, type WorkerResultEvent, type WorkerStartEvent, chatMessageSchema, createApiErrorEvent, createErrorEvent, createInternalErrorEvent, errorToStreamEvent, fileReferenceSchema, generateId, getSkillSlugFromToolCall, isAbortError, isAuthenticationError, isFileReference, isFileReferenceArray, isMainThread, isOctavusSkillTool, isOtherThread, isProviderError, isRateLimitError, isRetryableError, isToolError, isValidationError, resolveThread, safeParseStreamEvent, safeParseUIMessage, safeParseUIMessages, threadForPart, toolResultSchema, uiMessagePartSchema, uiMessageSchema, uiWorkerPartSchema, uiWorkerStatusSchema };