agent-accelerator 0.6.5 → 0.6.6
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 +0 -2
- package/package.json +1 -1
- package/src/agent/agent.ts +97 -670
- package/src/agent/architecture.md +4 -1
- package/src/agent/loop.ts +208 -213
- package/src/agent/named-sessions.ts +93 -0
- package/src/agent/options.ts +166 -0
- package/src/agent/run-control.ts +248 -0
- package/src/index.ts +2 -2
- package/src/providers/google.ts +1 -2
- package/src/streaming/event-stream.ts +1 -1
- package/src/types/agent.ts +0 -2
- package/src/utils/headers.ts +1 -1
package/README.md
CHANGED
|
@@ -173,7 +173,6 @@ Use `ContentPart[]` when sending images, audio, or video alongside text.
|
|
|
173
173
|
| `onDelta(delta, event)` | Called for each text chunk. Use to render answers live. |
|
|
174
174
|
| `onThinkingDelta(delta, event)` | Called for each reasoning chunk. Use to render reasoning separately. |
|
|
175
175
|
| `onEvent(event)` | Called for every event: `text_delta`, `thinking_delta`, `tool_call_complete`, `tool_result`, `subagent_complete`, `subagent_delta`, `usage`, `done`, and `error`. |
|
|
176
|
-
| `wrapThinking` | Wraps reasoning as `<think>\n...\n</think>\n`, allowing UIs to render it without maintaining separate state. |
|
|
177
176
|
| `onTurn(turn)` | Called after every model/tool turn with `{ turns, text?, thinking?, toolCalls?, toolResults? }`. Drives sub-agent step logs and persistence. |
|
|
178
177
|
| `additionalContext` | Added only to the current user turn. Keeps the system prompt stable for better caching. |
|
|
179
178
|
| `sessionId` | Per-run session override. |
|
|
@@ -188,7 +187,6 @@ Use `ContentPart[]` when sending images, audio, or video alongside text.
|
|
|
188
187
|
```ts
|
|
189
188
|
const res = await agent.run("Design an append-only log", {
|
|
190
189
|
stream: true,
|
|
191
|
-
wrapThinking: true,
|
|
192
190
|
onThinkingDelta: (d) => process.stdout.write(d),
|
|
193
191
|
onDelta: (d) => process.stdout.write(d),
|
|
194
192
|
onEvent: (e) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-accelerator",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.6",
|
|
4
4
|
"description": "High-performance SDK for AI agents with a unified API across AI providers. Optimized for high cache hit rates, observability, and seamless agent orchestration. Built to power production-grade agentic systems and harnesses for teams at any scale.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Sashvat Bharat",
|