@dxos/assistant 0.8.4-main.b97322e → 0.8.4-main.dedc0f3

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 (149) hide show
  1. package/dist/lib/browser/chunk-5GJYG2ML.mjs +396 -0
  2. package/dist/lib/browser/chunk-5GJYG2ML.mjs.map +7 -0
  3. package/dist/lib/browser/chunk-UB26N5UF.mjs +89 -0
  4. package/dist/lib/browser/chunk-UB26N5UF.mjs.map +7 -0
  5. package/dist/lib/browser/extraction/index.mjs +268 -0
  6. package/dist/lib/browser/extraction/index.mjs.map +7 -0
  7. package/dist/lib/browser/index.mjs +295 -1657
  8. package/dist/lib/browser/index.mjs.map +4 -4
  9. package/dist/lib/browser/meta.json +1 -1
  10. package/dist/lib/browser/named-entity-recognition-QPYHML66.mjs +13 -0
  11. package/dist/lib/browser/named-entity-recognition-QPYHML66.mjs.map +7 -0
  12. package/dist/lib/node-esm/chunk-BCFXTNSK.mjs +91 -0
  13. package/dist/lib/node-esm/chunk-BCFXTNSK.mjs.map +7 -0
  14. package/dist/lib/node-esm/chunk-FLFCEB4P.mjs +398 -0
  15. package/dist/lib/node-esm/chunk-FLFCEB4P.mjs.map +7 -0
  16. package/dist/lib/node-esm/extraction/index.mjs +269 -0
  17. package/dist/lib/node-esm/extraction/index.mjs.map +7 -0
  18. package/dist/lib/node-esm/index.mjs +294 -1657
  19. package/dist/lib/node-esm/index.mjs.map +4 -4
  20. package/dist/lib/node-esm/meta.json +1 -1
  21. package/dist/lib/node-esm/named-entity-recognition-2HDF46YX.mjs +14 -0
  22. package/dist/lib/node-esm/named-entity-recognition-2HDF46YX.mjs.map +7 -0
  23. package/dist/types/src/conversation/context.d.ts +96 -0
  24. package/dist/types/src/conversation/context.d.ts.map +1 -0
  25. package/dist/types/src/conversation/conversation.d.ts +25 -21
  26. package/dist/types/src/conversation/conversation.d.ts.map +1 -1
  27. package/dist/types/src/conversation/index.d.ts +1 -0
  28. package/dist/types/src/conversation/index.d.ts.map +1 -1
  29. package/dist/types/src/diff.d.ts +15 -0
  30. package/dist/types/src/diff.d.ts.map +1 -0
  31. package/dist/types/src/diff.test.d.ts +2 -0
  32. package/dist/types/src/diff.test.d.ts.map +1 -0
  33. package/dist/types/src/errors.d.ts +41 -4
  34. package/dist/types/src/errors.d.ts.map +1 -1
  35. package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.d.ts +1 -1
  36. package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.d.ts.map +1 -1
  37. package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.d.ts +65 -30
  38. package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.d.ts.map +1 -1
  39. package/dist/types/src/extraction/extraction-ner-function/named-entity-recognition.d.ts.map +1 -1
  40. package/dist/types/src/extraction/extraction.d.ts +246 -216
  41. package/dist/types/src/extraction/extraction.d.ts.map +1 -1
  42. package/dist/types/src/functions/services.d.ts +4 -3
  43. package/dist/types/src/functions/services.d.ts.map +1 -1
  44. package/dist/types/src/index.d.ts +2 -3
  45. package/dist/types/src/index.d.ts.map +1 -1
  46. package/dist/types/src/session/artifact-diff.d.ts +27 -0
  47. package/dist/types/src/session/artifact-diff.d.ts.map +1 -0
  48. package/dist/types/src/session/error-handling.d.ts +4 -0
  49. package/dist/types/src/session/error-handling.d.ts.map +1 -0
  50. package/dist/types/src/session/format.d.ts +182 -0
  51. package/dist/types/src/session/format.d.ts.map +1 -0
  52. package/dist/types/src/session/format.test.d.ts +2 -0
  53. package/dist/types/src/session/format.test.d.ts.map +1 -0
  54. package/dist/types/src/session/index.d.ts +3 -0
  55. package/dist/types/src/session/index.d.ts.map +1 -1
  56. package/dist/types/src/session/observer.d.ts +22 -0
  57. package/dist/types/src/session/observer.d.ts.map +1 -0
  58. package/dist/types/src/session/session.d.ts +23 -236
  59. package/dist/types/src/session/session.d.ts.map +1 -1
  60. package/dist/types/src/session/toolkit.d.ts +14 -0
  61. package/dist/types/src/session/toolkit.d.ts.map +1 -0
  62. package/dist/types/src/session/version-pin.d.ts +2 -2
  63. package/dist/types/src/session/version-pin.d.ts.map +1 -1
  64. package/dist/types/src/templates/index.d.ts +1 -1
  65. package/dist/types/src/templates/system.d.ts +18 -0
  66. package/dist/types/src/templates/system.d.ts.map +1 -0
  67. package/dist/types/src/types.d.ts +3 -0
  68. package/dist/types/src/types.d.ts.map +1 -1
  69. package/dist/types/tsconfig.tsbuildinfo +1 -1
  70. package/package.json +45 -28
  71. package/src/conversation/context.ts +154 -0
  72. package/src/conversation/conversation.ts +80 -53
  73. package/src/conversation/index.ts +1 -0
  74. package/src/diff.test.ts +43 -0
  75. package/src/diff.ts +79 -0
  76. package/src/errors.ts +5 -0
  77. package/src/extraction/extraction-llm-function/extraction-llm-function.test.ts +8 -7
  78. package/src/extraction/extraction-llm-function/extraction-llm-function.ts +10 -10
  79. package/src/extraction/extraction-ner-function/extraction-ner-function.test.ts +9 -9
  80. package/src/extraction/extraction-ner-function/extraction-ner-function.ts +12 -7
  81. package/src/extraction/extraction-ner-function/named-entity-recognition.ts +2 -0
  82. package/src/extraction/quotes.test.ts +1 -1
  83. package/src/extraction/quotes.ts +1 -1
  84. package/src/functions/services.ts +57 -77
  85. package/src/index.ts +2 -3
  86. package/src/session/artifact-diff.ts +41 -0
  87. package/src/session/error-handling.ts +36 -0
  88. package/src/session/format.test.ts +60 -0
  89. package/src/session/format.ts +139 -0
  90. package/src/session/index.ts +3 -0
  91. package/src/session/observer.ts +58 -0
  92. package/src/session/session.test.ts +36 -38
  93. package/src/session/session.ts +113 -248
  94. package/src/session/toolkit.ts +42 -0
  95. package/src/session/version-pin.ts +4 -4
  96. package/src/summarization/summarization.test.ts +11 -22
  97. package/src/templates/format.tpl +60 -0
  98. package/src/templates/index.ts +1 -1
  99. package/src/templates/system.tpl +50 -0
  100. package/src/templates/system.ts +41 -0
  101. package/src/types.ts +10 -5
  102. package/src/typings.d.ts +5 -0
  103. package/dist/types/bin/chat.d.ts +0 -2
  104. package/dist/types/bin/chat.d.ts.map +0 -1
  105. package/dist/types/src/context/binder.d.ts +0 -34
  106. package/dist/types/src/context/binder.d.ts.map +0 -1
  107. package/dist/types/src/context/binding.d.ts +0 -56
  108. package/dist/types/src/context/binding.d.ts.map +0 -1
  109. package/dist/types/src/context/index.d.ts +0 -3
  110. package/dist/types/src/context/index.d.ts.map +0 -1
  111. package/dist/types/src/research/exa.d.ts +0 -12
  112. package/dist/types/src/research/exa.d.ts.map +0 -1
  113. package/dist/types/src/research/graph.d.ts +0 -51
  114. package/dist/types/src/research/graph.d.ts.map +0 -1
  115. package/dist/types/src/research/graph.test.d.ts +0 -2
  116. package/dist/types/src/research/graph.test.d.ts.map +0 -1
  117. package/dist/types/src/research/index.d.ts +0 -4
  118. package/dist/types/src/research/index.d.ts.map +0 -1
  119. package/dist/types/src/research/research.d.ts +0 -10
  120. package/dist/types/src/research/research.d.ts.map +0 -1
  121. package/dist/types/src/research/research.test.d.ts +0 -2
  122. package/dist/types/src/research/research.test.d.ts.map +0 -1
  123. package/dist/types/src/templates/prompt.d.ts +0 -30
  124. package/dist/types/src/templates/prompt.d.ts.map +0 -1
  125. package/dist/types/src/testing/exa-search-1748337321991.d.ts +0 -38
  126. package/dist/types/src/testing/exa-search-1748337321991.d.ts.map +0 -1
  127. package/dist/types/src/testing/exa-search-1748337331526.d.ts +0 -37
  128. package/dist/types/src/testing/exa-search-1748337331526.d.ts.map +0 -1
  129. package/dist/types/src/testing/exa-search-1748337344119.d.ts +0 -58
  130. package/dist/types/src/testing/exa-search-1748337344119.d.ts.map +0 -1
  131. package/dist/types/src/testing/index.d.ts +0 -3
  132. package/dist/types/src/testing/index.d.ts.map +0 -1
  133. package/src/context/binder.ts +0 -103
  134. package/src/context/binding.ts +0 -32
  135. package/src/context/index.ts +0 -6
  136. package/src/research/exa.ts +0 -97
  137. package/src/research/graph.test.ts +0 -64
  138. package/src/research/graph.ts +0 -369
  139. package/src/research/index.ts +0 -7
  140. package/src/research/instructions-research.tpl +0 -98
  141. package/src/research/research.test.ts +0 -190
  142. package/src/research/research.ts +0 -87
  143. package/src/templates/assistant.tpl +0 -111
  144. package/src/templates/prompt.ts +0 -45
  145. package/src/testing/exa-search-1748337321991.ts +0 -131
  146. package/src/testing/exa-search-1748337331526.ts +0 -144
  147. package/src/testing/exa-search-1748337344119.ts +0 -133
  148. package/src/testing/index.ts +0 -11
  149. package/src/typedefs.d.ts +0 -8
@@ -4,135 +4,150 @@ import { type FunctionDefinition, type FunctionExecutor } from '@dxos/functions'
4
4
  export declare const ExtractionInput: Schema.Struct<{
5
5
  message: import("@dxos/echo/Type").obj<Schema.Struct<{
6
6
  id: import("@dxos/keys").ObjectIdClass;
7
- created: import("effect/Schema").SchemaClass<string, string, never>;
8
- sender: import("effect/Schema").mutable<import("effect/Schema").Struct<{
9
- contact: import("effect/Schema").optional<import("@dxos/echo/Type").ref<import("@dxos/echo/Type").obj<import("effect/Schema").Struct<{
10
- fullName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
11
- preferredName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
12
- nickname: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
13
- image: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
14
- organization: import("effect/Schema").optional<import("effect/Schema").Schema<import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
7
+ parentMessage: Schema.optional<import("@dxos/keys").ObjectIdClass>;
8
+ created: Schema.SchemaClass<string, string, never>;
9
+ sender: Schema.mutable<Schema.Struct<{
10
+ contact: Schema.optional<import("@dxos/echo/Type").ref<import("@dxos/echo/Type").obj<Schema.Struct<{
11
+ fullName: Schema.optional<Schema.SchemaClass<string, string, never>>;
12
+ preferredName: Schema.optional<Schema.SchemaClass<string, string, never>>;
13
+ nickname: Schema.optional<Schema.SchemaClass<string, string, never>>;
14
+ image: Schema.optional<Schema.SchemaClass<string, string, never>>;
15
+ organization: Schema.optional<Schema.Schema<import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
15
16
  id: string;
16
- name?: string | undefined;
17
17
  description?: string | undefined;
18
+ name?: string | undefined;
18
19
  status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
19
20
  image?: string | undefined;
20
21
  website?: string | undefined;
21
22
  }>, import("@dxos/echo-protocol").EncodedReference, never>>;
22
- jobTitle: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
23
- department: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
24
- notes: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
25
- emails: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
26
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
27
- value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
23
+ jobTitle: Schema.optional<Schema.SchemaClass<string, string, never>>;
24
+ department: Schema.optional<Schema.SchemaClass<string, string, never>>;
25
+ notes: Schema.optional<Schema.SchemaClass<string, string, never>>;
26
+ emails: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
27
+ label: Schema.optional<typeof Schema.String>;
28
+ value: Schema.refine<string, typeof Schema.String>;
28
29
  }>>>>;
29
- identities: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
30
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
31
- value: typeof import("effect/Schema").String;
30
+ identities: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
31
+ label: Schema.optional<typeof Schema.String>;
32
+ value: typeof Schema.String;
32
33
  }>>>>;
33
- phoneNumbers: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
34
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
35
- value: typeof import("effect/Schema").String;
34
+ phoneNumbers: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
35
+ label: Schema.optional<typeof Schema.String>;
36
+ value: typeof Schema.String;
36
37
  }>>>>;
37
- addresses: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
38
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
39
- value: import("effect/Schema").Struct<{
40
- street: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
41
- extended: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
42
- locality: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
43
- region: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
44
- postalCode: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
45
- postOfficeBoxNumber: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
46
- country: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
38
+ addresses: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
39
+ label: Schema.optional<typeof Schema.String>;
40
+ value: Schema.Struct<{
41
+ street: Schema.optional<Schema.SchemaClass<string, string, never>>;
42
+ extended: Schema.optional<Schema.SchemaClass<string, string, never>>;
43
+ locality: Schema.optional<Schema.SchemaClass<string, string, never>>;
44
+ region: Schema.optional<Schema.SchemaClass<string, string, never>>;
45
+ postalCode: Schema.optional<Schema.SchemaClass<string, string, never>>;
46
+ postOfficeBoxNumber: Schema.optional<Schema.SchemaClass<string, string, never>>;
47
+ country: Schema.optional<Schema.SchemaClass<string, string, never>>;
47
48
  }>;
48
49
  }>>>>;
49
- urls: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
50
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
51
- value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
50
+ urls: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
51
+ label: Schema.optional<typeof Schema.String>;
52
+ value: Schema.refine<string, typeof Schema.String>;
52
53
  }>>>>;
53
- birthday: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").SchemaClass<string, string, never>>>;
54
- fields: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
55
- category: import("effect/Schema").optional<typeof import("effect/Schema").String>;
56
- label: typeof import("effect/Schema").String;
57
- value: typeof import("effect/Schema").String;
54
+ birthday: Schema.optional<Schema.SchemaClass<string, string, never>>;
55
+ fields: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
56
+ category: Schema.optional<typeof Schema.String>;
57
+ label: typeof Schema.String;
58
+ value: typeof Schema.String;
58
59
  }>>>>;
59
60
  }>>>>;
60
- identityDid: import("effect/Schema").optional<typeof import("effect/Schema").String>;
61
- identityKey: import("effect/Schema").optional<typeof import("effect/Schema").String>;
62
- email: import("effect/Schema").optional<typeof import("effect/Schema").String>;
63
- name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
64
- role: import("effect/Schema").optional<import("effect/Schema").Literal<["user", "assistant"]>>;
61
+ identityDid: Schema.optional<typeof Schema.String>;
62
+ identityKey: Schema.optional<typeof Schema.String>;
63
+ email: Schema.optional<typeof Schema.String>;
64
+ name: Schema.optional<typeof Schema.String>;
65
+ role: Schema.optional<Schema.Literal<["user", "assistant"]>>;
65
66
  }>>;
66
- blocks: import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Union<[import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"anchor", {
67
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
67
+ blocks: Schema.mutable<Schema.Array$<Schema.Union<[Schema.mutable<Schema.TaggedStruct<"anchor", {
68
+ pending: Schema.optional<typeof Schema.Boolean>;
68
69
  objectId: import("@dxos/keys").ObjectIdClass;
69
- version: typeof import("effect/Schema").Unknown;
70
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"file", {
71
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
72
- url: typeof import("effect/Schema").String;
73
- name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
74
- mediaType: import("effect/Schema").optional<typeof import("effect/Schema").String>;
75
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"image", {
76
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
77
- id: import("effect/Schema").optional<typeof import("effect/Schema").String>;
78
- source: import("effect/Schema").optional<import("effect/Schema").Union<[import("effect/Schema").mutable<import("effect/Schema").Struct<{
79
- type: import("effect/Schema").Literal<["base64"]>;
80
- mediaType: typeof import("effect/Schema").String;
81
- data: typeof import("effect/Schema").String;
82
- }>>, import("effect/Schema").mutable<import("effect/Schema").Struct<{
83
- type: import("effect/Schema").Literal<["http"]>;
84
- url: typeof import("effect/Schema").String;
70
+ version: typeof Schema.Unknown;
71
+ }>>, Schema.mutable<Schema.TaggedStruct<"file", {
72
+ pending: Schema.optional<typeof Schema.Boolean>;
73
+ url: typeof Schema.String;
74
+ name: Schema.optional<typeof Schema.String>;
75
+ mediaType: Schema.optional<typeof Schema.String>;
76
+ }>>, Schema.mutable<Schema.TaggedStruct<"image", {
77
+ pending: Schema.optional<typeof Schema.Boolean>;
78
+ id: Schema.optional<typeof Schema.String>;
79
+ source: Schema.optional<Schema.Union<[Schema.mutable<Schema.Struct<{
80
+ type: Schema.Literal<["base64"]>;
81
+ mediaType: typeof Schema.String;
82
+ data: typeof Schema.String;
83
+ }>>, Schema.mutable<Schema.Struct<{
84
+ type: Schema.Literal<["http"]>;
85
+ url: typeof Schema.String;
85
86
  }>>]>>;
86
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"json", {
87
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
88
- disposition: import("effect/Schema").optional<typeof import("effect/Schema").String>;
89
- data: typeof import("effect/Schema").String;
90
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"proposal", {
91
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
92
- text: typeof import("effect/Schema").String;
93
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"reasoning", {
94
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
95
- reasoningText: import("effect/Schema").optional<typeof import("effect/Schema").String>;
96
- redactedText: import("effect/Schema").optional<typeof import("effect/Schema").String>;
97
- signature: import("effect/Schema").optional<typeof import("effect/Schema").String>;
98
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"reference", {
99
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
100
- reference: import("@dxos/echo/Type").ref<import("effect/Schema").Schema<import("@dxos/echo/Type").Expando, {
87
+ }>>, Schema.mutable<Schema.TaggedStruct<"json", {
88
+ pending: Schema.optional<typeof Schema.Boolean>;
89
+ disposition: Schema.optional<typeof Schema.String>;
90
+ data: typeof Schema.String;
91
+ }>>, Schema.mutable<Schema.TaggedStruct<"proposal", {
92
+ pending: Schema.optional<typeof Schema.Boolean>;
93
+ text: typeof Schema.String;
94
+ }>>, Schema.mutable<Schema.TaggedStruct<"reasoning", {
95
+ pending: Schema.optional<typeof Schema.Boolean>;
96
+ reasoningText: Schema.optional<typeof Schema.String>;
97
+ redactedText: Schema.optional<typeof Schema.String>;
98
+ signature: Schema.optional<typeof Schema.String>;
99
+ }>>, Schema.mutable<Schema.TaggedStruct<"reference", {
100
+ pending: Schema.optional<typeof Schema.Boolean>;
101
+ reference: import("@dxos/echo/Type").ref<Schema.Schema<import("@dxos/echo/Type").Expando, {
101
102
  [x: string]: any;
102
103
  id: string;
103
104
  }, never>>;
104
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"select", {
105
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
106
- options: import("effect/Schema").Array$<typeof import("effect/Schema").String>;
107
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"status", {
108
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
109
- statusText: typeof import("effect/Schema").String;
110
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"suggest", {
111
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
112
- text: typeof import("effect/Schema").String;
113
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"text", {
114
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
115
- mimeType: import("effect/Schema").optional<typeof import("effect/Schema").String>;
116
- text: typeof import("effect/Schema").String;
117
- disposition: import("effect/Schema").optional<typeof import("effect/Schema").String>;
118
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"toolCall", {
119
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
120
- toolCallId: typeof import("effect/Schema").String;
121
- name: typeof import("effect/Schema").String;
122
- input: typeof import("effect/Schema").Unknown;
123
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"toolList", {
124
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
125
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"toolResult", {
126
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
127
- toolCallId: typeof import("effect/Schema").String;
128
- name: typeof import("effect/Schema").String;
129
- result: typeof import("effect/Schema").Unknown;
130
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"transcript", {
131
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
132
- started: typeof import("effect/Schema").String;
133
- text: typeof import("effect/Schema").String;
105
+ }>>, Schema.mutable<Schema.TaggedStruct<"select", {
106
+ pending: Schema.optional<typeof Schema.Boolean>;
107
+ options: Schema.Array$<typeof Schema.String>;
108
+ }>>, Schema.mutable<Schema.TaggedStruct<"status", {
109
+ pending: Schema.optional<typeof Schema.Boolean>;
110
+ statusText: typeof Schema.String;
111
+ }>>, Schema.mutable<Schema.TaggedStruct<"suggestion", {
112
+ pending: Schema.optional<typeof Schema.Boolean>;
113
+ text: typeof Schema.String;
114
+ }>>, Schema.mutable<Schema.TaggedStruct<"summary", {
115
+ pending: Schema.optional<typeof Schema.Boolean>;
116
+ mimeType: Schema.optional<typeof Schema.String>;
117
+ message: Schema.optional<typeof Schema.String>;
118
+ model: Schema.optional<typeof Schema.String>;
119
+ usage: Schema.optional<Schema.Struct<{
120
+ inputTokens: Schema.optional<typeof Schema.Number>;
121
+ outputTokens: Schema.optional<typeof Schema.Number>;
122
+ totalTokens: Schema.optional<typeof Schema.Number>;
123
+ }>>;
124
+ toolCalls: Schema.optional<typeof Schema.Number>;
125
+ errors: Schema.optional<typeof Schema.Number>;
126
+ duration: Schema.optional<typeof Schema.Number>;
127
+ }>>, Schema.mutable<Schema.TaggedStruct<"text", {
128
+ pending: Schema.optional<typeof Schema.Boolean>;
129
+ mimeType: Schema.optional<typeof Schema.String>;
130
+ text: typeof Schema.String;
131
+ disposition: Schema.optional<typeof Schema.String>;
132
+ }>>, Schema.mutable<Schema.TaggedStruct<"toolkit", {
133
+ pending: Schema.optional<typeof Schema.Boolean>;
134
+ }>>, Schema.mutable<Schema.TaggedStruct<"toolCall", {
135
+ pending: Schema.optional<typeof Schema.Boolean>;
136
+ toolCallId: typeof Schema.String;
137
+ name: typeof Schema.String;
138
+ input: typeof Schema.String;
139
+ }>>, Schema.mutable<Schema.TaggedStruct<"toolResult", {
140
+ pending: Schema.optional<typeof Schema.Boolean>;
141
+ toolCallId: typeof Schema.String;
142
+ name: typeof Schema.String;
143
+ result: Schema.optional<typeof Schema.String>;
144
+ error: Schema.optional<typeof Schema.String>;
145
+ }>>, Schema.mutable<Schema.TaggedStruct<"transcript", {
146
+ pending: Schema.optional<typeof Schema.Boolean>;
147
+ started: typeof Schema.String;
148
+ text: typeof Schema.String;
134
149
  }>>]>>>;
135
- properties: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Any>>>;
150
+ properties: Schema.optional<Schema.mutable<Schema.Record$<typeof Schema.String, typeof Schema.Any>>>;
136
151
  }>>;
137
152
  objects: Schema.optional<Schema.Array$<Schema.Schema<Expando, Expando, never>>>;
138
153
  options: Schema.optional<Schema.Struct<{
@@ -145,135 +160,150 @@ export interface ExtractionInput extends Schema.Schema.Type<typeof ExtractionInp
145
160
  export declare const ExtractionOutput: Schema.Struct<{
146
161
  message: import("@dxos/echo/Type").obj<Schema.Struct<{
147
162
  id: import("@dxos/keys").ObjectIdClass;
148
- created: import("effect/Schema").SchemaClass<string, string, never>;
149
- sender: import("effect/Schema").mutable<import("effect/Schema").Struct<{
150
- contact: import("effect/Schema").optional<import("@dxos/echo/Type").ref<import("@dxos/echo/Type").obj<import("effect/Schema").Struct<{
151
- fullName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
152
- preferredName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
153
- nickname: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
154
- image: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
155
- organization: import("effect/Schema").optional<import("effect/Schema").Schema<import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
163
+ parentMessage: Schema.optional<import("@dxos/keys").ObjectIdClass>;
164
+ created: Schema.SchemaClass<string, string, never>;
165
+ sender: Schema.mutable<Schema.Struct<{
166
+ contact: Schema.optional<import("@dxos/echo/Type").ref<import("@dxos/echo/Type").obj<Schema.Struct<{
167
+ fullName: Schema.optional<Schema.SchemaClass<string, string, never>>;
168
+ preferredName: Schema.optional<Schema.SchemaClass<string, string, never>>;
169
+ nickname: Schema.optional<Schema.SchemaClass<string, string, never>>;
170
+ image: Schema.optional<Schema.SchemaClass<string, string, never>>;
171
+ organization: Schema.optional<Schema.Schema<import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
156
172
  id: string;
157
- name?: string | undefined;
158
173
  description?: string | undefined;
174
+ name?: string | undefined;
159
175
  status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
160
176
  image?: string | undefined;
161
177
  website?: string | undefined;
162
178
  }>, import("@dxos/echo-protocol").EncodedReference, never>>;
163
- jobTitle: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
164
- department: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
165
- notes: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
166
- emails: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
167
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
168
- value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
179
+ jobTitle: Schema.optional<Schema.SchemaClass<string, string, never>>;
180
+ department: Schema.optional<Schema.SchemaClass<string, string, never>>;
181
+ notes: Schema.optional<Schema.SchemaClass<string, string, never>>;
182
+ emails: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
183
+ label: Schema.optional<typeof Schema.String>;
184
+ value: Schema.refine<string, typeof Schema.String>;
169
185
  }>>>>;
170
- identities: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
171
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
172
- value: typeof import("effect/Schema").String;
186
+ identities: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
187
+ label: Schema.optional<typeof Schema.String>;
188
+ value: typeof Schema.String;
173
189
  }>>>>;
174
- phoneNumbers: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
175
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
176
- value: typeof import("effect/Schema").String;
190
+ phoneNumbers: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
191
+ label: Schema.optional<typeof Schema.String>;
192
+ value: typeof Schema.String;
177
193
  }>>>>;
178
- addresses: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
179
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
180
- value: import("effect/Schema").Struct<{
181
- street: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
182
- extended: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
183
- locality: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
184
- region: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
185
- postalCode: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
186
- postOfficeBoxNumber: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
187
- country: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
194
+ addresses: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
195
+ label: Schema.optional<typeof Schema.String>;
196
+ value: Schema.Struct<{
197
+ street: Schema.optional<Schema.SchemaClass<string, string, never>>;
198
+ extended: Schema.optional<Schema.SchemaClass<string, string, never>>;
199
+ locality: Schema.optional<Schema.SchemaClass<string, string, never>>;
200
+ region: Schema.optional<Schema.SchemaClass<string, string, never>>;
201
+ postalCode: Schema.optional<Schema.SchemaClass<string, string, never>>;
202
+ postOfficeBoxNumber: Schema.optional<Schema.SchemaClass<string, string, never>>;
203
+ country: Schema.optional<Schema.SchemaClass<string, string, never>>;
188
204
  }>;
189
205
  }>>>>;
190
- urls: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
191
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
192
- value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
206
+ urls: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
207
+ label: Schema.optional<typeof Schema.String>;
208
+ value: Schema.refine<string, typeof Schema.String>;
193
209
  }>>>>;
194
- birthday: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").SchemaClass<string, string, never>>>;
195
- fields: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
196
- category: import("effect/Schema").optional<typeof import("effect/Schema").String>;
197
- label: typeof import("effect/Schema").String;
198
- value: typeof import("effect/Schema").String;
210
+ birthday: Schema.optional<Schema.SchemaClass<string, string, never>>;
211
+ fields: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
212
+ category: Schema.optional<typeof Schema.String>;
213
+ label: typeof Schema.String;
214
+ value: typeof Schema.String;
199
215
  }>>>>;
200
216
  }>>>>;
201
- identityDid: import("effect/Schema").optional<typeof import("effect/Schema").String>;
202
- identityKey: import("effect/Schema").optional<typeof import("effect/Schema").String>;
203
- email: import("effect/Schema").optional<typeof import("effect/Schema").String>;
204
- name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
205
- role: import("effect/Schema").optional<import("effect/Schema").Literal<["user", "assistant"]>>;
217
+ identityDid: Schema.optional<typeof Schema.String>;
218
+ identityKey: Schema.optional<typeof Schema.String>;
219
+ email: Schema.optional<typeof Schema.String>;
220
+ name: Schema.optional<typeof Schema.String>;
221
+ role: Schema.optional<Schema.Literal<["user", "assistant"]>>;
206
222
  }>>;
207
- blocks: import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Union<[import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"anchor", {
208
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
223
+ blocks: Schema.mutable<Schema.Array$<Schema.Union<[Schema.mutable<Schema.TaggedStruct<"anchor", {
224
+ pending: Schema.optional<typeof Schema.Boolean>;
209
225
  objectId: import("@dxos/keys").ObjectIdClass;
210
- version: typeof import("effect/Schema").Unknown;
211
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"file", {
212
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
213
- url: typeof import("effect/Schema").String;
214
- name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
215
- mediaType: import("effect/Schema").optional<typeof import("effect/Schema").String>;
216
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"image", {
217
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
218
- id: import("effect/Schema").optional<typeof import("effect/Schema").String>;
219
- source: import("effect/Schema").optional<import("effect/Schema").Union<[import("effect/Schema").mutable<import("effect/Schema").Struct<{
220
- type: import("effect/Schema").Literal<["base64"]>;
221
- mediaType: typeof import("effect/Schema").String;
222
- data: typeof import("effect/Schema").String;
223
- }>>, import("effect/Schema").mutable<import("effect/Schema").Struct<{
224
- type: import("effect/Schema").Literal<["http"]>;
225
- url: typeof import("effect/Schema").String;
226
+ version: typeof Schema.Unknown;
227
+ }>>, Schema.mutable<Schema.TaggedStruct<"file", {
228
+ pending: Schema.optional<typeof Schema.Boolean>;
229
+ url: typeof Schema.String;
230
+ name: Schema.optional<typeof Schema.String>;
231
+ mediaType: Schema.optional<typeof Schema.String>;
232
+ }>>, Schema.mutable<Schema.TaggedStruct<"image", {
233
+ pending: Schema.optional<typeof Schema.Boolean>;
234
+ id: Schema.optional<typeof Schema.String>;
235
+ source: Schema.optional<Schema.Union<[Schema.mutable<Schema.Struct<{
236
+ type: Schema.Literal<["base64"]>;
237
+ mediaType: typeof Schema.String;
238
+ data: typeof Schema.String;
239
+ }>>, Schema.mutable<Schema.Struct<{
240
+ type: Schema.Literal<["http"]>;
241
+ url: typeof Schema.String;
226
242
  }>>]>>;
227
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"json", {
228
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
229
- disposition: import("effect/Schema").optional<typeof import("effect/Schema").String>;
230
- data: typeof import("effect/Schema").String;
231
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"proposal", {
232
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
233
- text: typeof import("effect/Schema").String;
234
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"reasoning", {
235
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
236
- reasoningText: import("effect/Schema").optional<typeof import("effect/Schema").String>;
237
- redactedText: import("effect/Schema").optional<typeof import("effect/Schema").String>;
238
- signature: import("effect/Schema").optional<typeof import("effect/Schema").String>;
239
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"reference", {
240
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
241
- reference: import("@dxos/echo/Type").ref<import("effect/Schema").Schema<import("@dxos/echo/Type").Expando, {
243
+ }>>, Schema.mutable<Schema.TaggedStruct<"json", {
244
+ pending: Schema.optional<typeof Schema.Boolean>;
245
+ disposition: Schema.optional<typeof Schema.String>;
246
+ data: typeof Schema.String;
247
+ }>>, Schema.mutable<Schema.TaggedStruct<"proposal", {
248
+ pending: Schema.optional<typeof Schema.Boolean>;
249
+ text: typeof Schema.String;
250
+ }>>, Schema.mutable<Schema.TaggedStruct<"reasoning", {
251
+ pending: Schema.optional<typeof Schema.Boolean>;
252
+ reasoningText: Schema.optional<typeof Schema.String>;
253
+ redactedText: Schema.optional<typeof Schema.String>;
254
+ signature: Schema.optional<typeof Schema.String>;
255
+ }>>, Schema.mutable<Schema.TaggedStruct<"reference", {
256
+ pending: Schema.optional<typeof Schema.Boolean>;
257
+ reference: import("@dxos/echo/Type").ref<Schema.Schema<import("@dxos/echo/Type").Expando, {
242
258
  [x: string]: any;
243
259
  id: string;
244
260
  }, never>>;
245
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"select", {
246
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
247
- options: import("effect/Schema").Array$<typeof import("effect/Schema").String>;
248
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"status", {
249
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
250
- statusText: typeof import("effect/Schema").String;
251
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"suggest", {
252
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
253
- text: typeof import("effect/Schema").String;
254
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"text", {
255
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
256
- mimeType: import("effect/Schema").optional<typeof import("effect/Schema").String>;
257
- text: typeof import("effect/Schema").String;
258
- disposition: import("effect/Schema").optional<typeof import("effect/Schema").String>;
259
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"toolCall", {
260
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
261
- toolCallId: typeof import("effect/Schema").String;
262
- name: typeof import("effect/Schema").String;
263
- input: typeof import("effect/Schema").Unknown;
264
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"toolList", {
265
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
266
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"toolResult", {
267
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
268
- toolCallId: typeof import("effect/Schema").String;
269
- name: typeof import("effect/Schema").String;
270
- result: typeof import("effect/Schema").Unknown;
271
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"transcript", {
272
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
273
- started: typeof import("effect/Schema").String;
274
- text: typeof import("effect/Schema").String;
261
+ }>>, Schema.mutable<Schema.TaggedStruct<"select", {
262
+ pending: Schema.optional<typeof Schema.Boolean>;
263
+ options: Schema.Array$<typeof Schema.String>;
264
+ }>>, Schema.mutable<Schema.TaggedStruct<"status", {
265
+ pending: Schema.optional<typeof Schema.Boolean>;
266
+ statusText: typeof Schema.String;
267
+ }>>, Schema.mutable<Schema.TaggedStruct<"suggestion", {
268
+ pending: Schema.optional<typeof Schema.Boolean>;
269
+ text: typeof Schema.String;
270
+ }>>, Schema.mutable<Schema.TaggedStruct<"summary", {
271
+ pending: Schema.optional<typeof Schema.Boolean>;
272
+ mimeType: Schema.optional<typeof Schema.String>;
273
+ message: Schema.optional<typeof Schema.String>;
274
+ model: Schema.optional<typeof Schema.String>;
275
+ usage: Schema.optional<Schema.Struct<{
276
+ inputTokens: Schema.optional<typeof Schema.Number>;
277
+ outputTokens: Schema.optional<typeof Schema.Number>;
278
+ totalTokens: Schema.optional<typeof Schema.Number>;
279
+ }>>;
280
+ toolCalls: Schema.optional<typeof Schema.Number>;
281
+ errors: Schema.optional<typeof Schema.Number>;
282
+ duration: Schema.optional<typeof Schema.Number>;
283
+ }>>, Schema.mutable<Schema.TaggedStruct<"text", {
284
+ pending: Schema.optional<typeof Schema.Boolean>;
285
+ mimeType: Schema.optional<typeof Schema.String>;
286
+ text: typeof Schema.String;
287
+ disposition: Schema.optional<typeof Schema.String>;
288
+ }>>, Schema.mutable<Schema.TaggedStruct<"toolkit", {
289
+ pending: Schema.optional<typeof Schema.Boolean>;
290
+ }>>, Schema.mutable<Schema.TaggedStruct<"toolCall", {
291
+ pending: Schema.optional<typeof Schema.Boolean>;
292
+ toolCallId: typeof Schema.String;
293
+ name: typeof Schema.String;
294
+ input: typeof Schema.String;
295
+ }>>, Schema.mutable<Schema.TaggedStruct<"toolResult", {
296
+ pending: Schema.optional<typeof Schema.Boolean>;
297
+ toolCallId: typeof Schema.String;
298
+ name: typeof Schema.String;
299
+ result: Schema.optional<typeof Schema.String>;
300
+ error: Schema.optional<typeof Schema.String>;
301
+ }>>, Schema.mutable<Schema.TaggedStruct<"transcript", {
302
+ pending: Schema.optional<typeof Schema.Boolean>;
303
+ started: typeof Schema.String;
304
+ text: typeof Schema.String;
275
305
  }>>]>>>;
276
- properties: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Any>>>;
306
+ properties: Schema.optional<Schema.mutable<Schema.Record$<typeof Schema.String, typeof Schema.Any>>>;
277
307
  }>>;
278
308
  timeElapsed: typeof Schema.Number;
279
309
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"extraction.d.ts","sourceRoot":"","sources":["../../../../src/extraction/extraction.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAGhC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAIjF,eAAO,MAAM,eAAe;;;;;;;;;;;;wBA+Dk1iB,CAAC;+BAAqD,CAAC;0BAAgD,CAAC;yBAAkG,CAAC;2BAAiD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAtDzmjB,CAAC;AACH,MAAM,WAAW,eAAgB,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,eAAe,CAAC;CAAG;AAEtF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;wBAmDi1iB,CAAC;+BAAqD,CAAC;0BAAgD,CAAC;yBAAkG,CAAC;2BAAiD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAhDzmjB,CAAC;AACH,MAAM,WAAW,gBAAiB,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,gBAAgB,CAAC;CAAG;AAExF,MAAM,MAAM,8BAA8B,GAAG;IAC3C,KAAK,EAAE,eAAe,CAAC;IACvB,QAAQ,EAAE,kBAAkB,CAAC,eAAe,EAAE,gBAAgB,CAAC,CAAC;IAChE,QAAQ,EAAE,gBAAgB,CAAC;IAE3B,OAAO,CAAC,EAAE;QACR;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;QAEjB;;;;WAIG;QACH,aAAa,CAAC,EAAE,OAAO,CAAC;KACzB,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,kBAAkB,CAAC,eAAe,EAAE,gBAAgB,CAAC,CAAC;AAEvF;;GAEG;AAEH,eAAO,MAAM,wBAAwB,GAAU,QAAQ,8BAA8B,KAAG,OAAO,CAAC,gBAAgB,CAkB/G,CAAC"}
1
+ {"version":3,"file":"extraction.d.ts","sourceRoot":"","sources":["../../../../src/extraction/extraction.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAGhC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAIjF,eAAO,MAAM,eAAe;;;;;;;;;;;;;+BA+Dskb,CAAC;wBAA0C,CAAC;0BAA4C,CAAC;yBAA8F,CAAC;2BAA6C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAtDt0b,CAAC;AACH,MAAM,WAAW,eAAgB,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,eAAe,CAAC;CAAG;AAEtF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;+BAmDqkb,CAAC;wBAA0C,CAAC;0BAA4C,CAAC;yBAA8F,CAAC;2BAA6C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAhDt0b,CAAC;AACH,MAAM,WAAW,gBAAiB,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,gBAAgB,CAAC;CAAG;AAExF,MAAM,MAAM,8BAA8B,GAAG;IAC3C,KAAK,EAAE,eAAe,CAAC;IACvB,QAAQ,EAAE,kBAAkB,CAAC,eAAe,EAAE,gBAAgB,CAAC,CAAC;IAChE,QAAQ,EAAE,gBAAgB,CAAC;IAE3B,OAAO,CAAC,EAAE;QACR;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;QAEjB;;;;WAIG;QACH,aAAa,CAAC,EAAE,OAAO,CAAC;KACzB,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,kBAAkB,CAAC,eAAe,EAAE,gBAAgB,CAAC,CAAC;AAEvF;;GAEG;AAEH,eAAO,MAAM,wBAAwB,GAAU,QAAQ,8BAA8B,KAAG,OAAO,CAAC,gBAAgB,CAkB/G,CAAC"}
@@ -1,6 +1,7 @@
1
+ import { AiTool, type AiToolkit } from '@effect/ai';
1
2
  import { Layer } from 'effect';
2
3
  import { ToolExecutionService, ToolResolverService } from '@dxos/ai';
3
- import { type FunctionDefinition } from '@dxos/functions';
4
- export declare const makeToolResolverFromFunctions: (functions: FunctionDefinition<any, any>[]) => Layer.Layer<ToolResolverService>;
5
- export declare const makeToolExecutionServiceFromFunctions: (functions: FunctionDefinition<any, any>[]) => Layer.Layer<ToolExecutionService>;
4
+ import { type FunctionDefinition, LocalFunctionExecutionService } from '@dxos/functions';
5
+ export declare const makeToolResolverFromFunctions: (functions: FunctionDefinition<any, any>[], toolkit: AiToolkit.Any) => Layer.Layer<ToolResolverService>;
6
+ export declare const makeToolExecutionServiceFromFunctions: (functions: FunctionDefinition<any, any>[], toolkit: AiToolkit.AiToolkit<AiTool.Any>, handlersLayer: Layer.Layer<AiTool.ToHandler<AiTool.AiTool<any>>, never, never>) => Layer.Layer<ToolExecutionService, never, LocalFunctionExecutionService>;
6
7
  //# sourceMappingURL=services.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"services.d.ts","sourceRoot":"","sources":["../../../../src/functions/services.ts"],"names":[],"mappings":"AAKA,OAAO,EAAmB,KAAK,EAAoC,MAAM,QAAQ,CAAC;AAElF,OAAO,EAAuB,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE1F,OAAO,EAAuC,KAAK,kBAAkB,EAAiB,MAAM,iBAAiB,CAAC;AAG9G,eAAO,MAAM,6BAA6B,GACxC,WAAW,kBAAkB,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,KACxC,KAAK,CAAC,KAAK,CAAC,mBAAmB,CAWjC,CAAC;AAEF,eAAO,MAAM,qCAAqC,GAChD,WAAW,kBAAkB,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,KACxC,KAAK,CAAC,KAAK,CAAC,oBAAoB,CAkBlC,CAAC"}
1
+ {"version":3,"file":"services.d.ts","sourceRoot":"","sources":["../../../../src/functions/services.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,EAAmB,KAAK,EAAkB,MAAM,QAAQ,CAAC;AAEhE,OAAO,EAAuB,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE1F,OAAO,EAAE,KAAK,kBAAkB,EAAE,6BAA6B,EAAE,MAAM,iBAAiB,CAAC;AAGzF,eAAO,MAAM,6BAA6B,GACxC,WAAW,kBAAkB,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,EACzC,SAAS,SAAS,CAAC,GAAG,KACrB,KAAK,CAAC,KAAK,CAAC,mBAAmB,CAgBjC,CAAC;AAEF,eAAO,MAAM,qCAAqC,GAChD,WAAW,kBAAkB,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,EACzC,SAAS,SAAS,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,EACxC,eAAe,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,KAC7E,KAAK,CAAC,KAAK,CAAC,oBAAoB,EAAE,KAAK,EAAE,6BAA6B,CAiCxE,CAAC"}