@ap3x/agent-core
v0.1.0
Published
Agent loop, tool calling, sessions, compaction, and the AgentBackend interface
Readme
@ap3x/agent-core
The native agent runtime: a tool-calling loop, a conversation memory substrate, durable sessions, and context compaction — plus the AgentBackend seam orchestration builds on.
Part of AP3X — a TypeScript multi-agent framework.
Install
npm install @ap3x/agent-coreWhat's inside
runAgentLoop— the tool-calling agent loop with typed events.Conversation— the append-only transcript every orchestrator reads and writes, with JSON/YAML persistence, token-budget management, and durable memory files.- Compaction — automatic context compaction with summary threading across runs.
defineTool— explicit TypeBox parameter schemas; no runtime reflection.- Sessions — durable session storage with resume and fork.
AgentBackend— the interface orchestration depends on, so runtimes stay swappable.- Typed errors — a single
AgentErrorhierarchy with stable machine-readable codes.
Documentation
See the AP3X repository for architecture notes, the full package map, and examples.
License
MIT
