Builds PaperTrail from the base skeleton into a full evidence-verification platform for the "Built with Claude: Life Sciences" hackathon (Builder Track). New named-user features (Build Beyond the Bench): - Lab Notebook Companion — rough bench notes -> structured, searchable, grounded experiment records (lib/labNotebook, /console/lab-notebook, migration 0059) - Clinical Trial Matcher — de-identified patient notes -> ranked eligible ClinicalTrials.gov trials with per-criterion inclusion/exclusion reasoning (lib/trialMatcher, /console/trial-matcher, migrations 0060) Platform: - Deterministic verification moat (biostats recompute, exact-span grounding) - 11 biomedical evidence engines (FAERS, GWAS, Open Targets, ChEMBL, ClinVar, PharmGKB, PubTator, DDI, repurposing, biomarker, unified verifier) - Evidence Intelligence (KG, dossier, provenance/export, RWE) + enterprise governance (RBAC, /api/v1 gateway, metering, audit chain, retention) - 17 OSS projects assimilated into native TypeScript on our stack (backend/engines retained + credited in NOTICE) - Multi-format upload (PDF/DOCX/XLSX/CSV/MD/TXT), logo, marketing site - Next.js 16 upgrade, benchmark harness (honest smoke-test caveat) Licensing: Apache-2.0 (LICENSE + NOTICE).
User-Defined Tools Directory
Overview
This directory is mounted inside the R2R Docker container and is intended for custom tool files. Any files placed here will be accessible to the application running in the container.
Usage
- Place your custom tool definitions in this directory. Utilize the template structure demonstrated here.
- Add any additional dependencies that you may need to the user_requirements.txt file in this directory.
- Include the tool in your agent configuration.
Creating a tool
from core.base.agent.tools.base import Tool
class ToolNameTool(Tool):
"""
A user defined tool.
"""
def __init__(self):
super().__init__(
name="tool_name",
description="A natural language tool description that is shown to the agent.",
parameters={
"type": "object",
"properties": {
"input_parameter": {
"type": "string",
"description": "Define any input parameters by their name and type",
},
},
"required": ["input_parameter"],
},
results_function=self.execute,
llm_format_function=None,
)
async def execute(self, input_parameter: str, *args, **kwargs):
"""
Implementation of the tool.
"""
# Any custom tool logic can go here
output_response = some_method(input_parameter)
result = AggregateSearchResult(
generic_tool_result=[web_response],
)
# Add to results collector if context is provided
if context and hasattr(context, "search_results_collector"):
context.search_results_collector.add_aggregate_result(result)
return result
Troubleshooting
For more detailed configuration information, see the main documentation.