From cc2035c746c7c2cba808683683fd44b8f3ba42a0 Mon Sep 17 00:00:00 2001 From: Asia <2736300+humpydonkey@users.noreply.github.com> Date: Tue, 9 Apr 2024 15:07:45 -0700 Subject: [PATCH] Fix param name mismatch (#45) Co-authored-by: Yazhou Cao --- .gitignore | 4 +++- vision_agent/tools/tools.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 4a5a9be5..910be57f 100644 --- a/.gitignore +++ b/.gitignore @@ -92,4 +92,6 @@ docs-build site # Local or WIP files -local/ \ No newline at end of file +local/ + +vision-agent-benchmark/ \ No newline at end of file diff --git a/vision_agent/tools/tools.py b/vision_agent/tools/tools.py index 6e646fed..f2c4e186 100644 --- a/vision_agent/tools/tools.py +++ b/vision_agent/tools/tools.py @@ -495,7 +495,7 @@ class BboxArea(Tool): name = "bbox_area_" description = "'bbox_area_' returns the area of the bounding box in pixels normalized to 2 decimal places." usage = { - "required_parameters": [{"name": "bbox", "type": "List[int]"}], + "required_parameters": [{"name": "bboxes", "type": "List[int]"}], "examples": [ { "scenario": "If you want to calculate the area of the bounding box [0.2, 0.21, 0.34, 0.42]",