PraisonAI is a production-ready Multi AI Agents framework for TypeScript, designed to create AI Agents to automate and solve problems ranging from simple tasks to complex challenges. It provides a low-code solution to streamline the building and management of multi-agent LLM systems, emphasising simplicity, customisation, and effective human-agent collaboration.

1

Install Package

npm install praisonai
2

Set API Key

export OPENAI_API_KEY=xxxxxxxxxxxxxxxxxxxxxx
3

Create File

Create app.ts file

Code Example

import { Agent } from 'praisonai';

const agent = new Agent({ 
  instructions: `You are a creative writer who writes short stories with emojis.`,
  name: "StoryWriter"
});

agent.start("Write a story about a time traveler")
4

Run Script

npx ts-node app.ts

Usage Examples

Running the Examples

1

Set Environment Variables

export OPENAI_API_KEY='your-api-key'
2

Create Example File

Create a new TypeScript file (e.g., app.ts) with any of the above examples.

3

Run the Example

npx ts-node app.ts

Tool Calls Examples