devika icon indicating copy to clipboard operation
devika copied to clipboard

[Bug] Incomplete Prompt leading to bugs

Open akhtarmdsaad opened this issue 1 year ago • 1 comments

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.

akhtarmdsaad avatar Jun 12 '24 05:06 akhtarmdsaad

Agent Décision is not used anyway

darrassi1 avatar Jun 12 '24 06:06 darrassi1