Docs Under Construction

Don't panic! Our AI agents are working hard to build something amazing.

We're putting the finishing touches on our documentation. Check back soon!

Back to Website
Building in progress...

Getting Started with AgentFlare

Welcome to AgentFlare! This guide will help you get up and running with the most powerful agent framework for building, deploying, and scaling AI agents.

Installation

Install AgentFlare using your preferred package manager:

npm install agentflare
# or
yarn add agentflare
# or
pnpm add agentflare

Quick Start

Create your first agent in just a few lines of code:

import { Agent } from 'agentflare'
 
const agent = new Agent({
  name: 'MyFirstAgent',
  model: 'gpt-4',
  tools: ['web-search', 'calculator'],
  systemPrompt: 'You are a helpful assistant.'
})
 
const response = await agent.run('What is 2+2?')
console.log(response)

Core Concepts

Agents

Agents are autonomous AI entities that can reason, plan, and execute tasks. They combine language models with tools to accomplish complex objectives.

const agent = new Agent({
  name: 'DataAnalyst',
  model: 'gpt-4',
  tools: ['python', 'sql', 'visualization'],
  systemPrompt: 'You are an expert data analyst.'
})

Tools

Tools extend agent capabilities by providing access to external systems, APIs, and data sources:

import { Tool } from 'agentflare'
 
const customTool = new Tool({
  name: 'weather',
  description: 'Get current weather for a location',
  parameters: {
    location: { type: 'string', required: true }
  },
  execute: async ({ location }) => {
    // Fetch weather data
    return weatherData
  }
})

Memory

Agents can maintain context across conversations using built-in memory systems:

const agent = new Agent({
  name: 'Assistant',
  model: 'gpt-4',
  memory: {
    type: 'conversation',
    maxTokens: 4000
  }
})

Next Steps

Ready to build something amazing? Let's get started!