@fencyai/react 0.1.119 → 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/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 -8
- package/dist/agent-task/data-types/StructuredChatCompletionJson.d.ts +5 -4
- package/dist/index.d.ts +1 -0
- package/dist/index.js +648 -507
- package/dist/types/CreateAgentTaskResponse.d.ts +11 -21
- package/package.json +4 -4
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { AgentTaskEventData } from '@fencyai/js';
|
|
1
2
|
import { default as React } from 'react';
|
|
2
3
|
export interface GenericAgentTaskExecutionProps {
|
|
3
|
-
data: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
4
|
+
data: Extract<AgentTaskEventData, {
|
|
5
|
+
taskType: 'GenericAgentTask';
|
|
6
|
+
eventType: 'Execution';
|
|
7
|
+
}>;
|
|
7
8
|
completed: boolean;
|
|
8
9
|
isLatest?: boolean;
|
|
9
10
|
durationSeconds?: number;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { AgentTaskEventData } from '@fencyai/js';
|
|
1
2
|
import { default as React } from 'react';
|
|
2
3
|
export interface GenericAgentTaskFinalResponseProps {
|
|
3
|
-
data: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
4
|
+
data: Extract<AgentTaskEventData, {
|
|
5
|
+
taskType: 'GenericAgentTask';
|
|
6
|
+
eventType: 'FinalResponse';
|
|
7
|
+
}>;
|
|
7
8
|
streamToken: string;
|
|
8
9
|
fetchClientToken: () => Promise<{
|
|
9
10
|
clientToken: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { AgentTaskEventData } from '@fencyai/js';
|
|
1
2
|
export interface GenericAgentTaskReasoningProps {
|
|
2
|
-
data: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
3
|
+
data: Extract<AgentTaskEventData, {
|
|
4
|
+
taskType: 'GenericAgentTask';
|
|
5
|
+
eventType: 'Reasoning';
|
|
6
|
+
}>;
|
|
7
7
|
completed: boolean;
|
|
8
8
|
isLatest?: boolean;
|
|
9
9
|
durationSeconds?: number;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AgentTaskEventData } from '@fencyai/js';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
type ExploreMemoryData = Extract<AgentTaskEventData, {
|
|
4
|
+
taskType: 'StreamingMemoryTypeChatCompletion';
|
|
5
|
+
eventType: 'ExploreMemoryStart' | 'ExploreMemoryResult' | 'ExploreMemoryError';
|
|
6
|
+
}>;
|
|
7
|
+
export interface StreamingMemoryTypeChatCompletionExploreMemoryProps {
|
|
8
|
+
data: ExploreMemoryData;
|
|
9
|
+
completed: boolean;
|
|
10
|
+
isLatest?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const StreamingMemoryTypeChatCompletionExploreMemory: React.FC<StreamingMemoryTypeChatCompletionExploreMemoryProps>;
|
|
13
|
+
export {};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { AgentTaskEventData } from '@fencyai/js';
|
|
1
2
|
import { default as React } from 'react';
|
|
2
3
|
export interface StreamingMemoryTypeChatCompletionFindSourcesProps {
|
|
3
|
-
data: {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
data: Extract<AgentTaskEventData, {
|
|
5
|
+
taskType: 'StreamingMemoryTypeChatCompletion';
|
|
6
|
+
eventType: 'FindSources';
|
|
7
|
+
}>;
|
|
6
8
|
isLatest?: boolean;
|
|
7
9
|
durationSeconds?: number;
|
|
8
10
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { AgentTaskEventData } from '@fencyai/js';
|
|
1
2
|
import { default as React } from 'react';
|
|
2
3
|
export interface StreamingMemoryTypeChatCompletionSearchProps {
|
|
3
|
-
data: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
4
|
+
data: Extract<AgentTaskEventData, {
|
|
5
|
+
taskType: 'StreamingMemoryTypeChatCompletion';
|
|
6
|
+
eventType: 'Search';
|
|
7
|
+
}>;
|
|
7
8
|
isLatest?: boolean;
|
|
8
9
|
durationSeconds?: number;
|
|
9
10
|
}
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
+
import { AgentTaskEventData } from '@fencyai/js';
|
|
1
2
|
import { default as React } from 'react';
|
|
2
3
|
export interface StreamingMemoryTypeChatCompletionSourcesResultProps {
|
|
3
|
-
data: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
memoryTitle: string;
|
|
8
|
-
pageNumbers: number[];
|
|
9
|
-
}[];
|
|
10
|
-
};
|
|
4
|
+
data: Extract<AgentTaskEventData, {
|
|
5
|
+
taskType: 'StreamingMemoryTypeChatCompletion';
|
|
6
|
+
eventType: 'SourcesResult';
|
|
7
|
+
}>;
|
|
11
8
|
onSourceClick?: (memoryId: string) => void;
|
|
12
9
|
}
|
|
13
10
|
export declare const StreamingMemoryTypeChatCompletionSourcesResult: React.FC<StreamingMemoryTypeChatCompletionSourcesResultProps>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { AgentTaskEventData } from '@fencyai/js';
|
|
1
2
|
import { default as React } from 'react';
|
|
2
3
|
export interface StructuredChatCompletionJsonProps {
|
|
3
|
-
data: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
4
|
+
data: Extract<AgentTaskEventData, {
|
|
5
|
+
taskType: 'StructuredChatCompletion';
|
|
6
|
+
eventType: 'Json';
|
|
7
|
+
}>;
|
|
7
8
|
}
|
|
8
9
|
export declare const StructuredChatCompletionJson: React.FC<StructuredChatCompletionJsonProps>;
|
package/dist/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export { StructuredChatCompletionJson } from './agent-task/data-types/Structured
|
|
|
14
14
|
export { StreamingMemoryTypeChatCompletionSearch } from './agent-task/data-types/StreamingMemoryTypeChatCompletionSearch';
|
|
15
15
|
export { StreamingMemoryTypeChatCompletionFindSources } from './agent-task/data-types/StreamingMemoryTypeChatCompletionFindSources';
|
|
16
16
|
export { StreamingMemoryTypeChatCompletionSourcesResult } from './agent-task/data-types/StreamingMemoryTypeChatCompletionSourcesResult';
|
|
17
|
+
export { StreamingMemoryTypeChatCompletionExploreMemory } from './agent-task/data-types/StreamingMemoryTypeChatCompletionExploreMemory';
|
|
17
18
|
export { ShimmeringText } from './agent-task/ShimmeringText';
|
|
18
19
|
export { FencyProvider } from './provider/FencyProvider';
|
|
19
20
|
export * from './types';
|