Skip to content

feat: add 'news' and 'finance' to search topic enum#118

Open
xingyaoww wants to merge 1 commit into
tavily-ai:mainfrom
xingyaoww:fix/add-news-finance-topic
Open

feat: add 'news' and 'finance' to search topic enum#118
xingyaoww wants to merge 1 commit into
tavily-ai:mainfrom
xingyaoww:fix/add-news-finance-topic

Conversation

@xingyaoww

@xingyaoww xingyaoww commented Mar 6, 2026

Copy link
Copy Markdown

The topic parameter in the tavily_search tool schema was hardcoded to only allow 'general', but the Tavily API supports 'general', 'news', and 'finance' topics.

  • Add 'news' and 'finance' to the topic enum in the tool input schema
  • Update the description to explain what each topic category is for

Ref: https://docs.tavily.com/documentation/api-reference/endpoint/search#body-topic


Note

Low Risk
Low risk schema-only change that expands accepted topic values for tavily_search; it doesn’t alter request execution logic beyond allowing additional inputs.

Overview
Updates the tavily_search tool input schema to allow topic values news and finance in addition to general.

Expands the topic field description to clarify intended usage for each category so clients can select the appropriate search mode.

Written by Cursor Bugbot for commit 91b4d31. This will update automatically on new commits. Configure here.

The topic parameter in the tavily_search tool schema was hardcoded to only
allow 'general', but the Tavily API supports 'general', 'news', and
'finance' topics.

- Add 'news' and 'finance' to the topic enum in the tool input schema
- Update the description to explain what each topic category is for

Ref: https://docs.tavily.com/documentation/api-reference/endpoint/search#body-topic

Co-authored-by: openhands <openhands@all-hands.dev>
@xingyaoww xingyaoww requested a review from a team March 6, 2026 03:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants