@axiomkit/core
v2.0.13
Published
A powerful TypeScript framework for building intelligent agents with advanced reasoning, memory management, and extensible architecture.
Downloads
63
Readme
AxiomKit Core
A powerful TypeScript framework for building intelligent agents with advanced reasoning, memory management, and extensible architecture.
Overview
AxiomKit Core provides a robust foundation for creating AI agents that can:
- Reason and Plan: Chain-of-thought reasoning with customizable thinking patterns
- Remember and Learn: Persistent memory with episodic and semantic storage
- Act and Interact: Extensible action system with input/output handling
- Monitor and Debug: Comprehensive logging and performance tracking
- Scale and Extend: Modular architecture with plugin support
Key Features
- Advanced Reasoning: Chain-of-thought processing with customizable thinking patterns
- Memory Management: Persistent episodic and semantic memory with vector storage
- Extensible Actions: Type-safe action system with schema validation
- Monitoring: Built-in performance tracking and request monitoring
- Providers Architecture: Easy scale provider system for custom functionality
- Context Management: Sophisticated context handling with state persistence
- Comprehensive Logging: Detailed logging with multiple levels and formats
Architecture
Memory System
graph LR
subgraph "Working Memory"
E1["Real-time State<br/>Current Session"] --> E2["Pressure Detection<br/>Memory Limits"]
E2 --> E3["Auto Pruning<br/>Smart Cleanup"]
E3 --> E4["Context Integration<br/>Multi-Memory Access"]
endInstallation
npm install @axiomkit/core
# or
pnpm add @axiomkit/core
# or
yarn add @axiomkit/coreQuick Start
Basic Agent Setup
import { createAgent } from "@axiomkit/core";
import { groq } from "@ai-sdk/groq";
const agent = createAgent({
model: groq("gemma2-9b-it"),
modelSettings: {
maxTokens: 1000,
temperature: 0.7,
},
});
// Start the agent
await agent.start();Creating a Simple Calculator Bot
Development
Running Tests
# Run all tests
pnpm test
# Run with coverage
pnpm test:coverage
# Run with UI
pnpm test:uiBuilding
# Build the package
pnpm buildAPI Reference
Core Types
Agent<TContext>- Main agent interfaceConfig<TContext>- Agent configurationContext<TMemory, Schema, Ctx, Actions, Events>- Context definitionAction<Schema, Result, TError, TContext, TAgent, TMemory>- Action definitionMemory<Data>- Memory configuration
Key Methods
createAgent(config)- Create a new agentagent.start(args?)- Start the agentagent.run(options)- Run the agent with contextagent.send(options)- Send input to the agentagent.stop()- Stop the agent
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests for new functionality
- Submit a pull request
License
MIT License - see LICENSE file for details.
