Spaces:
Sleeping
Sleeping
Update agent.py
Browse files
agent.py
CHANGED
@@ -10,7 +10,6 @@ API_URL = "https://agents-course-unit4-scoring.hf.space"
|
|
10 |
# ------------------------
|
11 |
# Tool definitions
|
12 |
# ------------------------
|
13 |
-
|
14 |
@tool
|
15 |
def fetch_questions() -> list:
|
16 |
"""
|
@@ -66,7 +65,7 @@ def create_agent() -> CodeAgent:
|
|
66 |
tools=[
|
67 |
fetch_questions,
|
68 |
fetch_random_question,
|
69 |
-
submit_answers,
|
70 |
],
|
71 |
model=model,
|
72 |
prompt_template=(
|
@@ -76,4 +75,3 @@ def create_agent() -> CodeAgent:
|
|
76 |
)
|
77 |
)
|
78 |
return agent
|
79 |
-
|
|
|
10 |
# ------------------------
|
11 |
# Tool definitions
|
12 |
# ------------------------
|
|
|
13 |
@tool
|
14 |
def fetch_questions() -> list:
|
15 |
"""
|
|
|
65 |
tools=[
|
66 |
fetch_questions,
|
67 |
fetch_random_question,
|
68 |
+
submit_answers,
|
69 |
],
|
70 |
model=model,
|
71 |
prompt_template=(
|
|
|
75 |
)
|
76 |
)
|
77 |
return agent
|
|