@fencyai/react 0.1.115 → 0.1.116

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/index.js CHANGED
@@ -198,8 +198,8 @@ const Z = (e) => {
198
198
  streamToken: l.stream.token,
199
199
  request: {
200
200
  genericTask: i.type === "genericAgentTask" ? { query: i.query, jsonSchema: i.jsonSchema } : void 0,
201
- streamingChatCompletionTask: i.type === "streamingChatCompletion" ? { messages: i.messages } : void 0,
202
- structuredChatCompletionTask: i.type === "structuredChatCompletion" ? { messages: i.messages, jsonSchema: i.jsonSchema } : void 0
201
+ streamingChatCompletionTask: i.type === "streamingChatCompletion" ? { messages: i.messages, model: i.model } : void 0,
202
+ structuredChatCompletionTask: i.type === "structuredChatCompletion" ? { messages: i.messages, jsonSchema: i.jsonSchema, model: i.model } : void 0
203
203
  }
204
204
  });
205
205
  if (m.type === "success" && m.agentTask) {
@@ -1,3 +1,4 @@
1
+ import { AgentTaskModel } from '@fencyai/js';
1
2
  export type CreateAgentTaskParams = {
2
3
  type: 'genericAgentTask';
3
4
  query: string;
@@ -8,6 +9,7 @@ export type CreateAgentTaskParams = {
8
9
  role: 'user' | 'assistant' | 'system';
9
10
  content: string;
10
11
  }[];
12
+ model: AgentTaskModel;
11
13
  } | {
12
14
  type: 'structuredChatCompletion';
13
15
  messages: {
@@ -15,4 +17,5 @@ export type CreateAgentTaskParams = {
15
17
  content: string;
16
18
  }[];
17
19
  jsonSchema: string;
20
+ model: AgentTaskModel;
18
21
  };
@@ -1,4 +1,4 @@
1
- import { AgentTaskEventData } from './AgentTaskEventData';
1
+ import { AgentTaskEventData } from '@fencyai/js';
2
2
  export type NewChatCompletionStreamChunk = {
3
3
  type: 'NewChatCompletionStreamChunk';
4
4
  streamId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fencyai/react",
3
- "version": "0.1.115",
3
+ "version": "0.1.116",
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.115",
38
+ "@fencyai/js": "^0.1.116",
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.115",
55
+ "@fencyai/js": "^0.1.116",
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": "02edc2f3154cc93bfad70ac2df52104f1668ddd5"
70
+ "gitHead": "721924378799879a147e87ccf2a20924339bdde5"
71
71
  }
@@ -1,32 +0,0 @@
1
- export type AgentTaskEventData = {
2
- type: 'GenericAgentTaskFinalResponse';
3
- response: string;
4
- } | {
5
- type: 'GenericAgentTaskExecution';
6
- title: string;
7
- } | {
8
- type: 'GenericAgentTaskReasoning';
9
- title: string;
10
- reasoning: string;
11
- } | {
12
- type: 'GenericAgentTaskCompleted';
13
- response: string;
14
- } | {
15
- type: 'StreamingChatCompletionResponse';
16
- response: string;
17
- } | {
18
- type: 'StructuredChatCompletionResponse';
19
- response: any;
20
- } | {
21
- type: 'StreamingChatCompletionCompleted';
22
- messages: {
23
- role: 'user' | 'assistant' | 'system';
24
- content: string;
25
- }[];
26
- } | {
27
- type: 'StructuredChatCompletionCompleted';
28
- messages: {
29
- role: 'user' | 'assistant' | 'system';
30
- content: any;
31
- }[];
32
- };