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
-
Launch MCP Server
MCP_CACHE_DIR=".cache-$(hostname)" python -m mcp_agents.mcp_backend.main --port 8000
-
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
-
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d17956bace4b5bb707cc7c23b48264c13e4a30dba5a00c9bdb41dbfcfe3ae0c
|
|
| MD5 |
8f7568efe634e96ebd5498d065d850fe
|
|
| BLAKE2b-256 |
94082502b38c4ef535d45221e51392a1ab3f244696fb0d6f9083ed4ec3ffb434
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e8642ab043e5317920087caccf0d3b9ba97d9ce4a23a58cfac7cac4b5eac874
|
|
| MD5 |
2d6380aa0540afac0fc4a98d02672356
|
|
| BLAKE2b-256 |
47600e9955e1654ba8dd0789875780de2a6a86e3097d9562a3d012910a94b924
|