-
Notifications
You must be signed in to change notification settings - Fork 692
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: Tavily search integration #1039
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @dxmaptin ! Left some comments below, could we also support tavily extract further?
https://docs.tavily.com/docs/python-sdk/tavily-extract/getting-started
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please double check the content in toml file and rerun potry lock
to update
camel/toolkits/search_toolkit.py
Outdated
Example: | ||
{ | ||
'result_id': 1, | ||
'title': 'OpenAI', | ||
'description': 'An AI research organization...', | ||
'long_description': 'OpenAI is a non-profit...', | ||
'url': 'https://www.openai.com', | ||
'content': 'OpenAI focuses on AI safety...', | ||
'images': ['https://image.url/1.jpg'], | ||
'published_date': '2024-09-15' | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the output example should be under Returns
part
Fixed all issues raised above |
Co-authored-by: Wendong <w3ndong.fan@gmail.com>
Description
Implemented the Tavily search functionality and completed local testing with successful results.
Motivation and Context
This change introduces the search feature to the Tavily API. It addresses the need for efficient search capabilities. This feature enhances the user experience by enabling faster, more relevant search results.
Types of changes
What types of changes does your code introduce? Put an
x
in all the boxes that apply:Implemented Tasks
Checklist
Go over all the following points, and put an
x
in all the boxes that apply.If you are unsure about any of these, don't hesitate to ask. We are here to help!