Skip to content

Commit

Permalink
fixed type issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonalaird committed Oct 11, 2024
1 parent eb7f7d2 commit 645ca02
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion vision_agent/agent/vision_agent_coder.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from pathlib import Path
from typing import Any, Callable, Dict, List, Optional, Sequence, Union, cast

from redbaron import RedBaron
from redbaron import RedBaron # type: ignore
from tabulate import tabulate

import vision_agent.tools as T
Expand Down
7 changes: 4 additions & 3 deletions vision_agent/tools/meta_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

import numpy as np
from IPython.display import display
from redbaron import RedBaron
from redbaron import RedBaron # type: ignore

import vision_agent as va
from vision_agent.agent.agent_utils import extract_json
Expand All @@ -25,8 +25,6 @@
from vision_agent.utils.image_utils import convert_to_b64, numpy_to_bytes
from vision_agent.utils.video import frames_to_bytes

# These tools are adapted from SWE-Agent https://github.com/princeton-nlp/SWE-agent

CURRENT_FILE = None
CURRENT_LINE = 0
DEFAULT_WINDOW_SIZE = 100
Expand Down Expand Up @@ -155,6 +153,9 @@ def __contains__(self, name: str) -> bool:
return name in self.artifacts


# These tools are adapted from SWE-Agent https://github.com/princeton-nlp/SWE-agent


def format_lines(lines: List[str], start_idx: int) -> str:
output = ""
for i, line in enumerate(lines):
Expand Down

0 comments on commit 645ca02

Please sign in to comment.