@48nauts/agent-core
v0.1.1
Published
Agent runtime, workflow primitives, and adapter interfaces. The kernel.
Downloads
92
Readme
@48nauts/agent-core
Runtime + workflow primitives + adapter interfaces. The kernel of NautCore — the shared agentic baseline behind 48Nauts products.
Wraps @earendil-works/pi-agent-core for now. May graduate to a native runtime later (planned: NativeAgentRuntime).
What you get
registerToolsWithPi(tools, opts)— bind a set of tools into a Pi (or OpenAI-compatible) agent runtime.ToolDef/ToolContext— the tool shape. Tools receive dependencies (e.g. a DB adapter) viactx.extras, injected per request.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)).
Pair with @48nauts/adapter-drizzle (a DbAdapter for Drizzle/Postgres) and the @48nauts/tools-* packages (CRUD, generic, Swiss).
Exports
import { registerToolsWithPi } from "@48nauts/agent-core";
import { DbAdapter } from "@48nauts/agent-core/adapter";
import type { ToolDef, ToolContext } from "@48nauts/agent-core/tool";License
AGPL-3.0-or-later.
