@zenera/gym 1.3.36 → 1.3.37
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/agents.js +6 -1
- package/package.json +4 -4
package/dist/agents.js
CHANGED
|
@@ -3,7 +3,12 @@ import { mkdirSync } from 'node:fs';
|
|
|
3
3
|
import { writeFile } from 'node:fs/promises';
|
|
4
4
|
import { join, resolve } from 'node:path';
|
|
5
5
|
export async function runAgent(opts) {
|
|
6
|
-
const runner = new AgentRunner({
|
|
6
|
+
const runner = new AgentRunner({
|
|
7
|
+
model: opts.model,
|
|
8
|
+
recordRequests: Boolean(opts.reportDir),
|
|
9
|
+
// The cache has its own answer to a provider failing: forget it, try on the next request.
|
|
10
|
+
modelRetry: { windowMs: 0 },
|
|
11
|
+
});
|
|
7
12
|
const agent = runner.agent({
|
|
8
13
|
name: opts.name,
|
|
9
14
|
instructions: opts.instructions,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zenera/gym",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.37",
|
|
4
4
|
"description": "Simulated API environments for agent training and evaluation, powered by OpenAPI and model-written generators.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"openapi",
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@apidevtools/swagger-parser": "^12.0.0",
|
|
49
|
-
"@zenera/cli": "^1.3.
|
|
50
|
-
"@zenera/neo": "^1.3.
|
|
51
|
-
"@zenera/rag": "^1.3.
|
|
49
|
+
"@zenera/cli": "^1.3.37",
|
|
50
|
+
"@zenera/neo": "^1.3.37",
|
|
51
|
+
"@zenera/rag": "^1.3.37",
|
|
52
52
|
"ajv": "^8.17.1",
|
|
53
53
|
"ajv-formats": "^3.0.1",
|
|
54
54
|
"randexp": "^0.5.3"
|