Quick Installation

Get AgenticFleet up and running quickly:

pip install agentic-fleet

Basic Usage

Create your first agent and run a simple task:

from agentic_fleet import Agent

# Create an agent
agent = Agent(name="my_first_agent")

# Run a task
async def main():
    result = await agent.run("Analyze this text and summarize key points.")
    print(result)

import asyncio
asyncio.run(main())

Step-by-Step Guide

1. Setup Your Environment

2. Create Your First Agent

3. Run Your Agent

Web Integration

Integrate with FastAPI and Chainlit:

Next Steps

Common Use Cases

Task Automation

from agentic_fleet import Agent

async def automate_task():
    agent = Agent(name="automation_agent")
    result = await agent.run(
        "Process these documents and extract key information"
    )
    return result

Multi-Agent Systems

from agentic_fleet import Agent, AgentGroup

async def collaborative_task():
    # Create agents
    researcher = Agent(name="researcher")
    writer = Agent(name="writer")
    
    # Create group
    group = AgentGroup([researcher, writer])
    
    # Run collaborative task
    result = await group.run(
        "Research and write a report"
    )
    return result

API Integration

from agentic_fleet import Agent
from agentic_fleet.tools import APIClient

async def api_integration():
    # Create API tool
    api_tool = APIClient(
        base_url="https://api.example.com"
    )
    
    # Create agent with tool
    agent = Agent(
        name="api_agent",
        tools=[api_tool]
    )
    
    # Use API
    result = await agent.use_tool(
        "api_client",
        endpoint="/data"
    )
    return result