Skip to content

Commit

Permalink
feat: add AskNews toolkit (#884)
Browse files Browse the repository at this point in the history
Co-authored-by: Miles Bennett <[email protected]>
Co-authored-by: Zack <[email protected]>
Co-authored-by: Wendong <[email protected]>
Co-authored-by: Isaac Jin <[email protected]>
Co-authored-by: Wendong-Fan <[email protected]>
  • Loading branch information
6 people authored Oct 16, 2024
1 parent 43c39f1 commit 081d20b
Show file tree
Hide file tree
Showing 8 changed files with 946 additions and 37 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ jobs:
NEO4J_USERNAME: "${{ secrets.NEO4J_USERNAME }}"
NEO4J_PASSWORD: "${{ secrets.NEO4J_PASSWORD }}"
FIRECRAWL_API_KEY: "${{ secrets.FIRECRAWL_API_KEY }}"
ASKNEWS_CLIENT_ID: "${{ secrets.ASKNEWS_CLIENT_ID }}"
ASKNEWS_CLIENT_SECRET: "${{ secrets.ASKNEWS_CLIENT_SECRET }}"
run: |
source venv/bin/activate
pytest --fast-test-mode ./test
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/pytest_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ jobs:
NEO4J_USERNAME: "${{ secrets.NEO4J_USERNAME }}"
NEO4J_PASSWORD: "${{ secrets.NEO4J_PASSWORD }}"
FIRECRAWL_API_KEY: "${{ secrets.FIRECRAWL_API_KEY }}"
ASKNEWS_CLIENT_ID: "${{ secrets.ASKNEWS_CLIENT_ID }}"
ASKNEWS_CLIENT_SECRET: "${{ secrets.ASKNEWS_CLIENT_SECRET }}"
run: poetry run pytest --fast-test-mode test/

pytest_package_llm_test:
Expand Down Expand Up @@ -79,6 +81,8 @@ jobs:
NEO4J_USERNAME: "${{ secrets.NEO4J_USERNAME }}"
NEO4J_PASSWORD: "${{ secrets.NEO4J_PASSWORD }}"
FIRECRAWL_API_KEY: "${{ secrets.FIRECRAWL_API_KEY }}"
ASKNEWS_CLIENT_ID: "${{ secrets.ASKNEWS_CLIENT_ID }}"
ASKNEWS_CLIENT_SECRET: "${{ secrets.ASKNEWS_CLIENT_SECRET }}"
run: poetry run pytest --llm-test-only test/

pytest_package_very_slow_test:
Expand Down Expand Up @@ -113,4 +117,6 @@ jobs:
NEO4J_USERNAME: "${{ secrets.NEO4J_USERNAME }}"
NEO4J_PASSWORD: "${{ secrets.NEO4J_PASSWORD }}"
FIRECRAWL_API_KEY: "${{ secrets.FIRECRAWL_API_KEY }}"
ASKNEWS_CLIENT_ID: "${{ secrets.ASKNEWS_CLIENT_ID }}"
ASKNEWS_CLIENT_SECRET: "${{ secrets.ASKNEWS_CLIENT_SECRET }}"
run: poetry run pytest --very-slow-test-only test/
7 changes: 5 additions & 2 deletions camel/toolkits/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,16 @@
from .search_toolkit import SearchToolkit, SEARCH_FUNCS
from .weather_toolkit import WeatherToolkit, WEATHER_FUNCS
from .dalle_toolkit import DalleToolkit, DALLE_FUNCS
from .ask_news_toolkit import AskNewsToolkit, AsyncAskNewsToolkit

from .linkedin_toolkit import LinkedInToolkit
from .reddit_toolkit import RedditToolkit
from .base import BaseToolkit
from .google_maps_toolkit import GoogleMapsToolkit
from .code_execution import CodeExecutionToolkit
from .github_toolkit import GithubToolkit
from .google_scholar_toolkit import GoogleScholarToolkit
from .arxiv_toolkit import ArxivToolkit
from .linkedin_toolkit import LinkedInToolkit
from .reddit_toolkit import RedditToolkit
from .slack_toolkit import SlackToolkit
from .twitter_toolkit import TwitterToolkit
from .open_api_toolkit import OpenAPIToolkit
Expand All @@ -59,6 +60,8 @@
'LinkedInToolkit',
'RedditToolkit',
'CodeExecutionToolkit',
'AskNewsToolkit',
'AsyncAskNewsToolkit',
'GoogleScholarToolkit',
'ArxivToolkit',
'MATH_FUNCS',
Expand Down
Loading

0 comments on commit 081d20b

Please sign in to comment.