Skip to main content

dr-agent-lib is an agent library for building deep research agents

Project description

dr-agent-lib

Overview

dr-agent-lib is an agent library for training and developing deep research agents. It supports:

  • MCP-Based Tool Backend: Unified interface for web search and browsing tools
  • High Concurrency: Global caching and async request management for RL training at scale
  • Flexible Prompting Interface: Easy composition of search workflows with fine-grained control

Setup

conda create -n dr_agent python=3.10 -y && conda activate dr_agent

uv pip install -e .     # Install dev version
uv pip install dr_agent # Install from pypi 

Getting started

  1. Launch MCP Server

    MCP_CACHE_DIR=".cache-$(hostname)" python -m mcp_agents.mcp_backend.main --port 8000
    
  2. Start the VLLM Server

    CUDA_VISIBLE_DEVICES=0 vllm serve rl-research/DR-Tulu-8B --dtype auto --port 30002 --max-model-len 40960
    
    CUDA_VISIBLE_DEVICES=1 vllm serve Qwen/Qwen3-8B --dtype auto --port 30002 --max-model-len 40960
    
  3. Run generation script

    bash scripts/auto_search.sh
    

Publishing to PyPI

To publish the package to PyPI, first install the dev dependencies:

pip install -e ".[dev]"

Then run the publish script:

# Test on TestPyPI first (recommended)
bash scripts/publish_to_pypi.sh test

# Publish to PyPI
bash scripts/publish_to_pypi.sh

You'll need to have PyPI credentials configured. Set up your ~/.pypirc file or use environment variables for authentication.

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

dr_agent-0.1.0.tar.gz (93.0 kB view details)

Uploaded Source

Built Distribution

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

dr_agent-0.1.0-py3-none-any.whl (97.0 kB view details)

Uploaded Python 3

File details

Details for the file dr_agent-0.1.0.tar.gz.

File metadata

  • Download URL: dr_agent-0.1.0.tar.gz
  • Upload date:
  • Size: 93.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for dr_agent-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2d17956bace4b5bb707cc7c23b48264c13e4a30dba5a00c9bdb41dbfcfe3ae0c
MD5 8f7568efe634e96ebd5498d065d850fe
BLAKE2b-256 94082502b38c4ef535d45221e51392a1ab3f244696fb0d6f9083ed4ec3ffb434

See more details on using hashes here.

File details

Details for the file dr_agent-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: dr_agent-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 97.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for dr_agent-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1e8642ab043e5317920087caccf0d3b9ba97d9ce4a23a58cfac7cac4b5eac874
MD5 2d6380aa0540afac0fc4a98d02672356
BLAKE2b-256 47600e9955e1654ba8dd0789875780de2a6a86e3097d9562a3d012910a94b924

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