Skip to content

Commit

Permalink
fix test errors
Browse files Browse the repository at this point in the history
  • Loading branch information
humpydonkey committed Jan 6, 2025
1 parent a4f8a9e commit 1c0fd60
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
5 changes: 4 additions & 1 deletion vision_agent/tools/tool_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
from urllib3.util.retry import Retry

from vision_agent.tools.tools_types import BoundingBoxes
from vision_agent.utils import should_report_tool_traces
from vision_agent.utils.exceptions import RemoteToolCallFailed
from vision_agent.utils.execute import Error, MimeType
from vision_agent.utils.image_utils import normalize_bbox
Expand All @@ -26,6 +25,10 @@
_LND_API_URL_v2 = f"{_LND_BASE_URL}/v1/tools"


def should_report_tool_traces() -> bool:
return bool(os.environ.get("REPORT_TOOL_TRACES", False))


class ToolCallTrace(BaseModel):
endpoint_url: str
type: str
Expand Down
2 changes: 1 addition & 1 deletion vision_agent/tools/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@
nms,
send_inference_request,
send_task_inference_request,
should_report_tool_traces,
single_nms,
)
from vision_agent.tools.tools_types import JobStatus
from vision_agent.utils import should_report_tool_traces
from vision_agent.utils.exceptions import FineTuneModelIsNotReady
from vision_agent.utils.execute import FileSerializer, MimeType
from vision_agent.utils.image_utils import (
Expand Down
5 changes: 0 additions & 5 deletions vision_agent/utils/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import os
from .execute import (
CodeInterpreter,
CodeInterpreterFactory,
Expand All @@ -8,7 +7,3 @@
Result,
)
from .sim import AzureSim, OllamaSim, Sim, load_sim, merge_sim


def should_report_tool_traces() -> bool:
return bool(os.environ.get("REPORT_TOOL_TRACES", False))

0 comments on commit 1c0fd60

Please sign in to comment.