tooluniverse.openalex_tool moduleΒΆ
- class tooluniverse.openalex_tool.OpenAlexTool[source]ΒΆ
Bases:
BaseTool
Tool to retrieve literature from OpenAlex based on search keywords.
- search_literature(search_keywords, max_results=10, year_from=None, year_to=None, open_access=None)[source]ΒΆ
Search for literature using OpenAlex API.
- Parameters:
search_keywords (
str
) β Keywords to search for in title, abstract, and content.max_results (
int
) β Maximum number of results to return (default: 10).year_from (
int
) β Start year for publication date filter (optional).year_to (
int
) β End year for publication date filter (optional).open_access (
bool
) β Filter for open access papers only (optional).
- Returns:
List of dictionaries containing paper information.
- Return type:
- _extract_paper_info(work)[source]ΒΆ
Extract relevant information from a work object returned by OpenAlex API.