BrowserDragger
public class BrowserDragger extends BaseSandboxAwareTool<DragTool, BrowserDragger.DragToolRequest, BrowserDragger.DragToolResponse>
io/agentscope/runtime/engine/agents/saa/tools/browser/BrowserDragger.java:48–127Browser Dragger,让智能体以受控方式调用外部能力。位于 io.agentscope.runtime.engine.agents.saa.tools.browser 包,继承自 BaseSandboxAwareTool<DragTool, BrowserDragger.DragToolRequest, BrowserDragger.DragToolResponse>。核心成员包括 apply、buildTool、BrowserDragger。
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 |
|---|---|---|
DragToolRequest | 记录record | 承载 Drag 工具请求数据的记录类型。 A record in io.agentscope.runtime.engine.agents.saa.tools.browser that carries data used when components lets agents invoke external capabilities under control. |
DragToolResponse | 记录record | 承载 Drag 工具响应数据的记录类型。 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 BrowserDragger() | 初始化 `BrowserDragger` 实例。 Creates a new instance. |
方法摘要Method Summary
构造器详情Constructor Detail
BrowserDragger
public BrowserDragger()
初始化 BrowserDragger 实例。
Creates a new instance.
io/agentscope/runtime/engine/agents/saa/tools/browser/BrowserDragger.java:51–53方法详情Method Detail
apply
public DragToolResponse apply(DragToolRequest request, ToolContext toolContext)
执行 apply 方法。
Performs the apply operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
request | DragToolRequest | 请求(类型 `DragToolRequest`)。The request. |
toolContext | ToolContext | 工具上下文(类型 `ToolContext`)。The tool context. |
DragToolResponseio/agentscope/runtime/engine/agents/saa/tools/browser/BrowserDragger.java:55–59buildTool
public RuntimeFunctionToolCallback buildTool()
构建工具。
Builds the tool.
RuntimeFunctionToolCallbackio/agentscope/runtime/engine/agents/saa/tools/browser/BrowserDragger.java:107–126嵌套类详情Nested Class Detail
DragToolRequest
public record DragToolRequest( @JsonProperty(required = true, value = "startElement") @JsonPropertyDescription("Human-readable source element description") String startElement, @JsonProperty(required = true, value = "startRef") @JsonPropertyDescription("Exact source element reference from the page snapshot") String startRef, @JsonProperty(required = true, value = "endElement") @JsonPropertyDescription("Human-readable target element description") String endElement, @JsonProperty(required = true, value = "endRef") @JsonPropertyDescription("Exact target element reference from the page snapshot") String endRef )承载 Drag 工具请求数据的记录类型。位于 io.agentscope.runtime.engine.agents.saa.tools.browser 包。核心成员包括 startElement、startRef、endElement、endRef、DragToolRequest。
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.
DragToolResponse
public record DragToolResponse(@JsonProperty("Response") Response output)承载 Drag 工具响应数据的记录类型。位于 io.agentscope.runtime.engine.agents.saa.tools.browser 包。核心成员包括 output、DragToolResponse。
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.