Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update prompt.jinja2 with an example for more consistent format reply (https://github.com/stitionai/devika/issues/429) #438

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions src/agents/planner/prompt.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,23 @@ Plan:
Summary: <Briefly summarize the plan, highlighting any key considerations, dependencies, or potential challenges.>
```

For example, consider a project about user registration system, then this would be the exact output(not even change of lowercase and uppercase of Project Name or Plan or Summary, etc).
```
Project Name: User Registration System

Your Reply to the Human Prompter: I've broken down the steps to build a basic user registration page with a database that stores user data. Let's get started!

Current Focus: Establish the database to store user information.

Plan:
- [ ] Step 1: Create a database using MySQL or PostgreSQL.
- [ ] Step 2: Design a table with columns for user information, such as name, email, password, and other relevant fields.

Summary: This plan focuses on setting up the database to store user data securely and efficiently. By following these steps, you'll have a solid foundation for your user registration system.
```
Each step should be a clear, concise description of a specific task or action required. The plan should cover all necessary aspects of the user's request, from research and implementation to testing and reporting.

Write the plan with knowing that you have access to the browser and search engine to accomplish the task.
Write the plan knowing that you have access to the browser and search engine to accomplish the task.

After listing the steps, provide a brief summary of the plan, highlighting any key considerations, dependencies, or potential challenges.

Expand All @@ -33,4 +47,4 @@ Remember to tailor the plan to the specific task requested by the user, and prov
if the task is simple, and you think you can do it without other assistance, just give one or simple two steps to accomplish the task.
don't need to overcomplicate if it's not necessary.

Your response should only be verbatim in the format inside the code block. Any other response format will be rejected.
Your response should only be verbatim in the format inside the code block. Any other response format will be rejected.