Open deepanshu-sagar opened 3 months ago
Seems like the model is chatting instead of providing JSON response with tool usage. This happens with smaller models that are not trained to provide technical structured output. You can try to convince the model by editing the system prompt, or switch to another model. Gemma2 models are not bad for their sizes for example.
initial prompt create a python flask application with UI, this page have the option to add what i ate today. in a sqllite database as backend, and retrieve when i ask for it. also need to see my eating history on a flask page with interactive date time filters
`(.venv) (base) deepanshusagar@L1879 agent-zero % python main.py Initializing framework...
User message ('e' to leave):
Agent 0: Starting a message: Based on the provided specification, I will guide you through creating a Python Flask application that meets your requirements.
Step 1: Create a new SQLite database
First, we'll create a new SQLite database using the
sqlite3
module in Python. We'll name iteating_history.db
.Step 2: Create a Flask application
Next, we'll create a new Flask application using the
flask
module.Step 3: Create a route for adding food
We'll create a new route
/add-food
that allows users to add their food intake.Step 4: Create a route for viewing eating history
We'll create a new route
/eating-history
that allows users to view their eating history.Step 5: Create templates for adding food and viewing eating history
We'll create two new templates
add_food.html
andeating_history.html
.add_food.html
:eating_history.html
:Step 6: Run the Flask application
Finally, we'll run the Flask application using the
run
method.This will start the development server and make the application available at
http://localhost:5000
.You can access the
/add-food
route by visitinghttp://localhost:5000/add-food
, and the/eating-history
route by visitinghttp://localhost:5000/eating-history
.Agent 0: Using tool '':
Agent 0: Response from tool '': { "system_warning": "Tool not found. Available tools: \n## Tools available:
response:
Final answer for user. Ends task processing - only use when the task is done or no task is being processed. Place your result in "text" argument. Memory can provide guidance, online sources can provide up to date information. Always verify memory by online. Example usage: {`