Spaces:
Sleeping
Sleeping
Update tools.py
Browse files
tools.py
CHANGED
|
@@ -5,7 +5,7 @@ from langchain_community.tools import DuckDuckGoSearchRun
|
|
| 5 |
from pathlib import Path
|
| 6 |
from PIL import Image
|
| 7 |
import pytesseract
|
| 8 |
-
|
| 9 |
def web_search_tool(state: AgentState) -> AgentState:
|
| 10 |
"""
|
| 11 |
Expects: state["web_search_query"] is a non‐empty string.
|
|
|
|
| 5 |
from pathlib import Path
|
| 6 |
from PIL import Image
|
| 7 |
import pytesseract
|
| 8 |
+
from app import AgentState
|
| 9 |
def web_search_tool(state: AgentState) -> AgentState:
|
| 10 |
"""
|
| 11 |
Expects: state["web_search_query"] is a non‐empty string.
|