@dxos/assistant 0.8.4-main.bc674ce → 0.8.4-main.bcb3aa67d6

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.
Files changed (121) hide show
  1. package/README.md +1 -0
  2. package/dist/lib/neutral/chunk-KVYJFFLF.mjs +1805 -0
  3. package/dist/lib/neutral/chunk-KVYJFFLF.mjs.map +7 -0
  4. package/dist/lib/{browser → neutral}/extraction/index.mjs +26 -32
  5. package/dist/lib/neutral/extraction/index.mjs.map +7 -0
  6. package/dist/lib/{browser → neutral}/index.mjs +72 -371
  7. package/dist/lib/neutral/index.mjs.map +7 -0
  8. package/dist/lib/neutral/meta.json +1 -0
  9. package/dist/lib/neutral/testing/index.mjs +112 -0
  10. package/dist/lib/neutral/testing/index.mjs.map +7 -0
  11. package/dist/types/src/conversation/context.d.ts +24 -5
  12. package/dist/types/src/conversation/context.d.ts.map +1 -1
  13. package/dist/types/src/conversation/conversation.d.ts +29 -4
  14. package/dist/types/src/conversation/conversation.d.ts.map +1 -1
  15. package/dist/types/src/diff.d.ts +3 -1
  16. package/dist/types/src/diff.d.ts.map +1 -1
  17. package/dist/types/src/extraction/extraction-ner-function/index.d.ts +0 -1
  18. package/dist/types/src/extraction/extraction-ner-function/index.d.ts.map +1 -1
  19. package/dist/types/src/extraction/extraction.d.ts +729 -17
  20. package/dist/types/src/extraction/extraction.d.ts.map +1 -1
  21. package/dist/types/src/extraction/index.d.ts +0 -1
  22. package/dist/types/src/extraction/index.d.ts.map +1 -1
  23. package/dist/types/src/functions/services.d.ts +27 -8
  24. package/dist/types/src/functions/services.d.ts.map +1 -1
  25. package/dist/types/src/index.d.ts +2 -0
  26. package/dist/types/src/index.d.ts.map +1 -1
  27. package/dist/types/src/service/AgentService.d.ts +62 -0
  28. package/dist/types/src/service/AgentService.d.ts.map +1 -0
  29. package/dist/types/src/service/AgentService.test.d.ts +2 -0
  30. package/dist/types/src/service/AgentService.test.d.ts.map +1 -0
  31. package/dist/types/src/service/agent-process.d.ts +17 -0
  32. package/dist/types/src/service/agent-process.d.ts.map +1 -0
  33. package/dist/types/src/service/index.d.ts +3 -0
  34. package/dist/types/src/service/index.d.ts.map +1 -0
  35. package/dist/types/src/session/index.d.ts +1 -1
  36. package/dist/types/src/session/index.d.ts.map +1 -1
  37. package/dist/types/src/session/observer.d.ts.map +1 -1
  38. package/dist/types/src/session/session.d.ts +64 -8
  39. package/dist/types/src/session/session.d.ts.map +1 -1
  40. package/dist/types/src/session/toolkit.d.ts +6 -2
  41. package/dist/types/src/session/toolkit.d.ts.map +1 -1
  42. package/dist/types/src/templates/system.d.ts +0 -1
  43. package/dist/types/src/templates/system.d.ts.map +1 -1
  44. package/dist/types/src/testing/layer.d.ts +23 -9
  45. package/dist/types/src/testing/layer.d.ts.map +1 -1
  46. package/dist/types/src/tracing.d.ts +264 -0
  47. package/dist/types/src/tracing.d.ts.map +1 -0
  48. package/dist/types/src/types/artifact.d.ts +5 -5
  49. package/dist/types/src/types/artifact.d.ts.map +1 -1
  50. package/dist/types/tsconfig.tsbuildinfo +1 -1
  51. package/package.json +33 -33
  52. package/src/conversation/context.test.ts +1 -1
  53. package/src/conversation/context.ts +84 -18
  54. package/src/conversation/conversation.ts +173 -32
  55. package/src/diff.test.ts +36 -5
  56. package/src/diff.ts +13 -4
  57. package/src/execution-graph.test.ts +2 -2
  58. package/src/execution-graph.ts +2 -2
  59. package/src/extraction/extraction-ner-function/index.ts +0 -1
  60. package/src/extraction/extraction.ts +38 -10
  61. package/src/extraction/index.ts +0 -1
  62. package/src/functions/services.ts +199 -50
  63. package/src/functions.conversations.json +1 -1
  64. package/src/functions.test.ts +28 -20
  65. package/src/index.ts +2 -0
  66. package/src/service/AgentService.conversations.json +1 -0
  67. package/src/service/AgentService.test.ts +169 -0
  68. package/src/service/AgentService.ts +171 -0
  69. package/src/service/agent-process.ts +360 -0
  70. package/src/service/index.ts +6 -0
  71. package/src/session/format.test.ts +23 -14
  72. package/src/session/index.ts +1 -2
  73. package/src/session/observer.ts +3 -2
  74. package/src/session/session.conversations.json +1 -1
  75. package/src/session/session.test.ts +52 -4
  76. package/src/session/session.ts +231 -117
  77. package/src/session/toolkit.ts +12 -7
  78. package/src/templates/instructions/format.tpl +0 -4
  79. package/src/templates/instructions/system.tpl +11 -2
  80. package/src/templates/system.ts +6 -5
  81. package/src/testing/layer.ts +209 -24
  82. package/src/tracing.ts +112 -0
  83. package/src/types/artifact.ts +17 -10
  84. package/dist/lib/browser/chunk-7CDDG6LL.mjs +0 -578
  85. package/dist/lib/browser/chunk-7CDDG6LL.mjs.map +0 -7
  86. package/dist/lib/browser/extraction/index.mjs.map +0 -7
  87. package/dist/lib/browser/index.mjs.map +0 -7
  88. package/dist/lib/browser/meta.json +0 -1
  89. package/dist/lib/browser/testing/index.mjs +0 -32
  90. package/dist/lib/browser/testing/index.mjs.map +0 -7
  91. package/dist/lib/node-esm/chunk-CC7ER6Q3.mjs +0 -579
  92. package/dist/lib/node-esm/chunk-CC7ER6Q3.mjs.map +0 -7
  93. package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +0 -11
  94. package/dist/lib/node-esm/chunk-HSLMI22Q.mjs.map +0 -7
  95. package/dist/lib/node-esm/extraction/index.mjs +0 -226
  96. package/dist/lib/node-esm/extraction/index.mjs.map +0 -7
  97. package/dist/lib/node-esm/index.mjs +0 -851
  98. package/dist/lib/node-esm/index.mjs.map +0 -7
  99. package/dist/lib/node-esm/meta.json +0 -1
  100. package/dist/lib/node-esm/testing/index.mjs +0 -33
  101. package/dist/lib/node-esm/testing/index.mjs.map +0 -7
  102. package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.d.ts +0 -4
  103. package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.d.ts.map +0 -1
  104. package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.test.d.ts +0 -2
  105. package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.test.d.ts.map +0 -1
  106. package/dist/types/src/extraction/extraction-llm-function/index.d.ts +0 -2
  107. package/dist/types/src/extraction/extraction-llm-function/index.d.ts.map +0 -1
  108. package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.d.ts +0 -347
  109. package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.d.ts.map +0 -1
  110. package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.test.d.ts +0 -2
  111. package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.test.d.ts.map +0 -1
  112. package/dist/types/src/session/GenericToolkit.d.ts +0 -85
  113. package/dist/types/src/session/GenericToolkit.d.ts.map +0 -1
  114. package/src/extraction/extraction-llm-function/extraction-llm-function.test.ts +0 -84
  115. package/src/extraction/extraction-llm-function/extraction-llm-function.ts +0 -62
  116. package/src/extraction/extraction-llm-function/index.ts +0 -5
  117. package/src/extraction/extraction-ner-function/extraction-ner-function.test.ts +0 -116
  118. package/src/extraction/extraction-ner-function/extraction-ner-function.ts +0 -56
  119. package/src/session/GenericToolkit.ts +0 -131
  120. /package/dist/lib/{browser → neutral}/chunk-J5LGTIGS.mjs +0 -0
  121. /package/dist/lib/{browser → neutral}/chunk-J5LGTIGS.mjs.map +0 -0
@@ -1,9 +1,8 @@
1
1
  import * as Schema from 'effect/Schema';
2
- import { Type } from '@dxos/echo';
3
- import { type FunctionDefinition } from '@dxos/functions';
4
- import { type FunctionExecutor } from '@dxos/functions-runtime';
2
+ import { Obj } from '@dxos/echo';
3
+ import { Operation } from '@dxos/operation';
5
4
  export declare const ExtractionInput: Schema.Struct<{
6
- message: Type.Obj<{
5
+ message: import("@dxos/echo/Type").Obj<{
7
6
  readonly id: string;
8
7
  readonly parentMessage?: string | undefined;
9
8
  readonly created: string;
@@ -98,7 +97,7 @@ export declare const ExtractionInput: Schema.Struct<{
98
97
  } | {
99
98
  readonly pending?: boolean | undefined;
100
99
  readonly mimeType?: string | undefined;
101
- readonly _tag: "summary";
100
+ readonly _tag: "stats";
102
101
  readonly message?: string | undefined;
103
102
  readonly model?: string | undefined;
104
103
  readonly usage?: {
@@ -130,7 +129,7 @@ export declare const ExtractionInput: Schema.Struct<{
130
129
  } | {
131
130
  readonly pending?: boolean | undefined;
132
131
  readonly _tag: "reference";
133
- readonly reference: import("@dxos/echo/internal").Ref<any>;
132
+ readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
134
133
  } | {
135
134
  readonly pending?: boolean | undefined;
136
135
  readonly text: string;
@@ -157,6 +156,10 @@ export declare const ExtractionInput: Schema.Struct<{
157
156
  readonly pending?: boolean | undefined;
158
157
  readonly text: string;
159
158
  readonly _tag: "proposal";
159
+ } | {
160
+ readonly pending?: boolean | undefined;
161
+ readonly _tag: "summary";
162
+ readonly content: string;
160
163
  } | {
161
164
  readonly pending?: boolean | undefined;
162
165
  readonly _tag: "toolkit";
@@ -170,11 +173,7 @@ export declare const ExtractionInput: Schema.Struct<{
170
173
  readonly [x: string]: any;
171
174
  } | undefined;
172
175
  }, Schema.Struct.Fields>;
173
- objects: Schema.optional<Schema.Array$<Schema.Schema<any, {
174
- id: string;
175
- } & import("@dxos/echo/internal").AnyProperties, never> & {
176
- readonly "~@dxos/echo/SchemaKind": import("@dxos/echo/internal").EntityKind.Object;
177
- } & import("@dxos/echo/internal").TypeMeta>>;
176
+ objects: Schema.optional<Schema.Array$<import("@dxos/echo/Type").Obj<Obj.Unknown, Schema.Struct.Fields>>>;
178
177
  options: Schema.optional<Schema.Struct<{
179
178
  timeout: Schema.optional<typeof Schema.Number>;
180
179
  fallbackToRaw: Schema.optional<typeof Schema.Boolean>;
@@ -183,7 +182,7 @@ export declare const ExtractionInput: Schema.Struct<{
183
182
  export interface ExtractionInput extends Schema.Schema.Type<typeof ExtractionInput> {
184
183
  }
185
184
  export declare const ExtractionOutput: Schema.Struct<{
186
- message: Type.Obj<{
185
+ message: import("@dxos/echo/Type").Obj<{
187
186
  readonly id: string;
188
187
  readonly parentMessage?: string | undefined;
189
188
  readonly created: string;
@@ -278,7 +277,7 @@ export declare const ExtractionOutput: Schema.Struct<{
278
277
  } | {
279
278
  readonly pending?: boolean | undefined;
280
279
  readonly mimeType?: string | undefined;
281
- readonly _tag: "summary";
280
+ readonly _tag: "stats";
282
281
  readonly message?: string | undefined;
283
282
  readonly model?: string | undefined;
284
283
  readonly usage?: {
@@ -310,7 +309,7 @@ export declare const ExtractionOutput: Schema.Struct<{
310
309
  } | {
311
310
  readonly pending?: boolean | undefined;
312
311
  readonly _tag: "reference";
313
- readonly reference: import("@dxos/echo/internal").Ref<any>;
312
+ readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
314
313
  } | {
315
314
  readonly pending?: boolean | undefined;
316
315
  readonly text: string;
@@ -337,6 +336,10 @@ export declare const ExtractionOutput: Schema.Struct<{
337
336
  readonly pending?: boolean | undefined;
338
337
  readonly text: string;
339
338
  readonly _tag: "proposal";
339
+ } | {
340
+ readonly pending?: boolean | undefined;
341
+ readonly _tag: "summary";
342
+ readonly content: string;
340
343
  } | {
341
344
  readonly pending?: boolean | undefined;
342
345
  readonly _tag: "toolkit";
@@ -356,8 +359,7 @@ export interface ExtractionOutput extends Schema.Schema.Type<typeof ExtractionOu
356
359
  }
357
360
  export type ProcessTranscriptMessageProps = {
358
361
  input: ExtractionInput;
359
- function: FunctionDefinition<ExtractionInput, ExtractionOutput>;
360
- executor: FunctionExecutor;
362
+ function: Operation.Definition<ExtractionInput, ExtractionOutput>;
361
363
  options?: {
362
364
  /**
363
365
  * Timeout for the entity extraction.
@@ -371,7 +373,717 @@ export type ProcessTranscriptMessageProps = {
371
373
  fallbackToRaw?: boolean;
372
374
  };
373
375
  };
374
- export type ExtractionFunction = FunctionDefinition<ExtractionInput, ExtractionOutput>;
376
+ export type ExtractionFunction = Operation.Definition<ExtractionInput, ExtractionOutput>;
377
+ /**
378
+ * Placeholder for Anthropic-based entity extraction.
379
+ * Implementation is currently disabled pending restoration of extraction logic.
380
+ */
381
+ export declare const extractionAnthropicFunction: Operation.Definition<{
382
+ readonly options?: {
383
+ readonly timeout?: number | undefined;
384
+ readonly fallbackToRaw?: boolean | undefined;
385
+ } | undefined;
386
+ readonly message: import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
387
+ readonly id: string;
388
+ readonly parentMessage?: string | undefined;
389
+ readonly created: string;
390
+ readonly sender: {
391
+ readonly name?: string | undefined;
392
+ readonly role?: "user" | "assistant" | "tool" | undefined;
393
+ readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
394
+ readonly image?: string | undefined;
395
+ readonly fullName?: string | undefined;
396
+ readonly preferredName?: string | undefined;
397
+ readonly nickname?: string | undefined;
398
+ readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
399
+ readonly description?: string | undefined;
400
+ readonly name?: string | undefined;
401
+ readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
402
+ readonly image?: string | undefined;
403
+ readonly website?: string | undefined;
404
+ } & {
405
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
406
+ }> | undefined;
407
+ readonly jobTitle?: string | undefined;
408
+ readonly department?: string | undefined;
409
+ readonly notes?: string | undefined;
410
+ readonly emails?: readonly {
411
+ readonly value: string;
412
+ readonly label?: string | undefined;
413
+ }[] | undefined;
414
+ readonly identities?: readonly {
415
+ readonly value: string;
416
+ readonly label?: string | undefined;
417
+ }[] | undefined;
418
+ readonly phoneNumbers?: readonly {
419
+ readonly value: string;
420
+ readonly label?: string | undefined;
421
+ }[] | undefined;
422
+ readonly fields?: readonly {
423
+ readonly value: string;
424
+ readonly label: string;
425
+ readonly category?: string | undefined;
426
+ }[] | undefined;
427
+ readonly addresses?: readonly {
428
+ readonly value: {
429
+ readonly street?: string | undefined;
430
+ readonly extended?: string | undefined;
431
+ readonly locality?: string | undefined;
432
+ readonly region?: string | undefined;
433
+ readonly postalCode?: string | undefined;
434
+ readonly postOfficeBoxNumber?: string | undefined;
435
+ readonly country?: string | undefined;
436
+ };
437
+ readonly label?: string | undefined;
438
+ }[] | undefined;
439
+ readonly urls?: readonly {
440
+ readonly value: string;
441
+ readonly label?: string | undefined;
442
+ }[] | undefined;
443
+ readonly birthday?: string | undefined;
444
+ } & {
445
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
446
+ }> | undefined;
447
+ readonly identityDid?: string | undefined;
448
+ readonly identityKey?: string | undefined;
449
+ readonly email?: string | undefined;
450
+ };
451
+ readonly blocks: readonly ({
452
+ readonly pending?: boolean | undefined;
453
+ readonly text: string;
454
+ readonly mimeType?: string | undefined;
455
+ readonly disposition?: string | undefined;
456
+ readonly _tag: "text";
457
+ } | {
458
+ readonly pending?: boolean | undefined;
459
+ readonly _tag: "reasoning";
460
+ readonly reasoningText?: string | undefined;
461
+ readonly redactedText?: string | undefined;
462
+ readonly signature?: string | undefined;
463
+ } | {
464
+ readonly name: string;
465
+ readonly pending?: boolean | undefined;
466
+ readonly _tag: "toolCall";
467
+ readonly toolCallId: string;
468
+ readonly input: string;
469
+ readonly providerExecuted: boolean;
470
+ } | {
471
+ readonly name: string;
472
+ readonly pending?: boolean | undefined;
473
+ readonly _tag: "toolResult";
474
+ readonly toolCallId: string;
475
+ readonly providerExecuted: boolean;
476
+ readonly result?: string | undefined;
477
+ readonly error?: string | undefined;
478
+ } | {
479
+ readonly pending?: boolean | undefined;
480
+ readonly mimeType?: string | undefined;
481
+ readonly _tag: "stats";
482
+ readonly message?: string | undefined;
483
+ readonly model?: string | undefined;
484
+ readonly usage?: {
485
+ readonly inputTokens?: number | undefined;
486
+ readonly outputTokens?: number | undefined;
487
+ readonly totalTokens?: number | undefined;
488
+ } | undefined;
489
+ readonly toolCalls?: number | undefined;
490
+ readonly errors?: number | undefined;
491
+ readonly duration?: number | undefined;
492
+ } | {
493
+ readonly source?: {
494
+ readonly type: "base64";
495
+ readonly mediaType: string;
496
+ readonly data: string;
497
+ } | {
498
+ readonly type: "http";
499
+ readonly url: string;
500
+ } | undefined;
501
+ readonly id?: string | undefined;
502
+ readonly pending?: boolean | undefined;
503
+ readonly _tag: "image";
504
+ } | {
505
+ readonly name?: string | undefined;
506
+ readonly pending?: boolean | undefined;
507
+ readonly _tag: "file";
508
+ readonly mediaType?: string | undefined;
509
+ readonly url: string;
510
+ } | {
511
+ readonly pending?: boolean | undefined;
512
+ readonly _tag: "reference";
513
+ readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
514
+ } | {
515
+ readonly pending?: boolean | undefined;
516
+ readonly text: string;
517
+ readonly _tag: "transcript";
518
+ readonly started: string;
519
+ } | {
520
+ readonly pending?: boolean | undefined;
521
+ readonly _tag: "status";
522
+ readonly statusText: string;
523
+ } | {
524
+ readonly pending?: boolean | undefined;
525
+ readonly text: string;
526
+ readonly _tag: "suggestion";
527
+ } | {
528
+ readonly pending?: boolean | undefined;
529
+ readonly _tag: "select";
530
+ readonly options: string[];
531
+ } | {
532
+ readonly version: unknown;
533
+ readonly pending?: boolean | undefined;
534
+ readonly _tag: "anchor";
535
+ readonly objectId: string;
536
+ } | {
537
+ readonly pending?: boolean | undefined;
538
+ readonly text: string;
539
+ readonly _tag: "proposal";
540
+ } | {
541
+ readonly pending?: boolean | undefined;
542
+ readonly _tag: "summary";
543
+ readonly content: string;
544
+ } | {
545
+ readonly pending?: boolean | undefined;
546
+ readonly _tag: "toolkit";
547
+ } | {
548
+ readonly pending?: boolean | undefined;
549
+ readonly disposition?: string | undefined;
550
+ readonly _tag: "json";
551
+ readonly data: string;
552
+ })[];
553
+ readonly properties?: {
554
+ readonly [x: string]: any;
555
+ } | undefined;
556
+ };
557
+ readonly objects?: readonly (import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown)[] | undefined;
558
+ }, {
559
+ readonly message: import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
560
+ readonly id: string;
561
+ readonly parentMessage?: string | undefined;
562
+ readonly created: string;
563
+ readonly sender: {
564
+ readonly name?: string | undefined;
565
+ readonly role?: "user" | "assistant" | "tool" | undefined;
566
+ readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
567
+ readonly image?: string | undefined;
568
+ readonly fullName?: string | undefined;
569
+ readonly preferredName?: string | undefined;
570
+ readonly nickname?: string | undefined;
571
+ readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
572
+ readonly description?: string | undefined;
573
+ readonly name?: string | undefined;
574
+ readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
575
+ readonly image?: string | undefined;
576
+ readonly website?: string | undefined;
577
+ } & {
578
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
579
+ }> | undefined;
580
+ readonly jobTitle?: string | undefined;
581
+ readonly department?: string | undefined;
582
+ readonly notes?: string | undefined;
583
+ readonly emails?: readonly {
584
+ readonly value: string;
585
+ readonly label?: string | undefined;
586
+ }[] | undefined;
587
+ readonly identities?: readonly {
588
+ readonly value: string;
589
+ readonly label?: string | undefined;
590
+ }[] | undefined;
591
+ readonly phoneNumbers?: readonly {
592
+ readonly value: string;
593
+ readonly label?: string | undefined;
594
+ }[] | undefined;
595
+ readonly fields?: readonly {
596
+ readonly value: string;
597
+ readonly label: string;
598
+ readonly category?: string | undefined;
599
+ }[] | undefined;
600
+ readonly addresses?: readonly {
601
+ readonly value: {
602
+ readonly street?: string | undefined;
603
+ readonly extended?: string | undefined;
604
+ readonly locality?: string | undefined;
605
+ readonly region?: string | undefined;
606
+ readonly postalCode?: string | undefined;
607
+ readonly postOfficeBoxNumber?: string | undefined;
608
+ readonly country?: string | undefined;
609
+ };
610
+ readonly label?: string | undefined;
611
+ }[] | undefined;
612
+ readonly urls?: readonly {
613
+ readonly value: string;
614
+ readonly label?: string | undefined;
615
+ }[] | undefined;
616
+ readonly birthday?: string | undefined;
617
+ } & {
618
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
619
+ }> | undefined;
620
+ readonly identityDid?: string | undefined;
621
+ readonly identityKey?: string | undefined;
622
+ readonly email?: string | undefined;
623
+ };
624
+ readonly blocks: readonly ({
625
+ readonly pending?: boolean | undefined;
626
+ readonly text: string;
627
+ readonly mimeType?: string | undefined;
628
+ readonly disposition?: string | undefined;
629
+ readonly _tag: "text";
630
+ } | {
631
+ readonly pending?: boolean | undefined;
632
+ readonly _tag: "reasoning";
633
+ readonly reasoningText?: string | undefined;
634
+ readonly redactedText?: string | undefined;
635
+ readonly signature?: string | undefined;
636
+ } | {
637
+ readonly name: string;
638
+ readonly pending?: boolean | undefined;
639
+ readonly _tag: "toolCall";
640
+ readonly toolCallId: string;
641
+ readonly input: string;
642
+ readonly providerExecuted: boolean;
643
+ } | {
644
+ readonly name: string;
645
+ readonly pending?: boolean | undefined;
646
+ readonly _tag: "toolResult";
647
+ readonly toolCallId: string;
648
+ readonly providerExecuted: boolean;
649
+ readonly result?: string | undefined;
650
+ readonly error?: string | undefined;
651
+ } | {
652
+ readonly pending?: boolean | undefined;
653
+ readonly mimeType?: string | undefined;
654
+ readonly _tag: "stats";
655
+ readonly message?: string | undefined;
656
+ readonly model?: string | undefined;
657
+ readonly usage?: {
658
+ readonly inputTokens?: number | undefined;
659
+ readonly outputTokens?: number | undefined;
660
+ readonly totalTokens?: number | undefined;
661
+ } | undefined;
662
+ readonly toolCalls?: number | undefined;
663
+ readonly errors?: number | undefined;
664
+ readonly duration?: number | undefined;
665
+ } | {
666
+ readonly source?: {
667
+ readonly type: "base64";
668
+ readonly mediaType: string;
669
+ readonly data: string;
670
+ } | {
671
+ readonly type: "http";
672
+ readonly url: string;
673
+ } | undefined;
674
+ readonly id?: string | undefined;
675
+ readonly pending?: boolean | undefined;
676
+ readonly _tag: "image";
677
+ } | {
678
+ readonly name?: string | undefined;
679
+ readonly pending?: boolean | undefined;
680
+ readonly _tag: "file";
681
+ readonly mediaType?: string | undefined;
682
+ readonly url: string;
683
+ } | {
684
+ readonly pending?: boolean | undefined;
685
+ readonly _tag: "reference";
686
+ readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
687
+ } | {
688
+ readonly pending?: boolean | undefined;
689
+ readonly text: string;
690
+ readonly _tag: "transcript";
691
+ readonly started: string;
692
+ } | {
693
+ readonly pending?: boolean | undefined;
694
+ readonly _tag: "status";
695
+ readonly statusText: string;
696
+ } | {
697
+ readonly pending?: boolean | undefined;
698
+ readonly text: string;
699
+ readonly _tag: "suggestion";
700
+ } | {
701
+ readonly pending?: boolean | undefined;
702
+ readonly _tag: "select";
703
+ readonly options: string[];
704
+ } | {
705
+ readonly version: unknown;
706
+ readonly pending?: boolean | undefined;
707
+ readonly _tag: "anchor";
708
+ readonly objectId: string;
709
+ } | {
710
+ readonly pending?: boolean | undefined;
711
+ readonly text: string;
712
+ readonly _tag: "proposal";
713
+ } | {
714
+ readonly pending?: boolean | undefined;
715
+ readonly _tag: "summary";
716
+ readonly content: string;
717
+ } | {
718
+ readonly pending?: boolean | undefined;
719
+ readonly _tag: "toolkit";
720
+ } | {
721
+ readonly pending?: boolean | undefined;
722
+ readonly disposition?: string | undefined;
723
+ readonly _tag: "json";
724
+ readonly data: string;
725
+ })[];
726
+ readonly properties?: {
727
+ readonly [x: string]: any;
728
+ } | undefined;
729
+ };
730
+ readonly timeElapsed: number;
731
+ }, never>;
732
+ /**
733
+ * Placeholder for NER-based entity extraction.
734
+ * Implementation is currently disabled pending restoration of extraction logic.
735
+ */
736
+ export declare const extractionNerFunction: Operation.Definition<{
737
+ readonly options?: {
738
+ readonly timeout?: number | undefined;
739
+ readonly fallbackToRaw?: boolean | undefined;
740
+ } | undefined;
741
+ readonly message: import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
742
+ readonly id: string;
743
+ readonly parentMessage?: string | undefined;
744
+ readonly created: string;
745
+ readonly sender: {
746
+ readonly name?: string | undefined;
747
+ readonly role?: "user" | "assistant" | "tool" | undefined;
748
+ readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
749
+ readonly image?: string | undefined;
750
+ readonly fullName?: string | undefined;
751
+ readonly preferredName?: string | undefined;
752
+ readonly nickname?: string | undefined;
753
+ readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
754
+ readonly description?: string | undefined;
755
+ readonly name?: string | undefined;
756
+ readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
757
+ readonly image?: string | undefined;
758
+ readonly website?: string | undefined;
759
+ } & {
760
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
761
+ }> | undefined;
762
+ readonly jobTitle?: string | undefined;
763
+ readonly department?: string | undefined;
764
+ readonly notes?: string | undefined;
765
+ readonly emails?: readonly {
766
+ readonly value: string;
767
+ readonly label?: string | undefined;
768
+ }[] | undefined;
769
+ readonly identities?: readonly {
770
+ readonly value: string;
771
+ readonly label?: string | undefined;
772
+ }[] | undefined;
773
+ readonly phoneNumbers?: readonly {
774
+ readonly value: string;
775
+ readonly label?: string | undefined;
776
+ }[] | undefined;
777
+ readonly fields?: readonly {
778
+ readonly value: string;
779
+ readonly label: string;
780
+ readonly category?: string | undefined;
781
+ }[] | undefined;
782
+ readonly addresses?: readonly {
783
+ readonly value: {
784
+ readonly street?: string | undefined;
785
+ readonly extended?: string | undefined;
786
+ readonly locality?: string | undefined;
787
+ readonly region?: string | undefined;
788
+ readonly postalCode?: string | undefined;
789
+ readonly postOfficeBoxNumber?: string | undefined;
790
+ readonly country?: string | undefined;
791
+ };
792
+ readonly label?: string | undefined;
793
+ }[] | undefined;
794
+ readonly urls?: readonly {
795
+ readonly value: string;
796
+ readonly label?: string | undefined;
797
+ }[] | undefined;
798
+ readonly birthday?: string | undefined;
799
+ } & {
800
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
801
+ }> | undefined;
802
+ readonly identityDid?: string | undefined;
803
+ readonly identityKey?: string | undefined;
804
+ readonly email?: string | undefined;
805
+ };
806
+ readonly blocks: readonly ({
807
+ readonly pending?: boolean | undefined;
808
+ readonly text: string;
809
+ readonly mimeType?: string | undefined;
810
+ readonly disposition?: string | undefined;
811
+ readonly _tag: "text";
812
+ } | {
813
+ readonly pending?: boolean | undefined;
814
+ readonly _tag: "reasoning";
815
+ readonly reasoningText?: string | undefined;
816
+ readonly redactedText?: string | undefined;
817
+ readonly signature?: string | undefined;
818
+ } | {
819
+ readonly name: string;
820
+ readonly pending?: boolean | undefined;
821
+ readonly _tag: "toolCall";
822
+ readonly toolCallId: string;
823
+ readonly input: string;
824
+ readonly providerExecuted: boolean;
825
+ } | {
826
+ readonly name: string;
827
+ readonly pending?: boolean | undefined;
828
+ readonly _tag: "toolResult";
829
+ readonly toolCallId: string;
830
+ readonly providerExecuted: boolean;
831
+ readonly result?: string | undefined;
832
+ readonly error?: string | undefined;
833
+ } | {
834
+ readonly pending?: boolean | undefined;
835
+ readonly mimeType?: string | undefined;
836
+ readonly _tag: "stats";
837
+ readonly message?: string | undefined;
838
+ readonly model?: string | undefined;
839
+ readonly usage?: {
840
+ readonly inputTokens?: number | undefined;
841
+ readonly outputTokens?: number | undefined;
842
+ readonly totalTokens?: number | undefined;
843
+ } | undefined;
844
+ readonly toolCalls?: number | undefined;
845
+ readonly errors?: number | undefined;
846
+ readonly duration?: number | undefined;
847
+ } | {
848
+ readonly source?: {
849
+ readonly type: "base64";
850
+ readonly mediaType: string;
851
+ readonly data: string;
852
+ } | {
853
+ readonly type: "http";
854
+ readonly url: string;
855
+ } | undefined;
856
+ readonly id?: string | undefined;
857
+ readonly pending?: boolean | undefined;
858
+ readonly _tag: "image";
859
+ } | {
860
+ readonly name?: string | undefined;
861
+ readonly pending?: boolean | undefined;
862
+ readonly _tag: "file";
863
+ readonly mediaType?: string | undefined;
864
+ readonly url: string;
865
+ } | {
866
+ readonly pending?: boolean | undefined;
867
+ readonly _tag: "reference";
868
+ readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
869
+ } | {
870
+ readonly pending?: boolean | undefined;
871
+ readonly text: string;
872
+ readonly _tag: "transcript";
873
+ readonly started: string;
874
+ } | {
875
+ readonly pending?: boolean | undefined;
876
+ readonly _tag: "status";
877
+ readonly statusText: string;
878
+ } | {
879
+ readonly pending?: boolean | undefined;
880
+ readonly text: string;
881
+ readonly _tag: "suggestion";
882
+ } | {
883
+ readonly pending?: boolean | undefined;
884
+ readonly _tag: "select";
885
+ readonly options: string[];
886
+ } | {
887
+ readonly version: unknown;
888
+ readonly pending?: boolean | undefined;
889
+ readonly _tag: "anchor";
890
+ readonly objectId: string;
891
+ } | {
892
+ readonly pending?: boolean | undefined;
893
+ readonly text: string;
894
+ readonly _tag: "proposal";
895
+ } | {
896
+ readonly pending?: boolean | undefined;
897
+ readonly _tag: "summary";
898
+ readonly content: string;
899
+ } | {
900
+ readonly pending?: boolean | undefined;
901
+ readonly _tag: "toolkit";
902
+ } | {
903
+ readonly pending?: boolean | undefined;
904
+ readonly disposition?: string | undefined;
905
+ readonly _tag: "json";
906
+ readonly data: string;
907
+ })[];
908
+ readonly properties?: {
909
+ readonly [x: string]: any;
910
+ } | undefined;
911
+ };
912
+ readonly objects?: readonly (import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown)[] | undefined;
913
+ }, {
914
+ readonly message: import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
915
+ readonly id: string;
916
+ readonly parentMessage?: string | undefined;
917
+ readonly created: string;
918
+ readonly sender: {
919
+ readonly name?: string | undefined;
920
+ readonly role?: "user" | "assistant" | "tool" | undefined;
921
+ readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
922
+ readonly image?: string | undefined;
923
+ readonly fullName?: string | undefined;
924
+ readonly preferredName?: string | undefined;
925
+ readonly nickname?: string | undefined;
926
+ readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
927
+ readonly description?: string | undefined;
928
+ readonly name?: string | undefined;
929
+ readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
930
+ readonly image?: string | undefined;
931
+ readonly website?: string | undefined;
932
+ } & {
933
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
934
+ }> | undefined;
935
+ readonly jobTitle?: string | undefined;
936
+ readonly department?: string | undefined;
937
+ readonly notes?: string | undefined;
938
+ readonly emails?: readonly {
939
+ readonly value: string;
940
+ readonly label?: string | undefined;
941
+ }[] | undefined;
942
+ readonly identities?: readonly {
943
+ readonly value: string;
944
+ readonly label?: string | undefined;
945
+ }[] | undefined;
946
+ readonly phoneNumbers?: readonly {
947
+ readonly value: string;
948
+ readonly label?: string | undefined;
949
+ }[] | undefined;
950
+ readonly fields?: readonly {
951
+ readonly value: string;
952
+ readonly label: string;
953
+ readonly category?: string | undefined;
954
+ }[] | undefined;
955
+ readonly addresses?: readonly {
956
+ readonly value: {
957
+ readonly street?: string | undefined;
958
+ readonly extended?: string | undefined;
959
+ readonly locality?: string | undefined;
960
+ readonly region?: string | undefined;
961
+ readonly postalCode?: string | undefined;
962
+ readonly postOfficeBoxNumber?: string | undefined;
963
+ readonly country?: string | undefined;
964
+ };
965
+ readonly label?: string | undefined;
966
+ }[] | undefined;
967
+ readonly urls?: readonly {
968
+ readonly value: string;
969
+ readonly label?: string | undefined;
970
+ }[] | undefined;
971
+ readonly birthday?: string | undefined;
972
+ } & {
973
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
974
+ }> | undefined;
975
+ readonly identityDid?: string | undefined;
976
+ readonly identityKey?: string | undefined;
977
+ readonly email?: string | undefined;
978
+ };
979
+ readonly blocks: readonly ({
980
+ readonly pending?: boolean | undefined;
981
+ readonly text: string;
982
+ readonly mimeType?: string | undefined;
983
+ readonly disposition?: string | undefined;
984
+ readonly _tag: "text";
985
+ } | {
986
+ readonly pending?: boolean | undefined;
987
+ readonly _tag: "reasoning";
988
+ readonly reasoningText?: string | undefined;
989
+ readonly redactedText?: string | undefined;
990
+ readonly signature?: string | undefined;
991
+ } | {
992
+ readonly name: string;
993
+ readonly pending?: boolean | undefined;
994
+ readonly _tag: "toolCall";
995
+ readonly toolCallId: string;
996
+ readonly input: string;
997
+ readonly providerExecuted: boolean;
998
+ } | {
999
+ readonly name: string;
1000
+ readonly pending?: boolean | undefined;
1001
+ readonly _tag: "toolResult";
1002
+ readonly toolCallId: string;
1003
+ readonly providerExecuted: boolean;
1004
+ readonly result?: string | undefined;
1005
+ readonly error?: string | undefined;
1006
+ } | {
1007
+ readonly pending?: boolean | undefined;
1008
+ readonly mimeType?: string | undefined;
1009
+ readonly _tag: "stats";
1010
+ readonly message?: string | undefined;
1011
+ readonly model?: string | undefined;
1012
+ readonly usage?: {
1013
+ readonly inputTokens?: number | undefined;
1014
+ readonly outputTokens?: number | undefined;
1015
+ readonly totalTokens?: number | undefined;
1016
+ } | undefined;
1017
+ readonly toolCalls?: number | undefined;
1018
+ readonly errors?: number | undefined;
1019
+ readonly duration?: number | undefined;
1020
+ } | {
1021
+ readonly source?: {
1022
+ readonly type: "base64";
1023
+ readonly mediaType: string;
1024
+ readonly data: string;
1025
+ } | {
1026
+ readonly type: "http";
1027
+ readonly url: string;
1028
+ } | undefined;
1029
+ readonly id?: string | undefined;
1030
+ readonly pending?: boolean | undefined;
1031
+ readonly _tag: "image";
1032
+ } | {
1033
+ readonly name?: string | undefined;
1034
+ readonly pending?: boolean | undefined;
1035
+ readonly _tag: "file";
1036
+ readonly mediaType?: string | undefined;
1037
+ readonly url: string;
1038
+ } | {
1039
+ readonly pending?: boolean | undefined;
1040
+ readonly _tag: "reference";
1041
+ readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
1042
+ } | {
1043
+ readonly pending?: boolean | undefined;
1044
+ readonly text: string;
1045
+ readonly _tag: "transcript";
1046
+ readonly started: string;
1047
+ } | {
1048
+ readonly pending?: boolean | undefined;
1049
+ readonly _tag: "status";
1050
+ readonly statusText: string;
1051
+ } | {
1052
+ readonly pending?: boolean | undefined;
1053
+ readonly text: string;
1054
+ readonly _tag: "suggestion";
1055
+ } | {
1056
+ readonly pending?: boolean | undefined;
1057
+ readonly _tag: "select";
1058
+ readonly options: string[];
1059
+ } | {
1060
+ readonly version: unknown;
1061
+ readonly pending?: boolean | undefined;
1062
+ readonly _tag: "anchor";
1063
+ readonly objectId: string;
1064
+ } | {
1065
+ readonly pending?: boolean | undefined;
1066
+ readonly text: string;
1067
+ readonly _tag: "proposal";
1068
+ } | {
1069
+ readonly pending?: boolean | undefined;
1070
+ readonly _tag: "summary";
1071
+ readonly content: string;
1072
+ } | {
1073
+ readonly pending?: boolean | undefined;
1074
+ readonly _tag: "toolkit";
1075
+ } | {
1076
+ readonly pending?: boolean | undefined;
1077
+ readonly disposition?: string | undefined;
1078
+ readonly _tag: "json";
1079
+ readonly data: string;
1080
+ })[];
1081
+ readonly properties?: {
1082
+ readonly [x: string]: any;
1083
+ } | undefined;
1084
+ };
1085
+ readonly timeElapsed: number;
1086
+ }, never>;
375
1087
  /**
376
1088
  * Extract entities from the transcript message and add them to the message.
377
1089
  */