prebuilt.systemic_review_of_scientific_articles.tools¶
Classes¶
Base class for all LangChain tools. |
Module Contents¶
- class prebuilt.systemic_review_of_scientific_articles.tools.AcademicPaperSearchTool(name: str = 'academic_paper_search_tool', description: str = 'Queries an academic paper API to retrieve relevant articles based on a topic')¶
Bases:
langchain_core.tools.BaseToolBase class for all LangChain tools.
This abstract class defines the interface that all LangChain tools must implement. Tools are components that can be called by agents to perform specific actions.
- query_academic_api(topic: str, max_results: int) list[dict[str, Any]]¶
Query Academic Api.
- Parameters:
topic – [TODO: Add description]
max_results – [TODO: Add description]
- Returns:
Add return description]
- Return type:
[TODO
- args_schema: type¶
Pydantic model class to validate and parse the tool’s input arguments.
Args schema should be either:
A subclass of pydantic.BaseModel.
A subclass of pydantic.v1.BaseModel if accessing v1 namespace in pydantic 2
a JSON schema dict