@fencyai/js 0.1.192 → 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/api/createAgentTask.d.ts +2 -2
- package/lib/api/createAgentTask.d.ts.map +1 -1
- package/lib/index.d.ts +13 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +12 -1
- 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/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 +5 -0
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/index.js +5 -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/version.js +1 -1
- package/package.json +15 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CreateAgentTaskRequest } from '../types/CreateAgentTaskRequest';
|
|
2
|
-
import {
|
|
2
|
+
import { CreateAgentTaskApiResponse } from '../types/CreateAgentTaskApiResponse';
|
|
3
3
|
/**
|
|
4
4
|
* Creates an agent task.
|
|
5
5
|
* @public
|
|
@@ -10,5 +10,5 @@ export declare function createAgentTask(params: {
|
|
|
10
10
|
baseUrl: string;
|
|
11
11
|
clientToken: string;
|
|
12
12
|
streamToken: string;
|
|
13
|
-
}): Promise<
|
|
13
|
+
}): Promise<CreateAgentTaskApiResponse>;
|
|
14
14
|
//# sourceMappingURL=createAgentTask.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createAgentTask.d.ts","sourceRoot":"","sources":["../../src/api/createAgentTask.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAA;AAKxE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"createAgentTask.d.ts","sourceRoot":"","sources":["../../src/api/createAgentTask.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAA;AAKxE,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAA;AAKhF;;;GAGG;AACH,wBAAsB,eAAe,CAAC,MAAM,EAAE;IAC1C,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,sBAAsB,CAAA;IAC/B,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;CACtB,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAyDtC"}
|
package/lib/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export type { FencyInstance } from './types/FencyInstance';
|
|
|
6
6
|
export type { FencyOptions } from './types/FencyOptions';
|
|
7
7
|
export * from './types/index';
|
|
8
8
|
export { isStreamTimeoutEvent, isStreamNotFoundEvent, isAgentTaskProgressItemUpdatedEvent, } from './utils/streamEventTypes';
|
|
9
|
+
export { base64Decode } from './utils/base64Decode';
|
|
9
10
|
export { createAgentTask } from './api/createAgentTask';
|
|
10
11
|
export { createStream } from './api/createStream';
|
|
11
12
|
export { createAgentTaskFileDownloadLink } from './api/createAgentTaskFileDownloadLink';
|
|
@@ -14,7 +15,18 @@ export { parseAgentTaskFileIdFromFencyFileHref } from './utils/parseAgentTaskFil
|
|
|
14
15
|
export type { CreateAgentTaskFileDownloadLinkResult } from './types/CreateAgentTaskFileDownloadLinkResult';
|
|
15
16
|
export { isValidAgentTaskModel, agentTaskModels } from './AgentTaskModel';
|
|
16
17
|
export type { AgentTaskModel } from './AgentTaskModel';
|
|
17
|
-
export { isValidAgentTaskLanguage, agentTaskLanguages, toFullAgentTaskLanguage } from './AgentTaskLanguage';
|
|
18
|
+
export { isValidAgentTaskLanguage, agentTaskLanguages, toFullAgentTaskLanguage, } from './AgentTaskLanguage';
|
|
18
19
|
export type { AgentTaskLanguage } from './AgentTaskLanguage';
|
|
19
20
|
export type { AgentTaskEventData, MemoryChatScrapeWebsitesResultItem, MemoryChatScrapeWebsitesResultStatus, } from './AgentTaskEventData';
|
|
21
|
+
export { isAgentTaskDto, isAgentTask } from './types/AgentTaskDto';
|
|
22
|
+
export type { AgentTaskDto } from './types/AgentTaskDto';
|
|
23
|
+
export { AgentTaskEventDataSchema, parseAgentTaskEventData, } from './parsing/AgentTaskEventDataSchemas';
|
|
24
|
+
export { toStreamData } from './stream/toStreamData';
|
|
25
|
+
export { StreamEventManager } from './stream/StreamEventManager';
|
|
26
|
+
export type { Subscription } from './stream/StreamEventManager';
|
|
27
|
+
export { createStreamWorkerCode } from './stream/createStreamWorkerCode';
|
|
28
|
+
export { StreamCacheManager, STREAM_MAX_LIFETIME, DEFAULT_STREAM_REUSE_MAX_AGE, } from './stream/StreamCacheManager';
|
|
29
|
+
export type { StreamCacheManagerOptions, StreamCacheChangeListener, } from './stream/StreamCacheManager';
|
|
30
|
+
export { taskReducer, initialTaskStoreState, mapCreateAgentTaskParams, isTerminalAgentTaskEventData, shouldAppendCompletedToProgress, agentTaskErrorFromEventData, getTerminalCreateAgentTaskResponse, } from './task/taskReducer';
|
|
31
|
+
export type { TaskEvent, TaskStoreState } from './task/types';
|
|
20
32
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAC1D,YAAY,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxD,cAAc,eAAe,CAAA;AAE7B,OAAO,EACH,oBAAoB,EACpB,qBAAqB,EACrB,mCAAmC,GACtC,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAC1D,YAAY,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxD,cAAc,eAAe,CAAA;AAE7B,OAAO,EACH,oBAAoB,EACpB,qBAAqB,EACrB,mCAAmC,GACtC,MAAM,0BAA0B,CAAA;AAEjC,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAGnD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACjD,OAAO,EAAE,+BAA+B,EAAE,MAAM,uCAAuC,CAAA;AACvF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAA;AACxE,OAAO,EAAE,qCAAqC,EAAE,MAAM,+CAA+C,CAAA;AACrG,YAAY,EAAE,qCAAqC,EAAE,MAAM,+CAA+C,CAAA;AAC1G,OAAO,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AACzE,YAAY,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACtD,OAAO,EACH,wBAAwB,EACxB,kBAAkB,EAClB,uBAAuB,GAC1B,MAAM,qBAAqB,CAAA;AAC5B,YAAY,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAC5D,YAAY,EACR,kBAAkB,EAClB,kCAAkC,EAClC,oCAAoC,GACvC,MAAM,sBAAsB,CAAA;AAE7B,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAClE,YAAY,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAGxD,OAAO,EACH,wBAAwB,EACxB,uBAAuB,GAC1B,MAAM,qCAAqC,CAAA;AAG5C,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAA;AAChE,YAAY,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAA;AACxE,OAAO,EACH,kBAAkB,EAClB,mBAAmB,EACnB,4BAA4B,GAC/B,MAAM,6BAA6B,CAAA;AACpC,YAAY,EACR,yBAAyB,EACzB,yBAAyB,GAC5B,MAAM,6BAA6B,CAAA;AAGpC,OAAO,EACH,WAAW,EACX,qBAAqB,EACrB,wBAAwB,EACxB,4BAA4B,EAC5B,+BAA+B,EAC/B,2BAA2B,EAC3B,kCAAkC,GACrC,MAAM,oBAAoB,CAAA;AAC3B,YAAY,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA"}
|
package/lib/index.js
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
export { loadFency } from './loadFency';
|
|
5
5
|
export * from './types/index';
|
|
6
6
|
export { isStreamTimeoutEvent, isStreamNotFoundEvent, isAgentTaskProgressItemUpdatedEvent, } from './utils/streamEventTypes';
|
|
7
|
+
export { base64Decode } from './utils/base64Decode';
|
|
7
8
|
// api
|
|
8
9
|
export { createAgentTask } from './api/createAgentTask';
|
|
9
10
|
export { createStream } from './api/createStream';
|
|
@@ -11,4 +12,14 @@ export { createAgentTaskFileDownloadLink } from './api/createAgentTaskFileDownlo
|
|
|
11
12
|
export { FENCY_FILE_LINK_PREFIX } from './constants/fencyFileLinkPrefix';
|
|
12
13
|
export { parseAgentTaskFileIdFromFencyFileHref } from './utils/parseAgentTaskFileIdFromFencyFileHref';
|
|
13
14
|
export { isValidAgentTaskModel, agentTaskModels } from './AgentTaskModel';
|
|
14
|
-
export { isValidAgentTaskLanguage, agentTaskLanguages, toFullAgentTaskLanguage } from './AgentTaskLanguage';
|
|
15
|
+
export { isValidAgentTaskLanguage, agentTaskLanguages, toFullAgentTaskLanguage, } from './AgentTaskLanguage';
|
|
16
|
+
export { isAgentTaskDto, isAgentTask } from './types/AgentTaskDto';
|
|
17
|
+
// parsing
|
|
18
|
+
export { AgentTaskEventDataSchema, parseAgentTaskEventData, } from './parsing/AgentTaskEventDataSchemas';
|
|
19
|
+
// stream
|
|
20
|
+
export { toStreamData } from './stream/toStreamData';
|
|
21
|
+
export { StreamEventManager } from './stream/StreamEventManager';
|
|
22
|
+
export { createStreamWorkerCode } from './stream/createStreamWorkerCode';
|
|
23
|
+
export { StreamCacheManager, STREAM_MAX_LIFETIME, DEFAULT_STREAM_REUSE_MAX_AGE, } from './stream/StreamCacheManager';
|
|
24
|
+
// task state machine
|
|
25
|
+
export { taskReducer, initialTaskStoreState, mapCreateAgentTaskParams, isTerminalAgentTaskEventData, shouldAppendCompletedToProgress, agentTaskErrorFromEventData, getTerminalCreateAgentTaskResponse, } from './task/taskReducer';
|
|
@@ -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"}
|