stitionai / devika

Devika is an Agentic AI Software Engineer that can understand high-level human instructions, break them down into steps, research relevant information, and write code to achieve the given objective. Devika aims to be a competitive open-source alternative to Devin by Cognition AI.
MIT License
18.3k stars 2.38k forks source link

[Bug] Incomplete Prompt leading to bugs #592

Open akhtarmdsaad opened 3 months ago

akhtarmdsaad commented 3 months ago

Describe the bug

The written prompt in src/agents/decision/prompt.jinja2 is incomplete.

[
    {
        "function": "git_clone",
        "args": {
            "url": "https://github.com/username/repo"
        },
        "reply": "<Inform the user what you're doing here in a human-like response>"
    },
    {
        "function": "generate_pdf_document",
        "args": {
            "user_prompt": "I want to create a report on the project"
        },
        "reply": "<Inform the user what you're doing here in a human-like response>"
                             <------ Incomplete Response
]

Expected

[
    {
        "function": "git_clone",
        "args": {
            "url": "https://github.com/username/repo"
        },
        "reply": "<Inform the user what you're doing here in a human-like response>"
    },
    {
        "function": "generate_pdf_document",
        "args": {
            "user_prompt": "I want to create a report on the project"
        },
        "reply": "<Inform the user what you're doing here in a human-like response>"
    },
    {
        "function": "browser_interaction",
        "args": {
            "user_prompt": "<Write the user's prompt but even more verbose and detailed>"
        },
        "reply": "<Inform the user what you're doing here in a human-like response>"
    },
    {
        "function": "coding_project",
        "args": {
            "user_prompt": "<Write the user's prompt but even more verbose and detailed>"
        },
        "reply": "<Inform the user what you're doing here in a human-like response>"
    }
]

It may possibly give invalid response resulting in inefficiency of the decision agent.

darrassi1 commented 3 months ago

Agent Décision is not used anyway