@dxos/assistant-toolkit 0.8.4-main.ae835ea → 0.8.4-main.e8ec1fe

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 (96) hide show
  1. package/dist/lib/browser/index.mjs +891 -595
  2. package/dist/lib/browser/index.mjs.map +4 -4
  3. package/dist/lib/browser/meta.json +1 -1
  4. package/dist/lib/node-esm/index.mjs +890 -595
  5. package/dist/lib/node-esm/index.mjs.map +4 -4
  6. package/dist/lib/node-esm/meta.json +1 -1
  7. package/dist/types/src/blueprints/research/research-blueprint.d.ts.map +1 -1
  8. package/dist/types/src/blueprints/websearch/websearch-toolkit.d.ts +1 -0
  9. package/dist/types/src/blueprints/websearch/websearch-toolkit.d.ts.map +1 -1
  10. package/dist/types/src/crud/graph.d.ts.map +1 -0
  11. package/dist/types/src/crud/graph.test.d.ts.map +1 -0
  12. package/dist/types/src/crud/index.d.ts +2 -0
  13. package/dist/types/src/crud/index.d.ts.map +1 -0
  14. package/dist/types/src/functions/agent/prompt.d.ts +3 -5
  15. package/dist/types/src/functions/agent/prompt.d.ts.map +1 -1
  16. package/dist/types/src/functions/discord/fetch-messages.d.ts +1 -1
  17. package/dist/types/src/functions/discord/index.d.ts +1 -1
  18. package/dist/types/src/functions/discord/index.d.ts.map +1 -1
  19. package/dist/types/src/functions/document/index.d.ts +3 -2
  20. package/dist/types/src/functions/document/index.d.ts.map +1 -1
  21. package/dist/types/src/functions/document/read.d.ts +1 -1
  22. package/dist/types/src/functions/document/update.d.ts +1 -1
  23. package/dist/types/src/functions/entity-extraction/entity-extraction.d.ts +2 -2
  24. package/dist/types/src/functions/entity-extraction/entity-extraction.d.ts.map +1 -1
  25. package/dist/types/src/functions/entity-extraction/index.d.ts +2 -2
  26. package/dist/types/src/functions/entity-extraction/index.d.ts.map +1 -1
  27. package/dist/types/src/functions/exa/exa.d.ts +1 -1
  28. package/dist/types/src/functions/exa/mock.d.ts +1 -1
  29. package/dist/types/src/functions/github/fetch-prs.d.ts +1 -1
  30. package/dist/types/src/functions/linear/index.d.ts +1 -1
  31. package/dist/types/src/functions/linear/index.d.ts.map +1 -1
  32. package/dist/types/src/functions/linear/sync-issues.d.ts +1 -1
  33. package/dist/types/src/functions/research/document-create.d.ts +9 -0
  34. package/dist/types/src/functions/research/document-create.d.ts.map +1 -0
  35. package/dist/types/src/functions/research/index.d.ts +8 -6
  36. package/dist/types/src/functions/research/index.d.ts.map +1 -1
  37. package/dist/types/src/functions/research/research.d.ts +4 -3
  38. package/dist/types/src/functions/research/research.d.ts.map +1 -1
  39. package/dist/types/src/functions/research/types.d.ts +2 -380
  40. package/dist/types/src/functions/research/types.d.ts.map +1 -1
  41. package/dist/types/src/functions/tasks/index.d.ts +2 -2
  42. package/dist/types/src/functions/tasks/index.d.ts.map +1 -1
  43. package/dist/types/src/functions/tasks/read.d.ts +1 -1
  44. package/dist/types/src/functions/tasks/update.d.ts +1 -1
  45. package/dist/types/src/index.d.ts +2 -0
  46. package/dist/types/src/index.d.ts.map +1 -1
  47. package/dist/types/src/toolkits/AssistantToolkit.d.ts +17 -0
  48. package/dist/types/src/toolkits/AssistantToolkit.d.ts.map +1 -0
  49. package/dist/types/src/toolkits/AssistantToolkit.test.d.ts +2 -0
  50. package/dist/types/src/toolkits/AssistantToolkit.test.d.ts.map +1 -0
  51. package/dist/types/src/toolkits/SystemToolkit.d.ts +67 -0
  52. package/dist/types/src/toolkits/SystemToolkit.d.ts.map +1 -0
  53. package/dist/types/src/toolkits/index.d.ts +3 -0
  54. package/dist/types/src/toolkits/index.d.ts.map +1 -0
  55. package/dist/types/tsconfig.tsbuildinfo +1 -1
  56. package/package.json +24 -22
  57. package/src/blueprints/design/design-blueprint.test.ts +9 -14
  58. package/src/blueprints/design/design-blueprint.ts +2 -2
  59. package/src/blueprints/discord/discord-blueprint.ts +2 -2
  60. package/src/blueprints/linear/linear-blueprint.ts +2 -2
  61. package/src/blueprints/planning/planning-blueprint.test.ts +11 -16
  62. package/src/blueprints/planning/planning-blueprint.ts +2 -2
  63. package/src/blueprints/research/research-blueprint.ts +23 -15
  64. package/src/blueprints/websearch/websearch-blueprint.ts +2 -2
  65. package/src/{functions/research → crud}/graph.test.ts +2 -2
  66. package/src/crud/index.ts +5 -0
  67. package/src/experimental/feed.test.ts +11 -8
  68. package/src/functions/agent/prompt.ts +25 -12
  69. package/src/functions/discord/fetch-messages.test.ts +5 -6
  70. package/src/functions/discord/fetch-messages.ts +10 -9
  71. package/src/functions/document/index.ts +1 -0
  72. package/src/functions/entity-extraction/entity-extraction.conversations.json +1 -1
  73. package/src/functions/entity-extraction/entity-extraction.test.ts +11 -19
  74. package/src/functions/entity-extraction/entity-extraction.ts +15 -13
  75. package/src/functions/linear/linear.test.ts +13 -16
  76. package/src/functions/linear/sync-issues.ts +7 -7
  77. package/src/functions/research/{create-document.ts → document-create.ts} +32 -26
  78. package/src/functions/research/index.ts +1 -2
  79. package/src/functions/research/{instructions-research.tpl → research-instructions.tpl} +14 -6
  80. package/src/functions/research/research.conversations.json +1 -10714
  81. package/src/functions/research/research.test.ts +87 -148
  82. package/src/functions/research/research.ts +84 -49
  83. package/src/functions/research/types.ts +14 -12
  84. package/src/index.ts +2 -0
  85. package/src/toolkits/AssistantToolkit.conversations.json +1 -0
  86. package/src/toolkits/AssistantToolkit.test.ts +88 -0
  87. package/src/toolkits/AssistantToolkit.ts +47 -0
  88. package/src/toolkits/SystemToolkit.ts +231 -0
  89. package/src/toolkits/index.ts +6 -0
  90. package/dist/types/src/functions/research/create-document.d.ts +0 -7
  91. package/dist/types/src/functions/research/create-document.d.ts.map +0 -1
  92. package/dist/types/src/functions/research/graph.d.ts.map +0 -1
  93. package/dist/types/src/functions/research/graph.test.d.ts.map +0 -1
  94. /package/dist/types/src/{functions/research → crud}/graph.d.ts +0 -0
  95. /package/dist/types/src/{functions/research → crud}/graph.test.d.ts +0 -0
  96. /package/src/{functions/research → crud}/graph.ts +0 -0
@@ -2,12 +2,13 @@
2
2
  * Exec external service and return the results as a Subgraph.
3
3
  */
4
4
  declare const _default: import("@dxos/functions").FunctionDefinition<{
5
+ readonly instructions?: string | undefined;
5
6
  readonly query: string;
6
- readonly researchInstructions?: string | undefined;
7
7
  readonly mockSearch?: boolean | undefined;
8
+ readonly entityExtraction?: boolean | undefined;
8
9
  }, {
9
10
  readonly objects: readonly unknown[];
10
- readonly note?: string | undefined;
11
- }>;
11
+ readonly document?: string | undefined;
12
+ }, import("@dxos/functions").FunctionServices>;
12
13
  export default _default;
13
14
  //# sourceMappingURL=research.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"research.d.ts","sourceRoot":"","sources":["../../../../../src/functions/research/research.ts"],"names":[],"mappings":"AAgCA;;GAEG;;;;;;;;;AACH,wBAuHG"}
1
+ {"version":3,"file":"research.d.ts","sourceRoot":"","sources":["../../../../../src/functions/research/research.ts"],"names":[],"mappings":"AAoCA;;GAEG;;;;;;;;;;AACH,wBA2HG"}
@@ -1,384 +1,6 @@
1
- import { DataType } from '@dxos/schema';
1
+ import { type Type } from '@dxos/echo';
2
2
  /**
3
3
  * Data types for research.
4
4
  */
5
- export declare const ResearchDataTypes: (import("@dxos/echo/Type").obj<import("effect/Schema").Struct<{
6
- name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
7
- owner: import("effect/Schema").Struct<{
8
- contact: import("effect/Schema").optional<import("@dxos/echo/Type").ref<import("@dxos/echo/Type").obj<import("effect/Schema").extend<import("effect/Schema").Struct<{
9
- fullName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
10
- preferredName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
11
- nickname: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
12
- image: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
13
- organization: import("effect/Schema").optional<import("effect/Schema").Schema<import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
14
- id: string;
15
- description?: string | undefined;
16
- name?: string | undefined;
17
- status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
18
- image?: string | undefined;
19
- website?: string | undefined;
20
- location?: readonly [number, number, (number | undefined)?] | undefined;
21
- }>, 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>;
28
- }>>>>;
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;
32
- }>>>>;
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;
36
- }>>>>;
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>>;
47
- }>;
48
- }>>>>;
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>;
52
- }>>>>;
53
- birthday: import("effect/Schema").optional<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;
58
- }>>>>;
59
- }>, import("effect/Schema").Struct<{
60
- location: import("effect/Schema").optional<import("effect/Schema").Tuple<[import("effect/Schema").filter<import("effect/Schema").transform<import("effect/Schema").SchemaClass<number, number, never>, import("effect/Schema").filter<import("effect/Schema").SchemaClass<number, number, never>>>>, import("effect/Schema").filter<import("effect/Schema").transform<import("effect/Schema").SchemaClass<number, number, never>, import("effect/Schema").filter<import("effect/Schema").SchemaClass<number, number, never>>>>, import("effect/Schema").Element<typeof import("effect/Schema").Number, "?">]>>;
61
- }>>>>>;
62
- identityDid: import("effect/Schema").optional<typeof import("effect/Schema").String>;
63
- identityKey: import("effect/Schema").optional<typeof import("effect/Schema").String>;
64
- email: import("effect/Schema").optional<typeof import("effect/Schema").String>;
65
- name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
66
- role: import("effect/Schema").optional<import("effect/Schema").Literal<["user", "assistant", "tool"]>>;
67
- }>;
68
- attendees: import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
69
- contact: import("effect/Schema").optional<import("@dxos/echo/Type").ref<import("@dxos/echo/Type").obj<import("effect/Schema").extend<import("effect/Schema").Struct<{
70
- fullName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
71
- preferredName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
72
- nickname: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
73
- image: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
74
- organization: import("effect/Schema").optional<import("effect/Schema").Schema<import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
75
- id: string;
76
- description?: string | undefined;
77
- name?: string | undefined;
78
- status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
79
- image?: string | undefined;
80
- website?: string | undefined;
81
- location?: readonly [number, number, (number | undefined)?] | undefined;
82
- }>, import("@dxos/echo-protocol").EncodedReference, never>>;
83
- jobTitle: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
84
- department: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
85
- notes: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
86
- emails: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
87
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
88
- value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
89
- }>>>>;
90
- identities: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
91
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
92
- value: typeof import("effect/Schema").String;
93
- }>>>>;
94
- phoneNumbers: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
95
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
96
- value: typeof import("effect/Schema").String;
97
- }>>>>;
98
- addresses: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
99
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
100
- value: import("effect/Schema").Struct<{
101
- street: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
102
- extended: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
103
- locality: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
104
- region: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
105
- postalCode: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
106
- postOfficeBoxNumber: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
107
- country: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
108
- }>;
109
- }>>>>;
110
- urls: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
111
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
112
- value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
113
- }>>>>;
114
- birthday: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
115
- fields: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
116
- category: import("effect/Schema").optional<typeof import("effect/Schema").String>;
117
- label: typeof import("effect/Schema").String;
118
- value: typeof import("effect/Schema").String;
119
- }>>>>;
120
- }>, import("effect/Schema").Struct<{
121
- location: import("effect/Schema").optional<import("effect/Schema").Tuple<[import("effect/Schema").filter<import("effect/Schema").transform<import("effect/Schema").SchemaClass<number, number, never>, import("effect/Schema").filter<import("effect/Schema").SchemaClass<number, number, never>>>>, import("effect/Schema").filter<import("effect/Schema").transform<import("effect/Schema").SchemaClass<number, number, never>, import("effect/Schema").filter<import("effect/Schema").SchemaClass<number, number, never>>>>, import("effect/Schema").Element<typeof import("effect/Schema").Number, "?">]>>;
122
- }>>>>>;
123
- identityDid: import("effect/Schema").optional<typeof import("effect/Schema").String>;
124
- identityKey: import("effect/Schema").optional<typeof import("effect/Schema").String>;
125
- email: import("effect/Schema").optional<typeof import("effect/Schema").String>;
126
- name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
127
- role: import("effect/Schema").optional<import("effect/Schema").Literal<["user", "assistant", "tool"]>>;
128
- }>>>;
129
- startDate: typeof import("effect/Schema").String;
130
- endDate: typeof import("effect/Schema").String;
131
- links: import("effect/Schema").mutable<import("effect/Schema").Array$<import("@dxos/echo/Type").ref<import("effect/Schema").Schema<import("@dxos/echo/Type").Expando, {
132
- [x: string]: any;
133
- id: string;
134
- }, never>>>>;
135
- }>> | import("@dxos/echo/Type").obj<import("effect/Schema").Struct<{
136
- id: import("@dxos/keys").ObjectIdClass;
137
- name: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
138
- description: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
139
- status: import("effect/Schema").optional<import("effect/Schema").Literal<["prospect", "qualified", "active", "commit", "reject"]>>;
140
- image: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
141
- website: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
142
- }>> | import("@dxos/echo/Type").obj<import("effect/Schema").Struct<{
143
- fullName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
144
- preferredName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
145
- nickname: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
146
- image: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
147
- organization: import("effect/Schema").optional<import("effect/Schema").Schema<import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
148
- id: string;
149
- description?: string | undefined;
150
- name?: string | undefined;
151
- status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
152
- image?: string | undefined;
153
- website?: string | undefined;
154
- location?: readonly [number, number, (number | undefined)?] | undefined;
155
- }>, import("@dxos/echo-protocol").EncodedReference, never>>;
156
- jobTitle: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
157
- department: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
158
- notes: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
159
- emails: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
160
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
161
- value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
162
- }>>>>;
163
- identities: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
164
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
165
- value: typeof import("effect/Schema").String;
166
- }>>>>;
167
- phoneNumbers: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
168
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
169
- value: typeof import("effect/Schema").String;
170
- }>>>>;
171
- addresses: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
172
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
173
- value: import("effect/Schema").Struct<{
174
- street: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
175
- extended: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
176
- locality: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
177
- region: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
178
- postalCode: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
179
- postOfficeBoxNumber: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
180
- country: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
181
- }>;
182
- }>>>>;
183
- urls: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
184
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
185
- value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
186
- }>>>>;
187
- birthday: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
188
- fields: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
189
- category: import("effect/Schema").optional<typeof import("effect/Schema").String>;
190
- label: typeof import("effect/Schema").String;
191
- value: typeof import("effect/Schema").String;
192
- }>>>>;
193
- }>> | import("@dxos/echo/Type").obj<import("effect/Schema").Struct<{
194
- name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
195
- description: import("effect/Schema").optional<typeof import("effect/Schema").String>;
196
- image: import("effect/Schema").optional<import("effect/Schema").refine<string, typeof import("effect/Schema").String>>;
197
- collections: import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Union<[import("@dxos/echo/Type").ref<import("@dxos/echo/Type").obj<import("effect/Schema").Struct<{
198
- name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
199
- objects: import("effect/Schema").mutable<import("effect/Schema").Array$<import("@dxos/echo/Type").ref<import("effect/Schema").Schema<import("@dxos/echo/Type").Expando, {
200
- [x: string]: any;
201
- id: string;
202
- }, never>>>>;
203
- }>>>, import("@dxos/echo/Type").ref<import("effect/Schema").Schema<DataType.View, import("@dxos/schema").ViewEncoded, never>>]>>>;
204
- }>> | import("@dxos/echo/Type").obj<import("effect/Schema").Struct<{
205
- title: import("effect/Schema").SchemaClass<string, string, never>;
206
- priority: import("effect/Schema").optional<import("effect/Schema").Literal<["none", "low", "medium", "high", "urgent"]>>;
207
- status: import("effect/Schema").optional<import("effect/Schema").Literal<["todo", "in-progress", "done"]>>;
208
- assigned: import("effect/Schema").optional<import("effect/Schema").SchemaClass<import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
209
- fields?: {
210
- readonly value: string;
211
- readonly label: string;
212
- readonly category?: string | undefined;
213
- }[] | undefined;
214
- organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
215
- id: string;
216
- description?: string | undefined;
217
- name?: string | undefined;
218
- status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
219
- image?: string | undefined;
220
- website?: string | undefined;
221
- location?: readonly [number, number, (number | undefined)?] | undefined;
222
- }> | undefined;
223
- image?: string | undefined;
224
- fullName?: string | undefined;
225
- preferredName?: string | undefined;
226
- nickname?: string | undefined;
227
- jobTitle?: string | undefined;
228
- department?: string | undefined;
229
- notes?: string | undefined;
230
- emails?: {
231
- readonly value: string;
232
- readonly label?: string | undefined;
233
- }[] | undefined;
234
- identities?: {
235
- readonly value: string;
236
- readonly label?: string | undefined;
237
- }[] | undefined;
238
- phoneNumbers?: {
239
- readonly value: string;
240
- readonly label?: string | undefined;
241
- }[] | undefined;
242
- addresses?: {
243
- readonly value: {
244
- readonly street?: string | undefined;
245
- readonly extended?: string | undefined;
246
- readonly locality?: string | undefined;
247
- readonly region?: string | undefined;
248
- readonly postalCode?: string | undefined;
249
- readonly postOfficeBoxNumber?: string | undefined;
250
- readonly country?: string | undefined;
251
- };
252
- readonly label?: string | undefined;
253
- }[] | undefined;
254
- urls?: {
255
- readonly value: string;
256
- readonly label?: string | undefined;
257
- }[] | undefined;
258
- birthday?: string | undefined;
259
- location?: readonly [number, number, (number | undefined)?] | undefined;
260
- }>, import("@dxos/echo-protocol").EncodedReference, never>>;
261
- estimate: import("effect/Schema").optional<import("effect/Schema").SchemaClass<number, number, never>>;
262
- description: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
263
- project: import("effect/Schema").optional<import("effect/Schema").SchemaClass<import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
264
- description?: string | undefined;
265
- name?: string | undefined;
266
- image?: string | undefined;
267
- collections: (import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
268
- name?: string | undefined;
269
- objects: import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").Expando>[];
270
- }> | import("@dxos/echo/internal").Ref<DataType.View>)[];
271
- }>, import("@dxos/echo-protocol").EncodedReference, never>>;
272
- }>> | import("@dxos/echo/Type").obj<import("effect/Schema").Struct<{
273
- content: typeof import("effect/Schema").String;
274
- }>> | import("@dxos/echo/Type").relation<import("effect/Schema").Struct<{
275
- id: import("@dxos/keys").ObjectIdClass;
276
- kind: import("effect/Schema").SchemaClass<string, string, never>;
277
- }>, import("@dxos/echo/Type").obj<import("effect/Schema").extend<import("effect/Schema").Struct<{
278
- fullName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
279
- preferredName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
280
- nickname: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
281
- image: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
282
- organization: import("effect/Schema").optional<import("effect/Schema").Schema<import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
283
- id: string;
284
- description?: string | undefined;
285
- name?: string | undefined;
286
- status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
287
- image?: string | undefined;
288
- website?: string | undefined;
289
- location?: readonly [number, number, (number | undefined)?] | undefined;
290
- }>, import("@dxos/echo-protocol").EncodedReference, never>>;
291
- jobTitle: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
292
- department: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
293
- notes: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
294
- emails: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
295
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
296
- value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
297
- }>>>>;
298
- identities: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
299
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
300
- value: typeof import("effect/Schema").String;
301
- }>>>>;
302
- phoneNumbers: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
303
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
304
- value: typeof import("effect/Schema").String;
305
- }>>>>;
306
- addresses: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
307
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
308
- value: import("effect/Schema").Struct<{
309
- street: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
310
- extended: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
311
- locality: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
312
- region: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
313
- postalCode: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
314
- postOfficeBoxNumber: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
315
- country: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
316
- }>;
317
- }>>>>;
318
- urls: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
319
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
320
- value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
321
- }>>>>;
322
- birthday: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
323
- fields: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
324
- category: import("effect/Schema").optional<typeof import("effect/Schema").String>;
325
- label: typeof import("effect/Schema").String;
326
- value: typeof import("effect/Schema").String;
327
- }>>>>;
328
- }>, import("effect/Schema").Struct<{
329
- location: import("effect/Schema").optional<import("effect/Schema").Tuple<[import("effect/Schema").filter<import("effect/Schema").transform<import("effect/Schema").SchemaClass<number, number, never>, import("effect/Schema").filter<import("effect/Schema").SchemaClass<number, number, never>>>>, import("effect/Schema").filter<import("effect/Schema").transform<import("effect/Schema").SchemaClass<number, number, never>, import("effect/Schema").filter<import("effect/Schema").SchemaClass<number, number, never>>>>, import("effect/Schema").Element<typeof import("effect/Schema").Number, "?">]>>;
330
- }>>>, import("@dxos/echo/Type").obj<import("effect/Schema").extend<import("effect/Schema").Struct<{
331
- fullName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
332
- preferredName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
333
- nickname: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
334
- image: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
335
- organization: import("effect/Schema").optional<import("effect/Schema").Schema<import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
336
- id: string;
337
- description?: string | undefined;
338
- name?: string | undefined;
339
- status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
340
- image?: string | undefined;
341
- website?: string | undefined;
342
- location?: readonly [number, number, (number | undefined)?] | undefined;
343
- }>, import("@dxos/echo-protocol").EncodedReference, never>>;
344
- jobTitle: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
345
- department: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
346
- notes: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
347
- emails: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
348
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
349
- value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
350
- }>>>>;
351
- identities: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
352
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
353
- value: typeof import("effect/Schema").String;
354
- }>>>>;
355
- phoneNumbers: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
356
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
357
- value: typeof import("effect/Schema").String;
358
- }>>>>;
359
- addresses: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
360
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
361
- value: import("effect/Schema").Struct<{
362
- street: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
363
- extended: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
364
- locality: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
365
- region: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
366
- postalCode: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
367
- postOfficeBoxNumber: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
368
- country: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
369
- }>;
370
- }>>>>;
371
- urls: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
372
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
373
- value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
374
- }>>>>;
375
- birthday: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
376
- fields: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
377
- category: import("effect/Schema").optional<typeof import("effect/Schema").String>;
378
- label: typeof import("effect/Schema").String;
379
- value: typeof import("effect/Schema").String;
380
- }>>>>;
381
- }>, import("effect/Schema").Struct<{
382
- location: import("effect/Schema").optional<import("effect/Schema").Tuple<[import("effect/Schema").filter<import("effect/Schema").transform<import("effect/Schema").SchemaClass<number, number, never>, import("effect/Schema").filter<import("effect/Schema").SchemaClass<number, number, never>>>>, import("effect/Schema").filter<import("effect/Schema").transform<import("effect/Schema").SchemaClass<number, number, never>, import("effect/Schema").filter<import("effect/Schema").SchemaClass<number, number, never>>>>, import("effect/Schema").Element<typeof import("effect/Schema").Number, "?">]>>;
383
- }>>>>)[];
5
+ export declare const ResearchDataTypes: (Type.Obj.Any | Type.Relation.Any)[];
384
6
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/functions/research/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;2BAewS,CAAC;oBAA0C,CAAC;sBAA4C,CAAC;qBAA8F,CAAC;uBAA6C,CAAC;wBAA8C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAA2xH,CAAC;oBAA0C,CAAC;sBAA4C,CAAC;qBAA8F,CAAC;uBAA6C,CAAC;wBAA8C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAA/wC,CAAC;YAAkC,CAAC;cAAoC,CAAC;aAAsF,CAAC;eAAqC,CAAC;gBAAsC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAA3lH,CAAC;;;6BAAyG,CAAC;;oBAAmE,CAAC;;uBAAoJ,CAAC;gBAAsC,CAAC;kBAAwC,CAAC;iBAA0F,CAAC;mBAAyC,CAAC;oBAA0C,CAAC;;aAAqG,CAAC;gBAAsC,CAAC;qBAA2C,CAAC;gBAAsC,CAAC;gBAAsC,CAAC;kBAAwC,CAAC;aAAmC,CAAC;cAAoC,CAAC;;0BAAkE,CAAC;;kBAAiE,CAAC;;0BAAkE,CAAC;;oBAAmE,CAAC;;0BAAkE,CAAC;;iBAAgE,CAAC;;+BAAiE,CAAC;iCAAuD,CAAC;iCAAuD,CAAC;+BAAqD,CAAC;mCAAyD,CAAC;4CAAkE,CAAC;gCAAsD,CAAC;;0BAA+D,CAAC;;YAA2D,CAAC;;0BAAkE,CAAC;;gBAA+D,CAAC;gBAAsC,CAAC;;;;;mBAA8b,CAAC;YAAkC,CAAC;aAAmC,CAAC;;gBAA+J,CAAC;;;;;;;;;;;;;;;;mBAAs1I,CAAC;YAAkC,CAAC;cAAoC,CAAC;aAAsF,CAAC;eAAqC,CAAC;gBAAsC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAA0/F,CAAC;YAAkC,CAAC;cAAoC,CAAC;aAAsF,CAAC;eAAqC,CAAC;gBAAsC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAD5+U,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/functions/research/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AAIvC;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAcjE,CAAC"}
@@ -3,13 +3,13 @@ export declare namespace Tasks {
3
3
  readonly id: string;
4
4
  }, {
5
5
  readonly content: string;
6
- }>;
6
+ }, import("@dxos/functions").FunctionServices>;
7
7
  const update: import("@dxos/functions").FunctionDefinition<{
8
8
  readonly id: string;
9
9
  readonly operations?: readonly any[] | undefined;
10
10
  }, {
11
11
  readonly content: string;
12
12
  readonly numberedContent: string;
13
- }>;
13
+ }, import("@dxos/functions").FunctionServices>;
14
14
  }
15
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/functions/tasks/index.ts"],"names":[],"mappings":"AAOA,yBAAiB,KAAK,CAAC;IACd,MAAM,IAAI;;;;MAAQ,CAAC;IACnB,MAAM,MAAM;;;;;;MAAU,CAAC;CAC/B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/functions/tasks/index.ts"],"names":[],"mappings":"AAOA,yBAAiB,KAAK,CAAC;IACd,MAAM,IAAI;;;;kDAAQ,CAAC;IACnB,MAAM,MAAM;;;;;;kDAAU,CAAC;CAC/B"}
@@ -2,6 +2,6 @@ declare const _default: import("@dxos/functions").FunctionDefinition<{
2
2
  readonly id: string;
3
3
  }, {
4
4
  readonly content: string;
5
- }>;
5
+ }, import("@dxos/functions").FunctionServices>;
6
6
  export default _default;
7
7
  //# sourceMappingURL=read.d.ts.map
@@ -4,6 +4,6 @@ declare const _default: import("@dxos/functions").FunctionDefinition<{
4
4
  }, {
5
5
  readonly content: string;
6
6
  readonly numberedContent: string;
7
- }>;
7
+ }, import("@dxos/functions").FunctionServices>;
8
8
  export default _default;
9
9
  //# sourceMappingURL=update.d.ts.map
@@ -2,4 +2,6 @@ export * from './blueprints';
2
2
  export * from './functions';
3
3
  export * from './plugins';
4
4
  export * from './sync';
5
+ export * from './crud';
6
+ export * from './toolkits';
5
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC"}
@@ -0,0 +1,17 @@
1
+ import * as Tool from '@effect/ai/Tool';
2
+ import * as Toolkit from '@effect/ai/Toolkit';
3
+ import * as Schema from 'effect/Schema';
4
+ import { AiContextService } from '@dxos/assistant';
5
+ import { DatabaseService } from '@dxos/functions';
6
+ export declare const AssistantToolkit: Toolkit.Toolkit<{
7
+ readonly "add-to-context": Tool.Tool<"add-to-context", {
8
+ readonly parameters: Schema.Struct<{
9
+ id: Schema.Schema<string, string, never>;
10
+ }>;
11
+ readonly success: typeof Schema.Void;
12
+ readonly failure: typeof Schema.Never;
13
+ }, DatabaseService | AiContextService>;
14
+ }>;
15
+ export declare const tools: "add-to-context"[];
16
+ export declare const layer: () => import("effect/Layer").Layer<Tool.Handler<"add-to-context">, never, never>;
17
+ //# sourceMappingURL=AssistantToolkit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AssistantToolkit.d.ts","sourceRoot":"","sources":["../../../../src/toolkits/AssistantToolkit.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAG9C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,gBAAgB,EAAc,MAAM,iBAAiB,CAAC;AAE/D,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAGlD,eAAO,MAAM,gBAAgB;;;;;;;;EAc5B,CAAC;AAEF,eAAO,MAAM,KAAK,oBAAsC,CAAC;AAEzD,eAAO,MAAM,KAAK,kFAad,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=AssistantToolkit.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AssistantToolkit.test.d.ts","sourceRoot":"","sources":["../../../../src/toolkits/AssistantToolkit.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,67 @@
1
+ import * as Tool from '@effect/ai/Tool';
2
+ import * as Toolkit from '@effect/ai/Toolkit';
3
+ import type * as Layer from 'effect/Layer';
4
+ import * as Schema from 'effect/Schema';
5
+ import { DatabaseService } from '@dxos/functions';
6
+ export declare const SystemToolkit: Toolkit.Toolkit<{
7
+ readonly "schema-list": Tool.Tool<"schema-list", {
8
+ readonly parameters: Schema.Struct<{
9
+ limit: typeof Schema.Number;
10
+ }>;
11
+ readonly success: typeof Schema.Any;
12
+ readonly failure: typeof Schema.Never;
13
+ }, DatabaseService>;
14
+ readonly "schema-add": Tool.Tool<"schema-add", {
15
+ readonly parameters: Schema.Struct<{
16
+ name: typeof Schema.String;
17
+ typename: typeof Schema.String;
18
+ jsonSchema: typeof Schema.Any;
19
+ }>;
20
+ readonly success: typeof Schema.Any;
21
+ readonly failure: typeof Schema.Never;
22
+ }, DatabaseService>;
23
+ readonly "object-create": Tool.Tool<"object-create", {
24
+ readonly parameters: Schema.Struct<{
25
+ typename: typeof Schema.String;
26
+ data: typeof Schema.Any;
27
+ }>;
28
+ readonly success: typeof Schema.Any;
29
+ readonly failure: typeof Schema.Never;
30
+ }, DatabaseService>;
31
+ readonly "object-remove": Tool.Tool<"object-remove", {
32
+ readonly parameters: Schema.Struct<{
33
+ id: Schema.Schema<string, string, never>;
34
+ }>;
35
+ readonly success: typeof Schema.Any;
36
+ readonly failure: typeof Schema.Never;
37
+ }, DatabaseService>;
38
+ readonly "relation-create": Tool.Tool<"relation-create", {
39
+ readonly parameters: Schema.Struct<{
40
+ typename: typeof Schema.String;
41
+ source: Schema.Schema<string, string, never>;
42
+ target: Schema.Schema<string, string, never>;
43
+ data: Schema.SchemaClass<any, any, never>;
44
+ }>;
45
+ readonly success: typeof Schema.Any;
46
+ readonly failure: typeof Schema.Never;
47
+ }, DatabaseService>;
48
+ readonly "tag-add": Tool.Tool<"tag-add", {
49
+ readonly parameters: Schema.Struct<{
50
+ tagId: Schema.Schema<string, string, never>;
51
+ objectId: Schema.Schema<string, string, never>;
52
+ }>;
53
+ readonly success: typeof Schema.Any;
54
+ readonly failure: typeof Schema.Never;
55
+ }, DatabaseService>;
56
+ readonly "tag-remove": Tool.Tool<"tag-remove", {
57
+ readonly parameters: Schema.Struct<{
58
+ tagId: Schema.Schema<string, string, never>;
59
+ objectId: Schema.Schema<string, string, never>;
60
+ }>;
61
+ readonly success: typeof Schema.Any;
62
+ readonly failure: typeof Schema.Never;
63
+ }, DatabaseService>;
64
+ }>;
65
+ export declare const tools: ("schema-list" | "schema-add" | "object-create" | "object-remove" | "relation-create" | "tag-add" | "tag-remove")[];
66
+ export declare const layer: () => Layer.Layer<Tool.Handler<any>, never, never>;
67
+ //# sourceMappingURL=SystemToolkit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SystemToolkit.d.ts","sourceRoot":"","sources":["../../../../src/toolkits/SystemToolkit.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAE9C,OAAO,KAAK,KAAK,KAAK,MAAM,cAAc,CAAC;AAE3C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAIxC,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAGlD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoIzB,CAAC;AAEF,eAAO,MAAM,KAAK,qHAAmC,CAAC;AAEtD,eAAO,MAAM,KAAK,QAAO,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,KAAK,EAAE,KAAK,CA8EhE,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * as AssistantToolkit from './AssistantToolkit';
2
+ export * as SystemToolkit from './SystemToolkit';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/toolkits/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,gBAAgB,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,aAAa,MAAM,iBAAiB,CAAC"}