Skip to content
Open
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
2 changes: 0 additions & 2 deletions agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ def __init__(
self._query = query
self._model_name = model_name
self._verbose = verbose
self.final_reasoning = None
self._client = genai.Client(
api_key=os.environ.get("GEMINI_API_KEY"),
vertexai=os.environ.get("USE_VERTEXAI", "0").lower() in ["true", "1"],
Expand Down Expand Up @@ -284,7 +283,6 @@ def run_one_iteration(self) -> Literal["COMPLETE", "CONTINUE"]:

if not function_calls:
print(f"Agent Loop Complete: {reasoning}")
self.final_reasoning = reasoning
return "COMPLETE"

function_call_strs = []
Expand Down
2 changes: 1 addition & 1 deletion computers/browserbase/browserbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def __enter__(self):
)
return self

def __exit__(self, exc_type, exc_val, exc_tb):
def __exit__(self, _exc_type, _exc_val, _exc_tb):
self._page.close()

if self._context:
Expand Down
3 changes: 1 addition & 2 deletions computers/playwright/playwright.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import logging
import termcolor
import time
import os
Expand Down Expand Up @@ -131,7 +130,7 @@ def __enter__(self):
)
return self

def __exit__(self, exc_type, exc_val, exc_tb):
def __exit__(self, _exc_type, _exc_val, _exc_tb):
if self._context:
self._context.close()
try:
Expand Down
1 change: 0 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import argparse
import os

from agent import BrowserAgent
from computers import BrowserbaseComputer, PlaywrightComputer
Expand Down
4 changes: 0 additions & 4 deletions test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ def test_main_playwright(self, mock_browser_agent, mock_playwright_computer, moc
mock_args.highlight_mouse = True
mock_args.query = 'test_query'
mock_args.model = 'test_model'
mock_args.api_server = None
mock_args.api_server_key = None
mock_arg_parser.return_value.parse_args.return_value = mock_args

main.main()
Expand All @@ -50,8 +48,6 @@ def test_main_browserbase(self, mock_browser_agent, mock_browserbase_computer, m
mock_args.env = 'browserbase'
mock_args.query = 'test_query'
mock_args.model = 'test_model'
mock_args.api_server = None
mock_args.api_server_key = None
mock_args.initial_url = 'test_url'
mock_args.highlight_mouse = False
mock_arg_parser.return_value.parse_args.return_value = mock_args
Expand Down