Skip to content
New issue

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

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

Already on GitHub? # to your account

feat: add time range for tavily search component #6092

Merged
merged 7 commits into from
Feb 5, 2025
Merged

Conversation

edwinjosechittilappilly
Copy link
Collaborator

This pull request introduces a new feature to the TavilySearchComponent and includes minor formatting improvements to several test files.

New Feature:

  • Added a DropdownInput for time_range to the TavilySearchComponent, allowing users to specify a time range for search results. (src/backend/base/langflow/components/tools/tavily.py)
  • Updated the fetch_content method to include the time_range parameter in the request payload. (src/backend/base/langflow/components/tools/tavily.py)

Formatting Improvements:

  • Added a blank line for better readability in test_api_schemas.py. (src/backend/tests/unit/api/v1/test_api_schemas.py)
  • Rearranged import statements in mock_language_model.py for consistency. (src/backend/tests/unit/mock_language_model.py)
  • Added a blank line for better readability in test_serialization.py. (src/backend/tests/unit/serialization/test_serialization.py)
  • Added a blank line for better readability in test_schema.py. (src/backend/tests/unit/test_schema.py)

https://www.loom.com/share/b180455e756a448185d619396f294fb8?sid=9daef4fa-2fc9-4b67-964b-0ede702d8813

@edwinjosechittilappilly edwinjosechittilappilly marked this pull request as ready for review February 3, 2025 16:42
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. enhancement New feature or request labels Feb 3, 2025
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Feb 3, 2025
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Feb 3, 2025
Copy link
Contributor

@anovazzi1 anovazzi1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Feb 4, 2025
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Feb 4, 2025
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Feb 5, 2025
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Feb 5, 2025
@ogabrielluiz ogabrielluiz added this pull request to the merge queue Feb 5, 2025
Merged via the queue into main with commit 974cf2e Feb 5, 2025
33 checks passed
@ogabrielluiz ogabrielluiz deleted the fix-tavily branch February 5, 2025 18:59
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request lgtm This PR has been approved by a maintainer size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants