From 416ae380d7c69ede89061992543465e3598872c4 Mon Sep 17 00:00:00 2001 From: Dillon Laird Date: Fri, 23 Aug 2024 18:21:44 -0700 Subject: [PATCH] fixed plan format --- vision_agent/agent/vision_agent_coder_prompts.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/vision_agent/agent/vision_agent_coder_prompts.py b/vision_agent/agent/vision_agent_coder_prompts.py index 9f4020f8..c68f73fe 100644 --- a/vision_agent/agent/vision_agent_coder_prompts.py +++ b/vision_agent/agent/vision_agent_coder_prompts.py @@ -30,19 +30,19 @@ **Instructions**: 1. Based on the context and tools you have available, create a plan of subtasks to achieve the user request. -2. Output three different plans each utilize a different strategy or tool. +2. Output three different plans each utilize a different strategy or set of tools. Output a list of jsons in the following format ```json {{ "plan1": - [ - {{ - "thoughts": str # your thought process for this plan - "instructions": str # what you should do in this task associated with a tool - }} - ], + {{ + "thoughts": str # your thought process for choosing this plan + "instructions": [ + str # what you should do in this task associated with a tool + ] + }}, "plan2": ..., "plan3": ... }} @@ -128,7 +128,7 @@ **Instructions**: 1. Given the plans, image, and tool outputs, decide which plan is the best to achieve the user request. -2. Try solving the problem yourself given the image and pick the plan which matches your solution the best. +2. Try solving the problem yourself given the image and pick the plan that matches your solution the best. 3. Output a JSON object with the following format: {{ "thoughts": str # your thought process for choosing the best plan