@orkestrel/agent 0.0.11 → 0.0.13
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 +16 -9
- package/dist/src/core/index.cjs +127 -1614
- package/dist/src/core/index.cjs.map +1 -1
- package/dist/src/core/index.d.cts +108 -1716
- package/dist/src/core/index.d.ts +108 -1716
- package/dist/src/core/index.js +122 -1573
- package/dist/src/core/index.js.map +1 -1
- package/package.json +11 -9
package/README.md
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
# @orkestrel/agent
|
|
2
2
|
|
|
3
|
-
A typed **
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
a one-shot `generate`
|
|
3
|
+
A typed **conversation runtime** for the `@orkestrel` line. An agent is a
|
|
4
|
+
conversation with a model and the loop that carries it forward: messages,
|
|
5
|
+
conversations and their compaction, instructions, scopes, prompt assembly, the
|
|
6
|
+
authority gate, durable jobs, and a bounded context → provider → tools → repeat
|
|
7
|
+
turn you can run as a one-shot `generate` or a live `stream`. The model itself
|
|
8
|
+
is the one piece this package does not supply — any backend implementing
|
|
9
|
+
`ProviderInterface` drops in. Callable tools come from `@orkestrel/tool` and
|
|
10
|
+
documents from `@orkestrel/workspace`; the agent advertises the first to the
|
|
11
|
+
model and renders the second into the prompt. Part of the `@orkestrel` line.
|
|
8
12
|
|
|
9
13
|
## Install
|
|
10
14
|
|
|
@@ -20,7 +24,8 @@ npm install @orkestrel/agent
|
|
|
20
24
|
## Usage
|
|
21
25
|
|
|
22
26
|
```ts
|
|
23
|
-
import { createAgent
|
|
27
|
+
import { createAgent } from '@orkestrel/agent'
|
|
28
|
+
import { createTool, createToolManager } from '@orkestrel/tool'
|
|
24
29
|
|
|
25
30
|
const tools = createToolManager()
|
|
26
31
|
tools.add(
|
|
@@ -44,9 +49,11 @@ const result = await stream.result // { content, usage?, partial }
|
|
|
44
49
|
|
|
45
50
|
## Guide
|
|
46
51
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
52
|
+
[`guides/src/agent.md`](guides/src/agent.md) documents the agent-owned surface:
|
|
53
|
+
the provider boundary, conversations, instructions, scopes, authority, durable
|
|
54
|
+
jobs, the loop, and `AgentContext`. The two packages it consumes are mirrored
|
|
55
|
+
alongside it — [`guides/src/tool.md`](guides/src/tool.md) for callable tools and
|
|
56
|
+
[`guides/src/workspace.md`](guides/src/workspace.md) for files.
|
|
50
57
|
|
|
51
58
|
## Package
|
|
52
59
|
|