Skip to content

feat: add tool_tavily_search#67

Open
Halo1236 wants to merge 4 commits into1Panel-dev:mainfrom
Halo1236:main
Open

feat: add tool_tavily_search#67
Halo1236 wants to merge 4 commits into1Panel-dev:mainfrom
Halo1236:main

Conversation

@Halo1236
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings March 18, 2026 06:44
@f2c-ci-robot
Copy link

f2c-ci-robot bot commented Mar 18, 2026

Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@f2c-ci-robot
Copy link

f2c-ci-robot bot commented Mar 18, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a new Tavily Search tool package under tools/tool_tavily_search, providing a single-entry Python function to call Tavily’s Search API and returning JSON for downstream workflow use.

Changes:

  • Introduces tavily_search() implementation with parameter handling and HTTP error reporting.
  • Adds end-user documentation (README.md) and tool metadata (data.yaml).
  • Adds a tool icon (logo.png).

Reviewed changes

Copilot reviewed 3 out of 5 changed files in this pull request and generated 4 comments.

File Description
tools/tool_tavily_search/tavily_search.py Implements Tavily Search API request/response handling and JSON-wrapped results
tools/tool_tavily_search/README.md Documents tool purpose, parameters, and embeds the Python implementation
tools/tool_tavily_search/data.yaml Registers tool name/tags/title/description metadata
tools/tool_tavily_search/logo.png Adds icon asset for the tool

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +16 to +20
if text in ["true", "basic", "advanced", "markdown", "text"]:
if text == "true":
return True
return text
return False
Comment on lines +22 to +26
payload = {
"query": query,
"topic": topic or "general",
"search_depth": search_depth or "basic",
"max_results": max_results
Comment on lines +3 to +5


def tavily_search(query: str, topic: str = "general", search_depth: str = "basic", max_results: int = 5, include_answer: str = "false", include_raw_content: str = "false", tavily_api_key: str = ""):
Comment on lines +26 to +30
| `topic` | string | 否 | 引用参数 | 搜索主题,支持 `general`(默认)/ `news` / `finance` |
| `search_depth` | string | 否 | 引用参数 | 搜索深度,支持 `basic`(默认)/ `advanced` / `fast` / `ultra-fast` |
| `max_results` | int | 否 | 自定义参数 | 最大返回结果数,默认 5,范围 0-20 |
| `include_answer` | string | 否 | 引用参数 | 是否包含 LLM 生成的答案,支持 `false`(默认)/ `true` / `basic` / `advanced` |
| `include_raw_content` | string | 否 | 引用参数 | 是否包含正文内容,支持 `false`(默认)/ `true` / `markdown` / `text` |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants