Skip to content

Commit

Permalink
Add Vision Agent (#24)
Browse files Browse the repository at this point in the history
* add vision agent

* fix issues with easytool

* update tools

* fixed typing issues
  • Loading branch information
dillonalaird authored Mar 25, 2024
1 parent dac4954 commit d68829d
Show file tree
Hide file tree
Showing 6 changed files with 624 additions and 3 deletions.
1 change: 1 addition & 0 deletions vision_agent/agent/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from .agent import Agent
from .easytool import EasyTool
from .reflexion import Reflexion
from .vision_agent import VisionAgent
2 changes: 1 addition & 1 deletion vision_agent/agent/easytool.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def format_tools(tools: Dict[int, Any]) -> str:
# Format this way so it's clear what the ID's are
tool_str = ""
for key in tools:
tool_str += f"ID: {key}, {tools[key]}\n"
tool_str += f"ID: {key} - {tools[key]}\n"
return tool_str


Expand Down
3 changes: 1 addition & 2 deletions vision_agent/agent/easytool_prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
Output: """

TASK_TOPOLOGY = """Given a complex user's question, I have decompose this question into some simple subtasks. I think there exists a logical connections and order amontg the tasks. Thus you need to help me output this logical connections and order.
You must ONLY output in a parsible JSON format with the following format:"
You must ONLY output in a parsible JSON format with the following format:
{{"Tasks": [{{"task": task, "id", task_id, "dep": [dependency_task_id1, dependency_task_id2, ...]}}]}}
Expand All @@ -31,7 +31,6 @@

CHOOSE_TOOL = """This is the user's question: {question}
These are the tools you can select to solve the question:
Tool List:
{tools}
Please note that:
Expand Down
Loading

0 comments on commit d68829d

Please sign in to comment.