Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(integrations-service): Add Browserbase provider #776

Merged
merged 1 commit into from
Oct 30, 2024
Merged
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
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
Loading