@tangle-network/agent-runtime 0.4.2 → 0.4.3
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 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Reusable runtime lifecycle for domain-specific agents.
|
|
4
4
|
|
|
5
|
-
`agent-runtime` is the shared skeleton for
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
`agent-runtime` is the shared skeleton for domain agents, generated agents,
|
|
6
|
+
red-team harnesses, coding agents, and similar packages. It does not own domain
|
|
7
|
+
policy, tools, connectors, model routing, or UI. It standardizes the task
|
|
8
|
+
lifecycle and delegates domain behavior to an adapter.
|
|
9
9
|
|
|
10
10
|
```txt
|
|
11
11
|
TaskSpec
|
|
@@ -72,6 +72,20 @@ Events cover readiness, question answering, acquisition, control-loop steps,
|
|
|
72
72
|
and task completion. This keeps streaming UI, logs, and telemetry out of domain
|
|
73
73
|
adapters while making every runtime transition observable.
|
|
74
74
|
|
|
75
|
+
This package does not stream model tokens for you. Domain adapters and product
|
|
76
|
+
routes still own model calls, tool execution, and token streaming. `agent-runtime`
|
|
77
|
+
emits lifecycle events around those actions, and provides small helpers for
|
|
78
|
+
safe telemetry streams:
|
|
79
|
+
|
|
80
|
+
```ts
|
|
81
|
+
import { readinessServerSentEvent } from '@tangle-network/agent-runtime'
|
|
82
|
+
|
|
83
|
+
writer.write(encoder.encode(readinessServerSentEvent(readinessReport)))
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
Use these helpers when an app wants to expose readiness or runtime metadata over
|
|
87
|
+
Server-Sent Events without leaking raw task inputs, credentials, or evidence.
|
|
88
|
+
|
|
75
89
|
For logs, reports, and UI telemetry, do not serialize raw events directly.
|
|
76
90
|
Use the built-in sanitized collector:
|
|
77
91
|
|
package/package.json
CHANGED