-
Notifications
You must be signed in to change notification settings - Fork 890
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(agents-api,integrations): Misc fixes and tenacity retry in integr…
…ations" (#710) - **fix(integrations): General upkeep + tenacity retry** - **feat(agents-api): Misc fixes in agents-api** <!-- ELLIPSIS_HIDDEN --> ---- > [!IMPORTANT] > Add `tenacity` retry logic to integration functions, remove unused integrations, and improve agents-api and integrations services. > > - **Integrations**: > - Add `tenacity` retry logic to `search()` in `brave.py`, `load()` in `browserbase.py`, `send()` in `email.py`, `crawl()` in `spider.py`, `get()` in `weather.py`, and `search()` in `wikipedia.py`. > - Remove unused integrations: `dalle_image_generator.py`, `duckduckgo_search.py`, `gmail/send_mail.py`, `hacker_news.py`, and `request.py`. > - Remove `hacker_news` provider from `providers.py`. > - **Agents API**: > - Update `log_step()` in `log_step.py` to include `include_remote=True` in `context.model_dump()`. > - Add `NEWLINE` constant to `utils.py` and `template.py`. > - Add `ApplicationError` to non-retryable exceptions in `interceptors.py`. > - Increase sleep time in `test_doc()` in `fixtures.py` from 0.1 to 0.5 seconds. > - **Misc**: > - Remove unused imports in `base_models.py`, `email.py`, `wikipedia.py`, `get_integration.py`, and `execute_integration.py`. > - Add `tenacity` to `pyproject.toml` dependencies. > > <sup>This description was created by </sup>[<img alt="Ellipsis" src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=julep-ai%2Fjulep&utm_source=github&utm_medium=referral)<sup> for 55fe24a. It will automatically update as commits are pushed.</sup> <!-- ELLIPSIS_HIDDEN --> --------- Signed-off-by: Diwank Singh Tomer <[email protected]>
- Loading branch information
Showing
27 changed files
with
92 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,8 +31,15 @@ jobs: | |
git add README-*.md | ||
git commit -m "chore(readme): translate README.md" | ||
- name: Push changes | ||
uses: ad-m/[email protected] | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v7 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: ${{ github.ref }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
commit-message: "chore(readme): translate README.md" | ||
title: "Translate README.md" | ||
body: "This PR updates the translated versions of README.md" | ||
branch: "translate-readme" | ||
base: dev | ||
add-paths: | | ||
README.md | ||
README-*.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -178,7 +178,7 @@ def test_doc( | |
client=client, | ||
) | ||
|
||
time.sleep(0.1) | ||
time.sleep(0.5) | ||
|
||
yield doc | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
from typing import Literal | ||
|
||
from langchain_core.documents import Document | ||
from pydantic import Field | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
integrations-service/integrations/routers/integrations/get_integration.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
from typing import List | ||
|
||
from ...providers import providers | ||
from .router import router | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
integrations-service/integrations/utils/integrations/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
from .brave import search | ||
from .browserbase import load | ||
from .email import send | ||
from .hacker_news import fetch | ||
from .spider import crawl | ||
from .weather import get | ||
from .wikipedia import search |
6 changes: 6 additions & 0 deletions
6
integrations-service/integrations/utils/integrations/brave.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
integrations-service/integrations/utils/integrations/browserbase.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 0 additions & 22 deletions
22
integrations-service/integrations/utils/integrations/dalle_image_generator.py
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
integrations-service/integrations/utils/integrations/duckduckgo_search.py
This file was deleted.
Oops, something went wrong.
12 changes: 7 additions & 5 deletions
12
integrations-service/integrations/utils/integrations/email.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 0 additions & 6 deletions
6
integrations-service/integrations/utils/integrations/gmail/send_mail.py
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
integrations-service/integrations/utils/integrations/hacker_news.py
This file was deleted.
Oops, something went wrong.
Empty file.
10 changes: 9 additions & 1 deletion
10
integrations-service/integrations/utils/integrations/spider.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
integrations-service/integrations/utils/integrations/wikipedia.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.