Spaces:
Build error
Build error
Update app.py
Browse files9 unmodified lines101112131415166 unmodified lines2324252627289 unmodified lines# --- Constants ---DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"# --- Basic Agent Definition ---# ----- THIS IS WERE YOU CAN BUILD WHAT YOU WANT ------class BasicAgent:6 unmodified linesself.agent = CodeAgent(model = model,tools=[search_tool,wiki_search],)9 unmodified lines1011121314151617181920212223242526272829303132336 unmodified lines404142434445469 unmodified lines# --- Constants ---DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"SYSTEM_PROMPT = """You are GAIA-Bot, a fully-autonomous problem-solver.• For each question, THINK step-by-step before answering.• When outside knowledge or calculations are needed, CALL an appropriate tool.• Explain your reasoning only to yourself (in “Thought” messages); do NOT reveal it to the user.• After finishing all reasoning, RESPOND with **only** the final answer string—no pre-amble, no labels, no extra text.You have access to these tools:- gaia_file_fetch – download the file attached to the current task_id.- duckduckgo_search – look up current facts on the public web.If you require a file attached to the current task, download it with`requests_get("https://agents-course-unit4-scoring.hf.space/files/{task_id}")`and parse it inside Python.Adhere strictly to these rules:1. Use tools whenever they can reduce hallucination.2. Never mention tool names or JSON in your final answer.3. If you cannot find an answer, return “unknown”.Begin."""# --- Basic Agent Definition ---# ----- THIS IS WERE YOU CAN BUILD WHAT YOU WANT ------class BasicAgent:6 unmodified linesself.agent = CodeAgent(model = model,tools=[search_tool,wiki_search],prompt=SYSTEM_PROMPT,)
app.py+19-1