Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,10 @@ from tools import *
|
|
| 10 |
DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
| 11 |
|
| 12 |
# --- Basic Agent Definition ---
|
| 13 |
-
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
def assistant(state: AgentState):
|
| 16 |
return {
|
|
|
|
| 10 |
DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
| 11 |
|
| 12 |
# --- Basic Agent Definition ---
|
| 13 |
+
|
| 14 |
+
# Generate the AgentState and Agent graph
|
| 15 |
+
class AgentState(TypedDict):
|
| 16 |
+
messages: Annotated[list[AnyMessage], add_messages]
|
| 17 |
|
| 18 |
def assistant(state: AgentState):
|
| 19 |
return {
|