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
Below we assume you are already in the agent directory.
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
If you run crawl4ai locally, you will need to install playwright and its dependencies.
Set up API keys via .env file:
S2_API_KEY=xxx
SERPER_API_KEY=xxx
JINA_API_KEY=xxx
Note you will need to get these API keys from the respective services.
- S2_API_KEY: https://api.semanticscholar.org/
- SERPER_API_KEY: https://serper.dev/
- JINA_API_KEY: https://jina.ai/reader/
Getting started
-
Launch MCP Server
MCP_CACHE_DIR=".cache-$(hostname)" python -m dr_agent.mcp_backend.main --port 8000
-
Using DR-Tulu Models
-
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 30003 --max-model-len 40960
-
Run generation script
bash scripts/auto_search.sh
-
-
Using OAI models
export OPENAI_API_KEY="XXXX" bash scripts/auto_search-oai.sh
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.1.tar.gz.
File metadata
- Download URL: dr_agent-0.1.1.tar.gz
- Upload date:
- Size: 89.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86f752b7bb3dac54966a22e4df1c1dd9be49bbd0505e70674ed5fe541a65e575
|
|
| MD5 |
f3327963387cd3c660dadf2399bd2189
|
|
| BLAKE2b-256 |
28d0a90d2b6d60c85f32c93c8bbf4ec2652c6ec497ff689591d4160910fafec4
|
File details
Details for the file dr_agent-0.1.1-py3-none-any.whl.
File metadata
- Download URL: dr_agent-0.1.1-py3-none-any.whl
- Upload date:
- Size: 97.1 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 |
d27acc048b291884ea2b561ab60282fb9fa0ac86a32faa6fea27b748a2de4c8c
|
|
| MD5 |
32f21113d5f2178a69b6d0fb5440188e
|
|
| BLAKE2b-256 |
c53d7ad3a0b132846c5672bda650fc6694e13d84c51f69e920481389f6d80491
|