tooluniverse.efo_tool moduleยถ

class tooluniverse.efo_tool.EFOTool[source]ยถ

Bases: BaseTool

Tool to lookup Experimental Factor Ontology (EFO) IDs for diseases via the EMBL-EBI OLS API.

__init__(tool_config, base_url='https://www.ebi.ac.uk/ols4/api/search')[source]ยถ
run(arguments)[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.