zidane 1.5.0 → 1.6.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/README.md +18 -14
- package/dist/agent-DVvuhEN-.d.ts +671 -0
- package/dist/{chunk-PRNQ7DXE.js → chunk-3K5D27BF.js} +20 -59
- package/dist/chunk-7V33E7LT.js +32 -0
- package/dist/chunk-CFLC2I7D.js +8 -0
- package/dist/{chunk-XMFQK35S.js → chunk-VRAZJES3.js} +178 -271
- package/dist/{chunk-ZH2KFHLB.js → chunk-XT7QBZ47.js} +6 -6
- package/dist/{chunk-26LIQARN.js → chunk-YTZOORAP.js} +1 -10
- package/dist/harnesses.d.ts +2 -6
- package/dist/harnesses.js +4 -6
- package/dist/index.d.ts +21 -30
- package/dist/index.js +17 -21
- package/dist/mcp.d.ts +2 -6
- package/dist/mcp.js +1 -4
- package/dist/providers.d.ts +4 -82
- package/dist/providers.js +24 -1
- package/dist/sandbox-C08DQPTu.d.ts +28 -0
- package/dist/session.d.ts +4 -193
- package/dist/session.js +1 -2
- package/dist/skills.d.ts +2 -2
- package/dist/skills.js +2 -3
- package/dist/{spawn-MUlKj85h.d.ts → spawn-DJZZ9ZWw.d.ts} +1 -2
- package/dist/tools.d.ts +5 -18
- package/dist/tools.js +3 -6
- package/dist/{types-D8fzooXc.d.ts → types-CyRzBgm0.d.ts} +1 -1
- package/dist/types.d.ts +7 -0
- package/dist/types.js +0 -0
- package/dist/validation-CwSuvOKf.d.ts +11 -0
- package/package.json +12 -1
- package/dist/agent-DZDheE1c.d.ts +0 -271
- package/dist/chunk-PNKVD2UK.js +0 -26
- package/dist/chunk-QPYZR2QM.js +0 -21
- package/dist/types-CskNDruh.d.ts +0 -110
package/README.md
CHANGED
|
@@ -35,11 +35,12 @@ All options on `createAgent`:
|
|
|
35
35
|
createAgent({
|
|
36
36
|
provider, // required: LLM provider
|
|
37
37
|
harness: basic, // tool set (default: noTools)
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
38
|
+
behavior: { // agent-level defaults
|
|
39
|
+
toolExecution: 'sequential', // or 'parallel'
|
|
40
|
+
maxTurns: 50, // max loop iterations
|
|
41
|
+
maxTokens: 16384, // max tokens per LLM response
|
|
42
|
+
thinkingBudget: 10240, // exact thinking token budget
|
|
43
|
+
},
|
|
43
44
|
execution: createProcessContext(), // where tools run
|
|
44
45
|
mcpServers: [], // MCP tool servers
|
|
45
46
|
session, // session for persistence
|
|
@@ -51,19 +52,22 @@ All options on `agent.run()`:
|
|
|
51
52
|
|
|
52
53
|
```ts
|
|
53
54
|
await agent.run({
|
|
54
|
-
prompt: 'your task',
|
|
55
|
+
prompt: 'your task', // required
|
|
55
56
|
model: 'claude-opus-4-6',
|
|
56
57
|
system: 'be concise',
|
|
57
|
-
thinking: 'medium',
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
58
|
+
thinking: 'medium', // off | minimal | low | medium | high
|
|
59
|
+
behavior: { // per-run overrides
|
|
60
|
+
maxTurns: 10,
|
|
61
|
+
maxTokens: 4096,
|
|
62
|
+
thinkingBudget: 8192,
|
|
63
|
+
},
|
|
64
|
+
tools: {}, // override tools for this run ({} = no tools)
|
|
65
|
+
images: [], // base64 images
|
|
62
66
|
signal: abortController.signal,
|
|
63
67
|
})
|
|
64
68
|
```
|
|
65
69
|
|
|
66
|
-
|
|
70
|
+
Precedence: `run.behavior` > `agent.behavior` > `harness.behavior` > hardcoded defaults.
|
|
67
71
|
|
|
68
72
|
## CLI
|
|
69
73
|
|
|
@@ -139,10 +143,10 @@ const harness = defineHarness({
|
|
|
139
143
|
})
|
|
140
144
|
```
|
|
141
145
|
|
|
142
|
-
For pure chat with no tools:
|
|
146
|
+
For pure chat with no tools, pass `tools: {}` on a specific run or use the `noTools` harness:
|
|
143
147
|
|
|
144
148
|
```ts
|
|
145
|
-
|
|
149
|
+
await agent.run({ prompt: 'just chat', tools: {} })
|
|
146
150
|
```
|
|
147
151
|
|
|
148
152
|
## Thinking
|