bare-agent 0.46.3 → 0.46.5
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 +21 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -60,6 +60,27 @@ and show me the wiring code.
|
|
|
60
60
|
|
|
61
61
|
---
|
|
62
62
|
|
|
63
|
+
## For AI agents — the menu
|
|
64
|
+
|
|
65
|
+
Building tool-calling automation on top of bare-agent? Read **`primitives.json`** first. It's a compact, machine-readable menu of every building block — the fast path to *using* bare-agent without reading the docs: load it, pick a primitive, wire it. Each entry carries `when` to reach for it, its `import`, `signature`, `fails`, and a runnable `example`:
|
|
66
|
+
|
|
67
|
+
```jsonc
|
|
68
|
+
{
|
|
69
|
+
"name": "AnthropicProvider",
|
|
70
|
+
"category": "providers",
|
|
71
|
+
"when": "you want Claude models as the Loop's provider — native Messages API with opt-in prompt caching and thinking-block passthrough",
|
|
72
|
+
"import": "import { AnthropicProvider } from 'bare-agent/providers'",
|
|
73
|
+
"signature": "new AnthropicProvider(options?: AnthropicOptions)",
|
|
74
|
+
"fails": "…",
|
|
75
|
+
"example": "…"
|
|
76
|
+
}
|
|
77
|
+
// 51 entries across: providers · routing · retrieval · mcp · loop · memory · tools · skills · evaluation · hitl · resilience · governance · orchestration · …
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
Browse it on unpkg (`unpkg.com/bare-agent/primitives.json`) before you install, `require` it (`const menu = require('bare-agent/primitives.json')`), or point a tool at it. Generated from the source, so it never drifts.
|
|
81
|
+
|
|
82
|
+
**Then go deeper:** `bareagent.context.md` (the complete contract — every option and the full API) and the rest of this README for the recipes.
|
|
83
|
+
|
|
63
84
|
## What's inside
|
|
64
85
|
|
|
65
86
|
Every piece works alone — take what you need, ignore the rest. Two axes: **Act** (get work done) and **Verify** (check it, keep context clean), with **one gate** over both — plus **`recurse`**, an Act-side primitive big enough to earn its own spotlight below.
|