@fencyai/js 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.
@@ -1,51 +1,83 @@
1
- export type AgentTaskEventData = {
2
- type: 'GenericAgentTaskFinalResponse';
1
+ export type GenericAgentTaskEvents = {
2
+ taskType: 'GenericAgentTask';
3
+ eventType: 'FinalResponse';
3
4
  response: string;
4
5
  } | {
5
- type: 'GenericAgentTaskExecution';
6
+ taskType: 'GenericAgentTask';
7
+ eventType: 'Execution';
6
8
  title: string;
7
9
  } | {
8
- type: 'GenericAgentTaskReasoning';
10
+ taskType: 'GenericAgentTask';
11
+ eventType: 'Reasoning';
9
12
  title: string;
10
13
  reasoning: string;
11
14
  } | {
12
- type: 'GenericAgentTaskCompleted';
15
+ taskType: 'GenericAgentTask';
16
+ eventType: 'Completed';
13
17
  response: string;
14
- } | {
15
- type: 'StreamingChatCompletionText';
18
+ };
19
+ export type StreamingChatCompletionEvents = {
20
+ taskType: 'StreamingChatCompletion';
21
+ eventType: 'Text';
16
22
  text: string;
17
23
  } | {
18
- type: 'StreamingChatCompletionCompleted';
24
+ taskType: 'StreamingChatCompletion';
25
+ eventType: 'Completed';
19
26
  messages: {
20
27
  role: 'user' | 'assistant' | 'system';
21
28
  content: string;
22
29
  }[];
23
- } | {
24
- type: 'StructuredChatCompletionJson';
30
+ };
31
+ export type StructuredChatCompletionEvents = {
32
+ taskType: 'StructuredChatCompletion';
33
+ eventType: 'Json';
25
34
  json: any;
26
35
  } | {
27
- type: 'StructuredChatCompletionCompleted';
36
+ taskType: 'StructuredChatCompletion';
37
+ eventType: 'Completed';
28
38
  messages: {
29
39
  role: 'user' | 'assistant' | 'system';
30
40
  content: any;
31
41
  }[];
32
- } | {
33
- type: 'StreamingMemoryTypeChatCompletionText';
42
+ };
43
+ export type StreamingMemoryTypeChatCompletionEvents = {
44
+ taskType: 'StreamingMemoryTypeChatCompletion';
45
+ eventType: 'Text';
34
46
  text: string;
35
47
  } | {
36
- type: 'StreamingMemoryTypeChatCompletionSearch';
48
+ taskType: 'StreamingMemoryTypeChatCompletion';
49
+ eventType: 'Search';
37
50
  queryDescription: string;
38
51
  } | {
39
- type: 'StreamingMemoryTypeChatCompletionFindSources';
52
+ taskType: 'StreamingMemoryTypeChatCompletion';
53
+ eventType: 'FindSources';
54
+ } | {
55
+ taskType: 'StreamingMemoryTypeChatCompletion';
56
+ eventType: 'ExploreMemoryStart';
57
+ memoryId: string;
58
+ memoryTitle: string;
59
+ } | {
60
+ taskType: 'StreamingMemoryTypeChatCompletion';
61
+ eventType: 'ExploreMemoryResult';
62
+ memoryId: string;
63
+ memoryTitle: string;
64
+ result: string;
65
+ } | {
66
+ taskType: 'StreamingMemoryTypeChatCompletion';
67
+ eventType: 'ExploreMemoryError';
68
+ memoryId: string;
69
+ memoryTitle: string;
40
70
  } | {
41
- type: 'StreamingMemoryTypeChatCompletionSourcesResult';
71
+ taskType: 'StreamingMemoryTypeChatCompletion';
72
+ eventType: 'SourcesResult';
42
73
  sources: {
43
74
  memoryId: string;
44
75
  memoryTitle: string;
45
76
  pageNumbers: number[];
46
77
  }[];
47
78
  } | {
48
- type: 'StreamingMemoryTypeChatCompletionCompleted';
79
+ taskType: 'StreamingMemoryTypeChatCompletion';
80
+ eventType: 'Completed';
49
81
  text: string;
50
82
  sources: {
51
83
  memoryId: string;
@@ -53,3 +85,4 @@ export type AgentTaskEventData = {
53
85
  pageNumbers: number[];
54
86
  }[];
55
87
  };
88
+ export type AgentTaskEventData = GenericAgentTaskEvents | StreamingChatCompletionEvents | StructuredChatCompletionEvents | StreamingMemoryTypeChatCompletionEvents;
@@ -1,7 +1,7 @@
1
1
  // Browser-compatible version utility
2
2
  // The version is set at build time and can be overridden if needed
3
3
  // Build-time version constant - this should be updated during the build process
4
- const SDK_VERSION = '0.1.117';
4
+ const SDK_VERSION = '0.1.118';
5
5
  // Allow runtime override if needed
6
6
  let versionOverride = null;
7
7
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fencyai/js",
3
- "version": "0.1.119",
3
+ "version": "0.1.120",
4
4
  "description": "> TODO: description",
5
5
  "author": "staklau <steinaageklaussen@gmail.com>",
6
6
  "homepage": "",
@@ -42,5 +42,5 @@
42
42
  "ts-jest": "^29.1.1",
43
43
  "typescript": "^5.3.3"
44
44
  },
45
- "gitHead": "1c8f351b3114352982aa61f885b7050953bbe0ab"
45
+ "gitHead": "8dd03f23843e6cef1df268b1f8a607520d211f71"
46
46
  }