@orkestrel/agent 0.0.18 → 0.0.20
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 +4 -4
- package/dist/src/core/index.cjs +1176 -836
- package/dist/src/core/index.cjs.map +1 -1
- package/dist/src/core/index.d.cts +1210 -783
- package/dist/src/core/index.d.ts +1210 -783
- package/dist/src/core/index.js +1162 -837
- package/dist/src/core/index.js.map +1 -1
- package/package.json +25 -23
package/README.md
CHANGED
|
@@ -42,18 +42,18 @@ agent.context.messages.add({ role: 'user', content: 'Say hi.' })
|
|
|
42
42
|
|
|
43
43
|
const stream = agent.stream()
|
|
44
44
|
for await (const chunk of stream.events) {
|
|
45
|
-
if (chunk.
|
|
45
|
+
if (chunk.category === 'token') process.stdout.write(chunk.content)
|
|
46
46
|
}
|
|
47
47
|
const result = await stream.result // { content, usage?, partial }
|
|
48
48
|
```
|
|
49
49
|
|
|
50
50
|
## Guide
|
|
51
51
|
|
|
52
|
-
[`guides/
|
|
52
|
+
[`guides/agent.md`](guides/agent.md) documents the agent-owned surface:
|
|
53
53
|
the provider boundary, conversations, instructions, scopes, authority, durable
|
|
54
54
|
jobs, the loop, and `AgentContext`. The two packages it consumes are mirrored
|
|
55
|
-
alongside it — [`guides/
|
|
56
|
-
[`guides/
|
|
55
|
+
alongside it — [`guides/tool.md`](guides/tool.md) for callable tools and
|
|
56
|
+
[`guides/workspace.md`](guides/workspace.md) for files.
|
|
57
57
|
|
|
58
58
|
## Package
|
|
59
59
|
|