AS AgentScopeAPI 手册 / API Reference

BrowserSnapshotTaker

public class BrowserSnapshotTaker extends BaseSandboxAwareTool<SnapshotTool, BrowserSnapshotTaker.SnapshotToolRequest, BrowserSnapshotTaker.SnapshotToolResponse>
源码Source io/agentscope/runtime/engine/agents/saa/tools/browser/BrowserSnapshotTaker.java:47–109

Browser 快照 Taker,让智能体以受控方式调用外部能力。位于 io.agentscope.runtime.engine.agents.saa.tools.browser 包,继承自 BaseSandboxAwareTool<SnapshotTool, BrowserSnapshotTaker.SnapshotToolRequest, BrowserSnapshotTaker.SnapshotToolResponse>。核心成员包括 apply、buildTool、BrowserSnapshotTaker。

A class in io.agentscope.runtime.engine.agents.saa.tools.browser that lets agents invoke external capabilities under control. Declared in io.agentscope.runtime.engine.agents.saa.tools.browser. Extends BaseSandboxAwareTool.

嵌套类摘要Nested Class Summary

类Class类型Kind说明Description
SnapshotToolRequest记录record
承载快照工具请求数据的记录类型。
A record in io.agentscope.runtime.engine.agents.saa.tools.browser that carries data used when components lets agents invoke external capabilities under control.
SnapshotToolResponse记录record
承载快照工具响应数据的记录类型。
A record in io.agentscope.runtime.engine.agents.saa.tools.browser that carries data used when components lets agents invoke external capabilities under control.
Response记录record
承载响应数据的记录类型。
A record in io.agentscope.runtime.engine.agents.saa.tools.browser that carries data used when components lets agents invoke external capabilities under control.

构造器摘要Constructor Summary

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

方法摘要Method Summary

方法Method说明Description
public SnapshotToolResponse apply(SnapshotToolRequest request, ToolContext toolContext)
执行 `apply` 方法。
Performs the apply operation.
public RuntimeFunctionToolCallback buildTool()
构建工具。
Builds the tool.

构造器详情Constructor Detail

BrowserSnapshotTaker

public BrowserSnapshotTaker()

初始化 BrowserSnapshotTaker 实例。

Creates a new instance.

源码Source io/agentscope/runtime/engine/agents/saa/tools/browser/BrowserSnapshotTaker.java:50–52

方法详情Method Detail

apply

public SnapshotToolResponse apply(SnapshotToolRequest request, ToolContext toolContext)

执行 apply 方法。

Performs the apply operation.

参数Parameters
名称Name类型Type说明Description
requestSnapshotToolRequest请求(类型 `SnapshotToolRequest`)。The request.
toolContextToolContext工具上下文(类型 `ToolContext`)。The tool context.
返回Returns SnapshotToolResponse
返回SnapshotToolResponse。Returns snapshot tool response.
源码Source io/agentscope/runtime/engine/agents/saa/tools/browser/BrowserSnapshotTaker.java:54–58

buildTool

public RuntimeFunctionToolCallback buildTool()

构建工具。

Builds the tool.

返回Returns RuntimeFunctionToolCallback
返回RuntimeFunctionToolCallback。Returns runtime function tool callback.
源码Source io/agentscope/runtime/engine/agents/saa/tools/browser/BrowserSnapshotTaker.java:89–108

嵌套类详情Nested Class Detail

SnapshotToolRequest

public record SnapshotToolRequest()

承载快照工具请求数据的记录类型。位于 io.agentscope.runtime.engine.agents.saa.tools.browser 包。核心成员包括 SnapshotToolRequest。

A record in io.agentscope.runtime.engine.agents.saa.tools.browser that carries data used when components lets agents invoke external capabilities under control. Declared in io.agentscope.runtime.engine.agents.saa.tools.browser.

SnapshotToolResponse

public record SnapshotToolResponse(@JsonProperty("Response") Response output)

承载快照工具响应数据的记录类型。位于 io.agentscope.runtime.engine.agents.saa.tools.browser 包。核心成员包括 output、SnapshotToolResponse。

A record in io.agentscope.runtime.engine.agents.saa.tools.browser that carries data used when components lets agents invoke external capabilities under control. Declared in io.agentscope.runtime.engine.agents.saa.tools.browser.

Response

@JsonClassDescription("The result contains browser tool output and message") public record Response(String result, String message)

承载响应数据的记录类型。位于 io.agentscope.runtime.engine.agents.saa.tools.browser 包。核心成员包括 result、message、Response。

A record in io.agentscope.runtime.engine.agents.saa.tools.browser that carries data used when components lets agents invoke external capabilities under control. Declared in io.agentscope.runtime.engine.agents.saa.tools.browser.

基于官方固定版本源码静态生成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.