Skip to content

OpenSymbolicAI/examples-ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenSymbolicAI Examples (TypeScript)

Example agents built with the @opensymbolicai/core framework in TypeScript.

Examples

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

Quick Start

# 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 demo

Project Structure

examples-ts/
├── examples/
│   ├── rag_agent/       # RAG Agent example
│   ├── date_agent/      # Date Agent example
│   └── unit_converter/  # Unit Converter example
├── package.json
├── tsconfig.json
└── README.md

Requirements

  • Node.js >= 18.0.0
  • Docker (for vector stores)
  • API keys for LLM providers (Anthropic, OpenAI, or Groq)

Available Scripts

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.

About

OpenSymbolicAI TypeScript examples - RAG Agent, Date Agent, Unit Converter

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors