@or-sdk/agents 2.4.0-beta.2799.0 → 2.4.0
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/CHANGELOG.md +9 -0
- package/dist/types/types.d.ts +6 -10
- package/dist/types/types.d.ts.map +1 -1
- package/package.json +3 -2
- package/src/types.ts +6 -11
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,15 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.4.0](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/compare/@or-sdk/agents@2.3.0...@or-sdk/agents@2.4.0) (2024-06-17)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **Agents:** Update Agent model types ([faf7501](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/commit/faf7501894ed0e3b34bea5af78544bce30fdd8b6))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
6
15
|
## [2.3.0](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/compare/@or-sdk/agents@2.2.3...@or-sdk/agents@2.3.0) (2024-06-10)
|
|
7
16
|
|
|
8
17
|
|
package/dist/types/types.d.ts
CHANGED
|
@@ -20,12 +20,12 @@ export type AgentsConfig = {
|
|
|
20
20
|
feature?: string;
|
|
21
21
|
};
|
|
22
22
|
export type AgentModelOptions = {
|
|
23
|
-
temperature
|
|
24
|
-
maxTokens
|
|
25
|
-
frequencyPenalty
|
|
26
|
-
presencePenalty
|
|
27
|
-
modelName
|
|
28
|
-
provider
|
|
23
|
+
temperature: number;
|
|
24
|
+
maxTokens: number;
|
|
25
|
+
frequencyPenalty: number;
|
|
26
|
+
presencePenalty: number;
|
|
27
|
+
modelName: string;
|
|
28
|
+
provider: string;
|
|
29
29
|
};
|
|
30
30
|
export type AgentActivity = {
|
|
31
31
|
kind: ActivityKind;
|
|
@@ -54,10 +54,6 @@ export type Agent = {
|
|
|
54
54
|
createdAt: string | Date;
|
|
55
55
|
updatedAt: string | Date;
|
|
56
56
|
primer: AgentActivity[];
|
|
57
|
-
collections?: {
|
|
58
|
-
id: string;
|
|
59
|
-
name: string;
|
|
60
|
-
}[];
|
|
61
57
|
};
|
|
62
58
|
export type UpdateAgent = Partial<Omit<Agent, 'id' | 'createdAt' | 'updatedAt' | 'accountId' | 'typeDefs'>>;
|
|
63
59
|
export type CreateAgent = Pick<Agent, 'name'> & UpdateAgent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAKjD,oBAAY,YAAY;IAEtB,WAAW,gBAAgB;IAE3B,OAAO,YAAY;IAEnB,MAAM,WAAW;CAClB;AAKD,oBAAY,UAAU;IAEpB,KAAK,UAAU;IAGf,QAAQ,aAAa;CACtB;AAKD,MAAM,MAAM,WAAW,GAAG;IAIxB,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB,CAAC;AAKF,MAAM,MAAM,YAAY,GAAG;IAIzB,KAAK,EAAE,KAAK,CAAC;IAKb,YAAY,CAAC,EAAE,MAAM,CAAC;IAKtB,SAAS,CAAC,EAAE,MAAM,CAAC;IAKnB,UAAU,CAAC,EAAE,MAAM,CAAC;IAKpB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAKF,MAAM,MAAM,iBAAiB,GAAG;IAI9B,WAAW,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,KAAK,EAAE,UAA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;YACJ,CAAC,UAAU,EAAE,MAAM,GAAG;gBACpB,MAAM,EAAE,MAAM,CAAC;gBACf,KAAK,EAAE,MAAM,CAAC;aACf,CAAC;SACH,CAAC;KACH,CAAC;IACF,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@or-sdk/agents",
|
|
3
|
-
"version": "2.4.0
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -40,5 +40,6 @@
|
|
|
40
40
|
},
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
43
|
-
}
|
|
43
|
+
},
|
|
44
|
+
"gitHead": "aa20bec624b010939de09796f3cd296d82d6ab46"
|
|
44
45
|
}
|
package/src/types.ts
CHANGED
|
@@ -71,32 +71,32 @@ export type AgentModelOptions = {
|
|
|
71
71
|
/**
|
|
72
72
|
* Controls the randomness of the output. Higher values may lead to more creative responses.
|
|
73
73
|
*/
|
|
74
|
-
temperature
|
|
74
|
+
temperature: number;
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
77
|
* The maximum length of the output generated by the language model.
|
|
78
78
|
*/
|
|
79
|
-
maxTokens
|
|
79
|
+
maxTokens: number;
|
|
80
80
|
|
|
81
81
|
/**
|
|
82
82
|
* Adjusts the likelihood of the model repeating the same line of thinking.
|
|
83
83
|
*/
|
|
84
|
-
frequencyPenalty
|
|
84
|
+
frequencyPenalty: number;
|
|
85
85
|
|
|
86
86
|
/**
|
|
87
87
|
* Discourages the model from using tokens already present in the text.
|
|
88
88
|
*/
|
|
89
|
-
presencePenalty
|
|
89
|
+
presencePenalty: number;
|
|
90
90
|
|
|
91
91
|
/**
|
|
92
92
|
* Specifies the name of the large language model to use.
|
|
93
93
|
*/
|
|
94
|
-
modelName
|
|
94
|
+
modelName: string;
|
|
95
95
|
|
|
96
96
|
/**
|
|
97
97
|
* Specifies the name of the provider to use for the agent.
|
|
98
98
|
*/
|
|
99
|
-
provider
|
|
99
|
+
provider: string;
|
|
100
100
|
};
|
|
101
101
|
|
|
102
102
|
/**
|
|
@@ -217,11 +217,6 @@ export type Agent = {
|
|
|
217
217
|
* A primer of historical interactions or activities for the agent, which can influence its behavior.
|
|
218
218
|
*/
|
|
219
219
|
primer: AgentActivity[];
|
|
220
|
-
|
|
221
|
-
/**
|
|
222
|
-
* Knowledge lookup collections
|
|
223
|
-
*/
|
|
224
|
-
collections?: { id: string; name: string; }[];
|
|
225
220
|
};
|
|
226
221
|
|
|
227
222
|
/**
|