Skip to content

tone-row/simullm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simullm

Event-driven Agent-Based Modeling framework for TypeScript.

📦 Package

The main package is located in packages/simullm/ - see its README for full documentation, API reference, and usage examples.

Quick install:

npm install simullm
# or
bun add simullm

🏗️ Repository Structure

This is a monorepo containing:

.
├── packages/
│   └── simullm/           # 📦 Main package - Event-driven ABM framework
│       ├── lib/           # Core library code
│       ├── experiments/   # Example simulations
│       └── scripts/       # Release automation

🚀 Quick Start

import { createSimulation, createAgent } from "simullm";

const simulation = createSimulation({
  initialGlobalState: { value: 0 },
  agents: [myAgent],
  shouldExit: ({ actionCount }) => actionCount >= 10, // Required in v0.2.0+
});

await simulation.dispatch({ type: "START" });

📚 Documentation

🛠️ Development

This workspace uses Bun:

# Install dependencies
bun install

# Run tests for the main package
cd packages/simullm && bun test

# Release new version
cd packages/simullm && bun run release

📄 License

MIT

About

A TypeScript framework for creating agent-based simulations with support for LLM-powered agents.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •