Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -44,7 +44,7 @@ llm = ChatGoogleGenerativeAI(model="gemini-1.5-flash-latest")
|
|
| 44 |
def wikipedia_search(title: str) -> str:
|
| 45 |
"""Provides a short snippet from a Wikipedia article with the given itle"""
|
| 46 |
page = wikipedia.page(title)
|
| 47 |
-
|
| 48 |
|
| 49 |
def agent_node(state: OrderState) -> OrderState:
|
| 50 |
"""agent with tool handling."""
|
|
|
|
| 44 |
def wikipedia_search(title: str) -> str:
|
| 45 |
"""Provides a short snippet from a Wikipedia article with the given itle"""
|
| 46 |
page = wikipedia.page(title)
|
| 47 |
+
return page.content[:100]
|
| 48 |
|
| 49 |
def agent_node(state: OrderState) -> OrderState:
|
| 50 |
"""agent with tool handling."""
|