{"data":{"kind":"file","path":"README.md","version_id":"fq6znlauhd4q1m3enpbo7pm9","entry":{"name":"README.md","path":"README.md","is_directory":false,"size":1668,"modified_at":"2026-03-09T19:13:42.794000","content_hash":"63e209467af982cfcff422b0caa168d2e7c64cc29905788ae58a805de3529254"},"entries":[],"content":"# drug-interaction-checker\n\nThis environment tests an agent's ability to identify potential drug-drug interactions given a patient's current medications and a newly prescribed drug. The agent must use a drug database tool to check for interactions and provide a recommendation.\n\n## Overview\n\n**Domain**: medicine\n**Base Class**: StatefulToolEnv\n**Difficulty**: medium\n**Task**: The agent must identify all significant drug-drug interactions between a patient's existing medications and a new prescription, then recommend whether the new drug should be prescribed, adjusted, or avoided.\n\n## Quickstart\n\n### Installation\n\n```bash\nuv run vf-install drug-interaction-checker\n```\n\n### Usage\n\n```python\nimport verifiers as vf\n\nenv = vf.load_environment(\"drug-interaction-checker\")\nresults = env.evaluate_sync(\n    client=vf.OpenAI(),\n    model=\"gpt-4.1-mini\",\n    num_examples=10,\n    rollouts_per_example=1\n)\n```\n\n### Evaluation\n\nRun an evaluation with default settings:\n\n```bash\nuv run vf-eval drug-interaction-checker\n```\n\nConfigure model and sampling:\n\n```bash\nuv run vf-eval drug-interaction-checker \\\n  -m gpt-4.1-mini \\\n  -n 20 -r 3 -t 1024 -T 0.7\n```\n\n## Environment Arguments\n\n| Arg | Type | Default | Description |\n|-----|------|---------|-------------|\n| `num_examples` | int | 1000 | Number of training examples |\n| `num_eval_examples` | int | 100 | Number of evaluation examples |\n| `seed` | int | 42 | Random seed for reproducibility |\n\n## Metrics\n\n| Metric | Meaning |\n|--------|---------|\n| `reward` | Primary reward signal |\n| `format_reward` | Format adherence reward (if applicable) |\n\n## About\n\nGenerated by synthetic-rl-env-creator.\n\n**Tags**: medicine\n","encoding":"utf-8","truncated":false,"total_bytes":1668},"status":null}