Update langgraph_agent.py
Browse files- langgraph_agent.py +0 -9
langgraph_agent.py
CHANGED
@@ -72,15 +72,6 @@ def google_web_search(query: str) -> str:
|
|
72 |
print(f"Error in google_web_search tool: {e}")
|
73 |
return f"Error occurred while searching the web for '{query}'. Details: {str(e)}"
|
74 |
|
75 |
-
@tool
|
76 |
-
def arvix_search(query: str) -> dict:
|
77 |
-
"""Search arXiv for a query and return up to 3 paper excerpts."""
|
78 |
-
docs = ArxivLoader(query=query, load_max_docs=3).load()
|
79 |
-
formatted = "\n\n---\n\n".join(
|
80 |
-
f'<Document source="{d.metadata["source"]}"/>\n{d.page_content[:1000]}'
|
81 |
-
for d in docs
|
82 |
-
)
|
83 |
-
return {"arvix_results": formatted}
|
84 |
|
85 |
# HF_API_TOKEN is no longer directly needed for describe_image as that tool is removed.
|
86 |
# But keeping InferenceClient initialization for completeness if other HF tools might be added later.
|
|
|
72 |
print(f"Error in google_web_search tool: {e}")
|
73 |
return f"Error occurred while searching the web for '{query}'. Details: {str(e)}"
|
74 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
|
76 |
# HF_API_TOKEN is no longer directly needed for describe_image as that tool is removed.
|
77 |
# But keeping InferenceClient initialization for completeness if other HF tools might be added later.
|