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

feat: only expose FUNCTION_TOOLS to tool info for user to select from UI #224

Merged
merged 1 commit into from
Sep 5, 2024
Merged
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
4 changes: 2 additions & 2 deletions vision_agent/tools/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -1820,7 +1820,6 @@ def overlay_counting_results(

FUNCTION_TOOLS = [
owl_v2,
extract_frames,
ocr,
clip,
vit_image_classification,
Expand All @@ -1841,6 +1840,7 @@ def overlay_counting_results(
]

UTIL_TOOLS = [
extract_frames,
save_json,
load_image,
save_image,
Expand All @@ -1856,7 +1856,7 @@ def overlay_counting_results(
TOOLS_DF = get_tools_df(TOOLS) # type: ignore
TOOL_DESCRIPTIONS = get_tool_descriptions(TOOLS) # type: ignore
TOOL_DOCSTRING = get_tool_documentation(TOOLS) # type: ignore
TOOLS_INFO = get_tools_info(TOOLS) # type: ignore
TOOLS_INFO = get_tools_info(FUNCTION_TOOLS) # type: ignore
UTILITIES_DOCSTRING = get_tool_documentation(
[
save_json,
Expand Down
Loading