@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 CHANGED
@@ -1,10 +1,14 @@
1
1
  # @orkestrel/agent
2
2
 
3
- A typed **agent runtime** for the `@orkestrel` line — providers, tools,
4
- conversations, workspaces, and a composable agent context. `createAgent`
5
- composes a `ProviderInterface`, an `AgentContextInterface`, and a tool
6
- registry into a bounded context → provider → tools → repeat turn, exposed as
7
- a one-shot `generate` and a live `stream`. Part of the `@orkestrel` line.
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, createTool, createToolManager } from '@orkestrel/agent'
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
- For the full surface — providers, the agent loop, tools, conversations,
48
- workspaces, and the composable `AgentContext` — see
49
- [`guides/src/agent.md`](guides/src/agent.md).
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