AS AgentScopeAPI 手册 / API Reference

WebSearchTool

public class WebSearchTool
源码Source io/agentscope/harness/coding/tools/WebSearchTool.java:34–115

Web 搜索工具,封装可被智能体调用的能力。位于 io.agentscope.harness.coding.tools 包。核心成员包括 web_search、WebSearchTool。

Web search tool using the Tavily API.

Requires TAVILY_API_KEY environment variable.

构造器摘要Constructor Summary

构造器Constructor说明Description
public WebSearchTool()
初始化 `WebSearchTool` 实例。
Creates a new instance.

方法摘要Method Summary

方法Method说明Description
public String web_search(String query, int maxResults)
执行 `web_search` 方法。
Performs the web search operation.

构造器详情Constructor Detail

WebSearchTool

public WebSearchTool()

初始化 WebSearchTool 实例。

Creates a new instance.

源码Source io/agentscope/harness/coding/tools/WebSearchTool.java:40–42

方法详情Method Detail

基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.