@48nauts/agent-core 0.1.0 → 0.1.1
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 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,7 +1,25 @@
|
|
|
1
1
|
# @48nauts/agent-core
|
|
2
2
|
|
|
3
|
-
Runtime + workflow primitives + adapter interfaces. The kernel of NautCore.
|
|
3
|
+
Runtime + workflow primitives + adapter interfaces. The kernel of NautCore — the shared agentic baseline behind 48Nauts products.
|
|
4
4
|
|
|
5
|
-
Wraps `@earendil-works/pi-agent-core` for now. May graduate to native runtime later (planned: `NativeAgentRuntime`).
|
|
5
|
+
Wraps `@earendil-works/pi-agent-core` for now. May graduate to a native runtime later (planned: `NativeAgentRuntime`).
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
## What you get
|
|
8
|
+
|
|
9
|
+
- **`registerToolsWithPi(tools, opts)`** — bind a set of tools into a Pi (or OpenAI-compatible) agent runtime.
|
|
10
|
+
- **`ToolDef` / `ToolContext`** — the tool shape. Tools receive dependencies (e.g. a DB adapter) via `ctx.extras`, injected per request.
|
|
11
|
+
- **`DbAdapter`** — the database seam. Tools are written against this interface, not a concrete schema, so the same tool works across products and stays tenant-scoped (`requireDb(ctx)`).
|
|
12
|
+
|
|
13
|
+
Pair with `@48nauts/adapter-drizzle` (a `DbAdapter` for Drizzle/Postgres) and the `@48nauts/tools-*` packages (CRUD, generic, Swiss).
|
|
14
|
+
|
|
15
|
+
## Exports
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
import { registerToolsWithPi } from "@48nauts/agent-core";
|
|
19
|
+
import { DbAdapter } from "@48nauts/agent-core/adapter";
|
|
20
|
+
import type { ToolDef, ToolContext } from "@48nauts/agent-core/tool";
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## License
|
|
24
|
+
|
|
25
|
+
AGPL-3.0-or-later.
|