@fencyai/react 0.1.118 → 0.1.120
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/dist/agent-task/AgentTaskProgress.d.ts +1 -0
- package/dist/agent-task/data-types/GenericAgentTaskExecution.d.ts +5 -4
- package/dist/agent-task/data-types/GenericAgentTaskFinalResponse.d.ts +5 -4
- package/dist/agent-task/data-types/GenericAgentTaskReasoning.d.ts +5 -5
- package/dist/agent-task/data-types/StreamingMemoryTypeChatCompletionExploreMemory.d.ts +13 -0
- package/dist/agent-task/data-types/StreamingMemoryTypeChatCompletionFindSources.d.ts +5 -3
- package/dist/agent-task/data-types/StreamingMemoryTypeChatCompletionSearch.d.ts +5 -4
- package/dist/agent-task/data-types/StreamingMemoryTypeChatCompletionSourcesResult.d.ts +5 -7
- package/dist/agent-task/data-types/StructuredChatCompletionJson.d.ts +5 -4
- package/dist/index.d.ts +1 -0
- package/dist/index.js +714 -564
- package/dist/types/CreateAgentTaskParams.d.ts +7 -0
- package/dist/types/CreateAgentTaskResponse.d.ts +12 -15
- package/dist/types/UseAgentTasksProps.d.ts +1 -1
- package/package.json +4 -4
|
@@ -18,4 +18,11 @@ export type CreateAgentTaskParams = {
|
|
|
18
18
|
}[];
|
|
19
19
|
jsonSchema: string;
|
|
20
20
|
model: AgentTaskModel;
|
|
21
|
+
} | {
|
|
22
|
+
type: 'streamingMemoryTypeChatCompletion';
|
|
23
|
+
messages: {
|
|
24
|
+
role: 'user' | 'assistant' | 'system';
|
|
25
|
+
content: string;
|
|
26
|
+
}[];
|
|
27
|
+
model: AgentTaskModel;
|
|
21
28
|
};
|
|
@@ -1,24 +1,21 @@
|
|
|
1
|
-
import { ApiError } from '@fencyai/js';
|
|
1
|
+
import { ApiError, AgentTaskEventData } from '@fencyai/js';
|
|
2
2
|
export type CreateAgentTaskResponse = {
|
|
3
3
|
type: 'success';
|
|
4
4
|
streamId: string;
|
|
5
5
|
agentTaskId: string;
|
|
6
|
-
response: {
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
response: Extract<AgentTaskEventData, {
|
|
7
|
+
taskType: 'GenericAgentTask';
|
|
8
|
+
eventType: 'Completed';
|
|
9
9
|
} | {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
role: 'user' | 'assistant' | 'system';
|
|
13
|
-
content: string;
|
|
14
|
-
}[];
|
|
10
|
+
taskType: 'StreamingChatCompletion';
|
|
11
|
+
eventType: 'Completed';
|
|
15
12
|
} | {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
13
|
+
taskType: 'StructuredChatCompletion';
|
|
14
|
+
eventType: 'Completed';
|
|
15
|
+
} | {
|
|
16
|
+
taskType: 'StreamingMemoryTypeChatCompletion';
|
|
17
|
+
eventType: 'Completed';
|
|
18
|
+
}>;
|
|
22
19
|
} | {
|
|
23
20
|
type: 'error';
|
|
24
21
|
error: ApiError;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AgentTaskProgressItemUpdated, StreamNotFound, StreamTimeout } from './StreamData';
|
|
2
2
|
import { StreamError } from './StreamError';
|
|
3
3
|
export interface UseAgentTasksProps {
|
|
4
|
-
fetchCreateAgentTaskClientToken: (taskType: 'genericAgentTask' | 'streamingChatCompletion' | 'structuredChatCompletion') => Promise<{
|
|
4
|
+
fetchCreateAgentTaskClientToken: (taskType: 'genericAgentTask' | 'streamingChatCompletion' | 'structuredChatCompletion' | 'streamingMemoryTypeChatCompletion') => Promise<{
|
|
5
5
|
clientToken: string;
|
|
6
6
|
}>;
|
|
7
7
|
onAgentTaskProgressItemUpdated?: (streamData: AgentTaskProgressItemUpdated) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fencyai/react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.120",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "staklau <steinaageklaussen@gmail.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@microsoft/fetch-event-source": "^2.0.1"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@fencyai/js": "^0.1.
|
|
38
|
+
"@fencyai/js": "^0.1.120",
|
|
39
39
|
"@testing-library/react": "^16.3.2",
|
|
40
40
|
"@types/jest": "^29.5.11",
|
|
41
41
|
"@types/node": "^20.10.5",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"@emotion/is-prop-valid": "^1.3.0",
|
|
55
|
-
"@fencyai/js": "^0.1.
|
|
55
|
+
"@fencyai/js": "^0.1.120",
|
|
56
56
|
"@radix-ui/react-popover": "^1.1.15",
|
|
57
57
|
"motion": "^11.15.0",
|
|
58
58
|
"react": ">=16.8.0",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"optional": false
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "8dd03f23843e6cef1df268b1f8a607520d211f71"
|
|
71
71
|
}
|