tooluniverse.biorxiv_tool module

class tooluniverse.biorxiv_tool.BioRxivTool[source]

Bases: BaseTool

Get bioRxiv or medRxiv preprint metadata by DOI.

This tool retrieves full metadata for a specific preprint using the bioRxiv API. For searching preprints by keywords, use EuropePMC_search_articles with ‘SRC:PPR’ filter instead.

Parameters:
  • doi (str) – bioRxiv or medRxiv DOI (e.g., ‘10.1101/2023.12.01.569554’ or ‘2023.12.01.569554’)

  • server (str) – Server name - ‘biorxiv’ or ‘medrxiv’ (default: ‘biorxiv’)

__init__(tool_config, base_url='https://api.biorxiv.org/details')[source]
run(arguments=None)[source]

Execute the tool.

The default BaseTool implementation accepts an optional arguments mapping to align with most concrete tool implementations which expect a dictionary of inputs.

Parameters:
  • arguments (dict, optional) – Tool-specific arguments

  • stream_callback (callable, optional) – Callback for streaming responses

  • use_cache (bool, optional) – Whether result caching is enabled

  • validate (bool, optional) – Whether parameter validation was performed

Note

These additional parameters (stream_callback, use_cache, validate) are passed from run_one_function() to provide context about the execution. Tools can use these for optimization or special handling.

For backward compatibility, tools that don’t accept these parameters will still work - they will only receive the arguments parameter.