Skip to content

Commit

Permalink
feat(integrations-service): Add Browserbase provider
Browse files Browse the repository at this point in the history
  • Loading branch information
HamadaSalhab committed Oct 30, 2024
1 parent 101be27 commit e0d9137
Show file tree
Hide file tree
Showing 21 changed files with 2,279 additions and 327 deletions.
411 changes: 351 additions & 60 deletions agents-api/agents_api/autogen/Tools.py

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions agents-api/agents_api/common/exceptions/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"""

import asyncio
from typing import cast

import beartype
import beartype.roar
Expand Down Expand Up @@ -163,10 +164,12 @@ def is_retryable_error(error: BaseException) -> bool:

# Special handling for HTTP errors (because they're special snowflakes)
if isinstance(error, fastapi.exceptions.HTTPException):
error = cast(fastapi.exceptions.HTTPException, error)
if error.status_code in RETRYABLE_HTTP_STATUS_CODES:
return True

if isinstance(error, httpx.HTTPStatusError):
error = cast(httpx.HTTPStatusError, error)
if error.response.status_code in RETRYABLE_HTTP_STATUS_CODES:
return True

Expand Down
Loading

0 comments on commit e0d9137

Please sign in to comment.