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

Add Vision Agent #24

Merged
merged 4 commits into from
Mar 25, 2024
Merged
Show file tree
Hide file tree
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
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
Loading