Example agents built with the @opensymbolicai/core framework in TypeScript.
| Example | Description |
|---|---|
| RAG Agent | Retrieval-Augmented Generation with behavior-based decomposition |
| Date Agent | Calculates days between dates using plan-then-execute pattern |
| Unit Converter | Converts between cooking/volume measurements with multi-step chaining |
# Install dependencies
npm install
# Start ChromaDB (required for RAG agent)
docker run -d -p 8765:8000 --name chromadb chromadb/chroma:latest
# Configure environment
cp .env.example .env
# Edit .env with your API keys
# Run the RAG agent demo
npm run demoexamples-ts/
├── examples/
│ ├── rag_agent/ # RAG Agent example
│ ├── date_agent/ # Date Agent example
│ └── unit_converter/ # Unit Converter example
├── package.json
├── tsconfig.json
└── README.md
- Node.js >= 18.0.0
- Docker (for vector stores)
- API keys for LLM providers (Anthropic, OpenAI, or Groq)
| Script | Description |
|---|---|
npm run demo |
Run RAG agent demo |
npm start |
Start RAG agent interactive mode |
npm run setup |
Setup RAG knowledge base |
npm run build |
Build TypeScript |
npm run clean |
Clean build artifacts |
See individual example READMEs for detailed usage instructions.