mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-04 04:07:54 +00:00
Harrison/arxiv fix (#5993)
Co-authored-by: Juanjo do Olmo <87780148+SimplyJuanjo@users.noreply.github.com>
This commit is contained in:
parent
0b740c9baa
commit
2d038b57b2
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
|
from pydantic import Field
|
||||||
|
|
||||||
from langchain.callbacks.manager import (
|
from langchain.callbacks.manager import (
|
||||||
AsyncCallbackManagerForToolRun,
|
AsyncCallbackManagerForToolRun,
|
||||||
CallbackManagerForToolRun,
|
CallbackManagerForToolRun,
|
||||||
@ -22,7 +24,7 @@ class ArxivQueryRun(BaseTool):
|
|||||||
"from scientific articles on arxiv.org. "
|
"from scientific articles on arxiv.org. "
|
||||||
"Input should be a search query."
|
"Input should be a search query."
|
||||||
)
|
)
|
||||||
api_wrapper: ArxivAPIWrapper
|
api_wrapper: ArxivAPIWrapper = Field(default_factory=ArxivAPIWrapper)
|
||||||
|
|
||||||
def _run(
|
def _run(
|
||||||
self,
|
self,
|
||||||
|
Loading…
Reference in New Issue
Block a user