@fencyai/js 0.1.191 → 0.1.193
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/AgentTaskEventData.d.ts +24 -0
- package/lib/AgentTaskEventData.d.ts.map +1 -1
- package/lib/api/createAgentTask.d.ts +2 -2
- package/lib/api/createAgentTask.d.ts.map +1 -1
- package/lib/api/createAgentTask.js +2 -1
- package/lib/api/createAgentTaskFileDownloadLink.d.ts +14 -0
- package/lib/api/createAgentTaskFileDownloadLink.d.ts.map +1 -0
- package/lib/api/createAgentTaskFileDownloadLink.js +36 -0
- package/lib/api/createStream.d.ts.map +1 -1
- package/lib/api/createStream.js +2 -1
- package/lib/api/extractApiErrorMessage.d.ts +2 -0
- package/lib/api/extractApiErrorMessage.d.ts.map +1 -0
- package/lib/api/extractApiErrorMessage.js +32 -0
- package/lib/constants/fencyFileLinkPrefix.d.ts +13 -0
- package/lib/constants/fencyFileLinkPrefix.d.ts.map +1 -0
- package/lib/constants/fencyFileLinkPrefix.js +12 -0
- package/lib/index.d.ts +17 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +15 -1
- package/lib/openapi/ct/index.d.ts +2 -0
- package/lib/openapi/ct/index.d.ts.map +1 -1
- package/lib/openapi/ct/models/PubCreateAgentTaskFileDownloadLinkRequest.d.ts +4 -0
- package/lib/openapi/ct/models/PubCreateAgentTaskFileDownloadLinkRequest.d.ts.map +1 -0
- package/lib/openapi/ct/models/PubCreateAgentTaskFileDownloadLinkRequest.js +1 -0
- package/lib/openapi/ct/models/PubCreateAgentTaskFileDownloadLinkResponse.d.ts +4 -0
- package/lib/openapi/ct/models/PubCreateAgentTaskFileDownloadLinkResponse.d.ts.map +1 -0
- package/lib/openapi/ct/models/PubCreateAgentTaskFileDownloadLinkResponse.js +1 -0
- package/lib/openapi/ct/services/PubService.d.ts +9 -0
- package/lib/openapi/ct/services/PubService.d.ts.map +1 -1
- package/lib/openapi/ct/services/PubService.js +14 -0
- package/lib/parsing/AgentTaskEventDataSchemas.d.ts +315 -0
- package/lib/parsing/AgentTaskEventDataSchemas.d.ts.map +1 -0
- package/lib/parsing/AgentTaskEventDataSchemas.js +415 -0
- package/lib/stream/StreamCacheManager.d.ts +41 -0
- package/lib/stream/StreamCacheManager.d.ts.map +1 -0
- package/lib/stream/StreamCacheManager.js +101 -0
- package/lib/stream/StreamEventManager.d.ts +52 -0
- package/lib/stream/StreamEventManager.d.ts.map +1 -0
- package/lib/stream/StreamEventManager.js +271 -0
- package/lib/stream/createStreamWorkerCode.d.ts +8 -0
- package/lib/stream/createStreamWorkerCode.d.ts.map +1 -0
- package/lib/stream/createStreamWorkerCode.js +152 -0
- package/lib/stream/toStreamData.d.ts +4 -0
- package/lib/stream/toStreamData.d.ts.map +1 -0
- package/lib/stream/toStreamData.js +61 -0
- package/lib/task/mapCreateAgentTaskParams.d.ts +18 -0
- package/lib/task/mapCreateAgentTaskParams.d.ts.map +1 -0
- package/lib/task/mapCreateAgentTaskParams.js +84 -0
- package/lib/task/progressItems.d.ts +5 -0
- package/lib/task/progressItems.d.ts.map +1 -0
- package/lib/task/progressItems.js +19 -0
- package/lib/task/taskReducer.d.ts +7 -0
- package/lib/task/taskReducer.d.ts.map +1 -0
- package/lib/task/taskReducer.js +89 -0
- package/lib/task/types.d.ts +40 -0
- package/lib/task/types.d.ts.map +1 -0
- package/lib/task/types.js +1 -0
- package/lib/types/AgentTask.d.ts +17 -7
- package/lib/types/AgentTask.d.ts.map +1 -1
- package/lib/types/AgentTask.js +1 -9
- package/lib/types/AgentTaskDto.d.ts +11 -0
- package/lib/types/AgentTaskDto.d.ts.map +1 -0
- package/lib/types/AgentTaskDto.js +11 -0
- package/lib/types/CreateAgentTaskApiResponse.d.ts +11 -0
- package/lib/types/CreateAgentTaskApiResponse.d.ts.map +1 -0
- package/lib/types/CreateAgentTaskApiResponse.js +1 -0
- package/lib/types/CreateAgentTaskFileDownloadLinkResult.d.ts +14 -0
- package/lib/types/CreateAgentTaskFileDownloadLinkResult.d.ts.map +1 -0
- package/lib/types/CreateAgentTaskFileDownloadLinkResult.js +1 -0
- package/lib/types/CreateAgentTaskParams.d.ts +47 -0
- package/lib/types/CreateAgentTaskParams.d.ts.map +1 -0
- package/lib/types/CreateAgentTaskParams.js +1 -0
- package/lib/types/CreateAgentTaskResponse.d.ts +17 -3
- package/lib/types/CreateAgentTaskResponse.d.ts.map +1 -1
- package/lib/types/StreamCache.d.ts +7 -0
- package/lib/types/StreamCache.d.ts.map +1 -0
- package/lib/types/StreamCache.js +1 -0
- package/lib/types/StreamData.d.ts +26 -0
- package/lib/types/StreamData.d.ts.map +1 -0
- package/lib/types/StreamData.js +1 -0
- package/lib/types/index.d.ts +6 -0
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/index.js +6 -0
- package/lib/utils/base64Decode.d.ts +6 -0
- package/lib/utils/base64Decode.d.ts.map +1 -0
- package/lib/utils/base64Decode.js +12 -0
- package/lib/utils/parseAgentTaskFileIdFromFencyFileHref.d.ts +8 -0
- package/lib/utils/parseAgentTaskFileIdFromFencyFileHref.d.ts.map +1 -0
- package/lib/utils/parseAgentTaskFileIdFromFencyFileHref.js +43 -0
- package/lib/utils/version.js +1 -1
- package/package.json +15 -3
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
import type { AgentTaskEventData } from '../AgentTaskEventData';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
/** Zod schema matching {@link AgentTaskEventData}; objects use `.passthrough()` for forward-compatible extra fields. @public */
|
|
4
|
+
export declare const AgentTaskEventDataSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
5
|
+
taskType: z.ZodLiteral<"StreamingChatCompletion">;
|
|
6
|
+
eventType: z.ZodLiteral<"Text">;
|
|
7
|
+
text: z.ZodString;
|
|
8
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
9
|
+
taskType: z.ZodLiteral<"StreamingChatCompletion">;
|
|
10
|
+
eventType: z.ZodLiteral<"Completed">;
|
|
11
|
+
response: z.ZodObject<{
|
|
12
|
+
textResponse: z.ZodString;
|
|
13
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
14
|
+
role: z.ZodEnum<{
|
|
15
|
+
SYSTEM: "SYSTEM";
|
|
16
|
+
USER: "USER";
|
|
17
|
+
ASSISTANT: "ASSISTANT";
|
|
18
|
+
}>;
|
|
19
|
+
content: z.ZodString;
|
|
20
|
+
}, z.core.$loose>>;
|
|
21
|
+
}, z.core.$loose>;
|
|
22
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
23
|
+
taskType: z.ZodLiteral<"StreamingChatCompletion">;
|
|
24
|
+
eventType: z.ZodLiteral<"Error">;
|
|
25
|
+
message: z.ZodString;
|
|
26
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
27
|
+
taskType: z.ZodLiteral<"StructuredChatCompletion">;
|
|
28
|
+
eventType: z.ZodLiteral<"Completed">;
|
|
29
|
+
response: z.ZodObject<{
|
|
30
|
+
jsonResponse: z.ZodString;
|
|
31
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
32
|
+
role: z.ZodEnum<{
|
|
33
|
+
SYSTEM: "SYSTEM";
|
|
34
|
+
USER: "USER";
|
|
35
|
+
ASSISTANT: "ASSISTANT";
|
|
36
|
+
}>;
|
|
37
|
+
content: z.ZodString;
|
|
38
|
+
}, z.core.$loose>>;
|
|
39
|
+
}, z.core.$loose>;
|
|
40
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
41
|
+
taskType: z.ZodLiteral<"StructuredChatCompletion">;
|
|
42
|
+
eventType: z.ZodLiteral<"Error">;
|
|
43
|
+
message: z.ZodString;
|
|
44
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
45
|
+
taskType: z.ZodLiteral<"MemoryChat">;
|
|
46
|
+
eventType: z.ZodLiteral<"Text">;
|
|
47
|
+
text: z.ZodString;
|
|
48
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
49
|
+
taskType: z.ZodLiteral<"MemoryChat">;
|
|
50
|
+
eventType: z.ZodLiteral<"Thinking">;
|
|
51
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
52
|
+
taskType: z.ZodLiteral<"MemoryChat">;
|
|
53
|
+
eventType: z.ZodLiteral<"Search">;
|
|
54
|
+
queryDescription: z.ZodString;
|
|
55
|
+
memories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
56
|
+
memoryId: z.ZodString;
|
|
57
|
+
memoryTitle: z.ZodString;
|
|
58
|
+
}, z.core.$loose>>>;
|
|
59
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
60
|
+
taskType: z.ZodLiteral<"MemoryChat">;
|
|
61
|
+
eventType: z.ZodLiteral<"FindMemories">;
|
|
62
|
+
titles: z.ZodArray<z.ZodString>;
|
|
63
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
64
|
+
taskType: z.ZodLiteral<"MemoryChat">;
|
|
65
|
+
eventType: z.ZodLiteral<"FindMemoriesResult">;
|
|
66
|
+
memories: z.ZodArray<z.ZodObject<{
|
|
67
|
+
memoryId: z.ZodString;
|
|
68
|
+
memoryTitle: z.ZodString;
|
|
69
|
+
}, z.core.$loose>>;
|
|
70
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
71
|
+
taskType: z.ZodLiteral<"MemoryChat">;
|
|
72
|
+
eventType: z.ZodLiteral<"ScrapeWebsites">;
|
|
73
|
+
input: z.ZodObject<{
|
|
74
|
+
query: z.ZodString;
|
|
75
|
+
urls: z.ZodArray<z.ZodString>;
|
|
76
|
+
}, z.core.$loose>;
|
|
77
|
+
results: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
78
|
+
url: z.ZodString;
|
|
79
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
80
|
+
downloading: "downloading";
|
|
81
|
+
downloaded: "downloaded";
|
|
82
|
+
analyzing: "analyzing";
|
|
83
|
+
summarizing: "summarizing";
|
|
84
|
+
}>>;
|
|
85
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
86
|
+
error: z.ZodOptional<z.ZodString>;
|
|
87
|
+
}, z.core.$loose>>>;
|
|
88
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
89
|
+
taskType: z.ZodLiteral<"MemoryChat">;
|
|
90
|
+
eventType: z.ZodLiteral<"GoogleSearch">;
|
|
91
|
+
input: z.ZodObject<{
|
|
92
|
+
query: z.ZodString;
|
|
93
|
+
countryCode: z.ZodOptional<z.ZodString>;
|
|
94
|
+
}, z.core.$loose>;
|
|
95
|
+
results: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
96
|
+
rank: z.ZodNumber;
|
|
97
|
+
title: z.ZodString;
|
|
98
|
+
link: z.ZodString;
|
|
99
|
+
description: z.ZodString;
|
|
100
|
+
}, z.core.$loose>>>;
|
|
101
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
102
|
+
taskType: z.ZodLiteral<"MemoryChat">;
|
|
103
|
+
eventType: z.ZodLiteral<"SearchMemoryChunks">;
|
|
104
|
+
input: z.ZodObject<{
|
|
105
|
+
queryDescription: z.ZodString;
|
|
106
|
+
memories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
107
|
+
memoryId: z.ZodString;
|
|
108
|
+
memoryTitle: z.ZodString;
|
|
109
|
+
}, z.core.$loose>>>;
|
|
110
|
+
}, z.core.$loose>;
|
|
111
|
+
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
112
|
+
memoryId: z.ZodString;
|
|
113
|
+
memoryTitle: z.ZodString;
|
|
114
|
+
memoryTypeId: z.ZodString;
|
|
115
|
+
memoryTypeName: z.ZodString;
|
|
116
|
+
matchingChunkScore: z.ZodNumber;
|
|
117
|
+
matchingChunk: z.ZodObject<{
|
|
118
|
+
chunkNumber: z.ZodNumber;
|
|
119
|
+
pageNumbers: z.ZodArray<z.ZodNumber>;
|
|
120
|
+
content: z.ZodString;
|
|
121
|
+
}, z.core.$loose>;
|
|
122
|
+
chunks: z.ZodArray<z.ZodObject<{
|
|
123
|
+
chunkNumber: z.ZodNumber;
|
|
124
|
+
pageNumbers: z.ZodArray<z.ZodNumber>;
|
|
125
|
+
content: z.ZodString;
|
|
126
|
+
relation: z.ZodEnum<{
|
|
127
|
+
MATCH: "MATCH";
|
|
128
|
+
CONTEXT_BEFORE: "CONTEXT_BEFORE";
|
|
129
|
+
CONTEXT_AFTER: "CONTEXT_AFTER";
|
|
130
|
+
}>;
|
|
131
|
+
}, z.core.$loose>>;
|
|
132
|
+
}, z.core.$loose>>>;
|
|
133
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
134
|
+
taskType: z.ZodLiteral<"MemoryChat">;
|
|
135
|
+
eventType: z.ZodLiteral<"FindSources">;
|
|
136
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
137
|
+
taskType: z.ZodLiteral<"MemoryChat">;
|
|
138
|
+
eventType: z.ZodLiteral<"ExploreMemories">;
|
|
139
|
+
memories: z.ZodArray<z.ZodObject<{
|
|
140
|
+
memoryId: z.ZodString;
|
|
141
|
+
memoryTitle: z.ZodString;
|
|
142
|
+
result: z.ZodOptional<z.ZodString>;
|
|
143
|
+
error: z.ZodOptional<z.ZodString>;
|
|
144
|
+
}, z.core.$loose>>;
|
|
145
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
146
|
+
taskType: z.ZodLiteral<"MemoryChat">;
|
|
147
|
+
eventType: z.ZodLiteral<"ChunkResults">;
|
|
148
|
+
items: z.ZodArray<z.ZodObject<{
|
|
149
|
+
memoryId: z.ZodString;
|
|
150
|
+
memoryTitle: z.ZodString;
|
|
151
|
+
memoryTypeId: z.ZodString;
|
|
152
|
+
memoryTypeName: z.ZodString;
|
|
153
|
+
matchingChunkScore: z.ZodNumber;
|
|
154
|
+
matchingChunk: z.ZodObject<{
|
|
155
|
+
chunkNumber: z.ZodNumber;
|
|
156
|
+
pageNumbers: z.ZodArray<z.ZodNumber>;
|
|
157
|
+
content: z.ZodString;
|
|
158
|
+
}, z.core.$loose>;
|
|
159
|
+
chunks: z.ZodArray<z.ZodObject<{
|
|
160
|
+
chunkNumber: z.ZodNumber;
|
|
161
|
+
pageNumbers: z.ZodArray<z.ZodNumber>;
|
|
162
|
+
content: z.ZodString;
|
|
163
|
+
relation: z.ZodEnum<{
|
|
164
|
+
MATCH: "MATCH";
|
|
165
|
+
CONTEXT_BEFORE: "CONTEXT_BEFORE";
|
|
166
|
+
CONTEXT_AFTER: "CONTEXT_AFTER";
|
|
167
|
+
}>;
|
|
168
|
+
}, z.core.$loose>>;
|
|
169
|
+
}, z.core.$loose>>;
|
|
170
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
171
|
+
taskType: z.ZodLiteral<"MemoryChat">;
|
|
172
|
+
eventType: z.ZodLiteral<"SourcesResult">;
|
|
173
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
174
|
+
memoryId: z.ZodString;
|
|
175
|
+
memoryTitle: z.ZodString;
|
|
176
|
+
memoryTypeId: z.ZodString;
|
|
177
|
+
memoryTypeName: z.ZodString;
|
|
178
|
+
pageNumbers: z.ZodArray<z.ZodNumber>;
|
|
179
|
+
}, z.core.$loose>>;
|
|
180
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
181
|
+
taskType: z.ZodLiteral<"MemoryChat">;
|
|
182
|
+
eventType: z.ZodLiteral<"GenerateReportSetup">;
|
|
183
|
+
userRequest: z.ZodString;
|
|
184
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
185
|
+
taskType: z.ZodLiteral<"MemoryChat">;
|
|
186
|
+
eventType: z.ZodLiteral<"GenerateReportExporting">;
|
|
187
|
+
fileCount: z.ZodNumber;
|
|
188
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
189
|
+
taskType: z.ZodLiteral<"MemoryChat">;
|
|
190
|
+
eventType: z.ZodLiteral<"GenerateReportRunCode">;
|
|
191
|
+
title: z.ZodString;
|
|
192
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
193
|
+
taskType: z.ZodLiteral<"MemoryChat">;
|
|
194
|
+
eventType: z.ZodLiteral<"GenerateReportRunCommand">;
|
|
195
|
+
title: z.ZodString;
|
|
196
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
197
|
+
taskType: z.ZodLiteral<"MemoryChat">;
|
|
198
|
+
eventType: z.ZodLiteral<"GenerateReportAssembling">;
|
|
199
|
+
reportTitle: z.ZodString;
|
|
200
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
201
|
+
taskType: z.ZodLiteral<"MemoryChat">;
|
|
202
|
+
eventType: z.ZodLiteral<"GenerateReportCompleted">;
|
|
203
|
+
reportTitle: z.ZodString;
|
|
204
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
205
|
+
taskType: z.ZodLiteral<"MemoryChat">;
|
|
206
|
+
eventType: z.ZodLiteral<"Completed">;
|
|
207
|
+
response: z.ZodObject<{
|
|
208
|
+
textResponse: z.ZodString;
|
|
209
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
210
|
+
memoryId: z.ZodString;
|
|
211
|
+
memoryTitle: z.ZodString;
|
|
212
|
+
memoryTypeId: z.ZodString;
|
|
213
|
+
memoryTypeName: z.ZodString;
|
|
214
|
+
pageNumbers: z.ZodArray<z.ZodNumber>;
|
|
215
|
+
}, z.core.$loose>>;
|
|
216
|
+
}, z.core.$loose>;
|
|
217
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
218
|
+
taskType: z.ZodLiteral<"MemoryChat">;
|
|
219
|
+
eventType: z.ZodLiteral<"Error">;
|
|
220
|
+
message: z.ZodString;
|
|
221
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
222
|
+
taskType: z.ZodLiteral<"MemorySearch">;
|
|
223
|
+
eventType: z.ZodLiteral<"GeneratingQueries">;
|
|
224
|
+
memoryTypes: z.ZodArray<z.ZodObject<{
|
|
225
|
+
memoryTypeId: z.ZodString;
|
|
226
|
+
memoryTypeName: z.ZodString;
|
|
227
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
228
|
+
reasoningCompleted: z.ZodOptional<z.ZodBoolean>;
|
|
229
|
+
queries: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
230
|
+
query: z.ZodString;
|
|
231
|
+
}, z.core.$loose>>>;
|
|
232
|
+
}, z.core.$loose>>;
|
|
233
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
234
|
+
taskType: z.ZodLiteral<"MemorySearch">;
|
|
235
|
+
eventType: z.ZodLiteral<"ExploreQueries">;
|
|
236
|
+
queries: z.ZodArray<z.ZodObject<{
|
|
237
|
+
query: z.ZodString;
|
|
238
|
+
memoryTypeId: z.ZodString;
|
|
239
|
+
memoryTypeName: z.ZodString;
|
|
240
|
+
result: z.ZodOptional<z.ZodObject<{
|
|
241
|
+
numberOfChunks: z.ZodNumber;
|
|
242
|
+
highestChunkScore: z.ZodNumber;
|
|
243
|
+
items: z.ZodArray<z.ZodObject<{
|
|
244
|
+
memoryId: z.ZodString;
|
|
245
|
+
memoryTitle: z.ZodString;
|
|
246
|
+
memoryTypeId: z.ZodString;
|
|
247
|
+
memoryTypeName: z.ZodString;
|
|
248
|
+
matchingChunkScore: z.ZodNumber;
|
|
249
|
+
matchingChunk: z.ZodObject<{
|
|
250
|
+
chunkNumber: z.ZodNumber;
|
|
251
|
+
pageNumbers: z.ZodArray<z.ZodNumber>;
|
|
252
|
+
content: z.ZodString;
|
|
253
|
+
}, z.core.$loose>;
|
|
254
|
+
chunks: z.ZodArray<z.ZodObject<{
|
|
255
|
+
chunkNumber: z.ZodNumber;
|
|
256
|
+
pageNumbers: z.ZodArray<z.ZodNumber>;
|
|
257
|
+
content: z.ZodString;
|
|
258
|
+
relation: z.ZodEnum<{
|
|
259
|
+
MATCH: "MATCH";
|
|
260
|
+
CONTEXT_BEFORE: "CONTEXT_BEFORE";
|
|
261
|
+
CONTEXT_AFTER: "CONTEXT_AFTER";
|
|
262
|
+
}>;
|
|
263
|
+
}, z.core.$loose>>;
|
|
264
|
+
}, z.core.$loose>>;
|
|
265
|
+
}, z.core.$loose>>;
|
|
266
|
+
error: z.ZodOptional<z.ZodString>;
|
|
267
|
+
}, z.core.$loose>>;
|
|
268
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
269
|
+
taskType: z.ZodLiteral<"MemorySearch">;
|
|
270
|
+
eventType: z.ZodLiteral<"SearchMemoryTypes">;
|
|
271
|
+
memoryTypes: z.ZodArray<z.ZodObject<{
|
|
272
|
+
memoryTypeId: z.ZodString;
|
|
273
|
+
memoryTypeName: z.ZodString;
|
|
274
|
+
result: z.ZodOptional<z.ZodObject<{
|
|
275
|
+
numberOfChunks: z.ZodNumber;
|
|
276
|
+
highestChunkScore: z.ZodNumber;
|
|
277
|
+
}, z.core.$loose>>;
|
|
278
|
+
error: z.ZodOptional<z.ZodString>;
|
|
279
|
+
}, z.core.$loose>>;
|
|
280
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
281
|
+
taskType: z.ZodLiteral<"MemorySearch">;
|
|
282
|
+
eventType: z.ZodLiteral<"Completed">;
|
|
283
|
+
response: z.ZodObject<{
|
|
284
|
+
query: z.ZodString;
|
|
285
|
+
items: z.ZodArray<z.ZodObject<{
|
|
286
|
+
memoryId: z.ZodString;
|
|
287
|
+
memoryTitle: z.ZodString;
|
|
288
|
+
memoryTypeId: z.ZodString;
|
|
289
|
+
memoryTypeName: z.ZodString;
|
|
290
|
+
matchingChunkScore: z.ZodNumber;
|
|
291
|
+
matchingChunk: z.ZodObject<{
|
|
292
|
+
chunkNumber: z.ZodNumber;
|
|
293
|
+
pageNumbers: z.ZodArray<z.ZodNumber>;
|
|
294
|
+
content: z.ZodString;
|
|
295
|
+
}, z.core.$loose>;
|
|
296
|
+
chunks: z.ZodArray<z.ZodObject<{
|
|
297
|
+
chunkNumber: z.ZodNumber;
|
|
298
|
+
pageNumbers: z.ZodArray<z.ZodNumber>;
|
|
299
|
+
content: z.ZodString;
|
|
300
|
+
relation: z.ZodEnum<{
|
|
301
|
+
MATCH: "MATCH";
|
|
302
|
+
CONTEXT_BEFORE: "CONTEXT_BEFORE";
|
|
303
|
+
CONTEXT_AFTER: "CONTEXT_AFTER";
|
|
304
|
+
}>;
|
|
305
|
+
}, z.core.$loose>>;
|
|
306
|
+
}, z.core.$loose>>;
|
|
307
|
+
}, z.core.$loose>;
|
|
308
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
309
|
+
taskType: z.ZodLiteral<"MemorySearch">;
|
|
310
|
+
eventType: z.ZodLiteral<"Error">;
|
|
311
|
+
message: z.ZodString;
|
|
312
|
+
}, z.core.$loose>]>;
|
|
313
|
+
/** @public */
|
|
314
|
+
export declare function parseAgentTaskEventData(raw: unknown): AgentTaskEventData | null;
|
|
315
|
+
//# sourceMappingURL=AgentTaskEventDataSchemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgentTaskEventDataSchemas.d.ts","sourceRoot":"","sources":["../../src/parsing/AgentTaskEventDataSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AAC/D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AA0avB,gIAAgI;AAChI,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBA+BnC,CAAA;AAEF,cAAc;AACd,wBAAgB,uBAAuB,CACnC,GAAG,EAAE,OAAO,GACb,kBAAkB,GAAG,IAAI,CAW3B"}
|