Skip to main content

Autonomous Research Agent: plan, execute, remember, and report with Python + LLM

Project description

CI

Autonomous Research Agent

A modular AI pipeline that plans, executes, stores memory, and reports research—all orchestrated by main.py.


🚀 Features

  • Planner: Breaks a research goal into actionable subtasks
  • Executor: Uses an LLM to research each subtask
  • Memory: Persists session results locally (or vector store)
  • Reporter: Generates a Markdown report of findings
  • Fully Tested: Unit and integration tests with pytest

📦 Installation

  1. Clone the repo:

    git clone https://github.com/ramonbnuezjr/autogpt-research-agent.git
    cd autogpt-research-agent
    
  2. Copy and configure your environment:

    cp .env.example .env
    # Edit `.env` to set your OpenAI API key and backend
    
  3. Create and activate a virtual environment:

    python -m venv venv
    source venv/bin/activate
    
  4. Install dependencies:

    pip install -r requirements.txt
    

🧠 Usage

Run the agent from the CLI:

python main.py --goal "How is AI being used in smart cities?"

Note: If not using CLI flags yet, just run python main.py and input the goal interactively.


📝 Sample Report

We’ve saved the latest research report in the reports/ folder.

Example:

Browse the full folder:


✅ Testing

We use pytest for all tests.

  1. Install test dependencies:

    pip install pytest
    
  2. Run all tests:

    pytest
    
  3. (Optional) Enable live API testing:

    export LIVE_API=true
    pytest -m live
    

🔐 API Key Setup

This project requires access to an LLM (e.g., OpenAI). To run it, you must create a .env file using the template provided:

cp .env.example .env

Then edit .env with your personal API key:

OPENAI_API_KEY=sk-xxxxxxxxxxxxxxxxxxxx
LLM_BACKEND=openai

Never commit .env to version control.


🧪 CI & Linting

See .github/workflows/ci.yml and lint config files in the repo root for continuous integration, formatting, and type checking.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

autogpt_research_agent_ramon-0.2.3.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

autogpt_research_agent_ramon-0.2.3-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file autogpt_research_agent_ramon-0.2.3.tar.gz.

File metadata

File hashes

Hashes for autogpt_research_agent_ramon-0.2.3.tar.gz
Algorithm Hash digest
SHA256 fb0d546f4394e8ba4048a74c44a14dba4a7d2f5792d9edbd148a3e76dff1f8c1
MD5 526a958c9c694e0cf79017fd6031b314
BLAKE2b-256 c4b7aacb7712ce8dcdfb64bac015c5c1bacc6a101b29a1b7657508cc3c0efc7e

See more details on using hashes here.

File details

Details for the file autogpt_research_agent_ramon-0.2.3-py3-none-any.whl.

File metadata

File hashes

Hashes for autogpt_research_agent_ramon-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f2a9f01987b6c3aba55c0e50c7cf94af48b29ae747cdeec82074363b672c18db
MD5 31ad47f50bbe52cc9ed72cc3b28c2a16
BLAKE2b-256 889357bb50929d05f4b38ce909f721bb61c3cc3b69fd6dda39e39cb157f3a2b4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page