diff --git a/media/examples/pong.png b/media/examples/pong.png new file mode 100644 index 0000000..45860ee Binary files /dev/null and b/media/examples/pong.png differ diff --git a/media/whale_readme.jpg b/media/whale_readme.jpg index fc9c507..d0e0e62 100644 Binary files a/media/whale_readme.jpg and b/media/whale_readme.jpg differ diff --git a/media/whale_reame_old.jpg b/media/whale_reame_old.jpg new file mode 100644 index 0000000..fc9c507 Binary files /dev/null and b/media/whale_reame_old.jpg differ diff --git a/prompts/base/coder_agent.txt b/prompts/base/coder_agent.txt index 764f409..51ac111 100644 --- a/prompts/base/coder_agent.txt +++ b/prompts/base/coder_agent.txt @@ -49,6 +49,6 @@ Some rules: - Do not ever use user input, input are not supported by the system. - Do not ever tell user how to run it. user know it. - For simple explanation you don't need to code. -- If using gui, make sure echap close the program +- If using gui, make sure echap or exit button close the program - No lazyness, write and rewrite full code every time - If query is unclear say REQUEST_CLARIFICATION \ No newline at end of file diff --git a/sources/agents/code_agent.py b/sources/agents/code_agent.py index 396e21b..daa516a 100644 --- a/sources/agents/code_agent.py +++ b/sources/agents/code_agent.py @@ -61,6 +61,8 @@ class CoderAgent(Agent): self.last_answer = answer if exec_success: break + pretty_print("Execution failure", color="failure") + pretty_print("Correcting code...", color="status") self.show_answer() attempt += 1 if attempt == max_attempts: diff --git a/sources/interaction.py b/sources/interaction.py index 10264e4..9fa1155 100644 --- a/sources/interaction.py +++ b/sources/interaction.py @@ -1,3 +1,4 @@ +import readline from typing import List, Tuple, Type, Dict from sources.text_to_speech import Speech diff --git a/sources/router.py b/sources/router.py index b152413..266e9fb 100644 --- a/sources/router.py +++ b/sources/router.py @@ -108,6 +108,7 @@ class AgentRouter: ("Search the web for recent articles on space exploration", "LOW"), ("Find a public API for movie data and build a web app to display movie ratings", "HIGH"), ("Write a bash script to list all files in a directory", "LOW"), + ("when is the exam period for master student in france?", "LOW"), ("Check if a folder named ‘Photos_2024’ exists on my desktop", "LOW"), ("Create a Python script to rename all files in a folder based on their creation date", "LOW"), ("Search the web for tutorials on machine learning and build a simple ML model in Python", "HIGH"), @@ -163,6 +164,8 @@ class AgentRouter: ("Help me organize my desktop files into folders by type.", "files"), ("What’s your favorite movie and why?", "talk"), ("what directory are you in ?", "files"), + ("what files you seing rn ?", "files"), + ("When is the period of university exam in france ?", "web"), ("Search my drive for a file named budget_2024.xlsx", "files"), ("Write a Python function to sort a list of dictionaries by key", "code"), ("Find the latest updates on quantum computing on the web", "web"),