AS AgentScopeAPI 手册 / API Reference

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 )
源码Source io/agentscope/runtime/engine/agents/saa/tools/browser/BrowserDragger.java:61–81

承载 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.

记录组件摘要Record Component Summary

组件Component类型Type说明Description
startElementString
启动 `startElement`。
Starts the element.
startRefString
启动引用。
Starts the ref.
endElementString
执行 `endElement` 方法。
Performs the end element operation.
endRefString
执行结束引用相关操作。
Performs the end ref operation.

构造器摘要Constructor Summary

构造器Constructor说明Description
public DragToolRequest(String startElement, String startRef, String endElement, String endRef)
初始化 `DragToolRequest` 实例。
Creates a new instance.

记录组件详情Record Component Detail

startElement

String startElement

启动 startElement。

Starts the element.

源码Source io/agentscope/runtime/engine/agents/saa/tools/browser/BrowserDragger.java:61–81

startRef

String startRef

启动引用。

Starts the ref.

源码Source io/agentscope/runtime/engine/agents/saa/tools/browser/BrowserDragger.java:61–81

endElement

String endElement

执行 endElement 方法。

Performs the end element operation.

源码Source io/agentscope/runtime/engine/agents/saa/tools/browser/BrowserDragger.java:61–81

endRef

String endRef

执行结束引用相关操作。

Performs the end ref operation.

源码Source io/agentscope/runtime/engine/agents/saa/tools/browser/BrowserDragger.java:61–81

构造器详情Constructor Detail

DragToolRequest

public DragToolRequest(String startElement, String startRef, String endElement, String endRef)

初始化 DragToolRequest 实例。

Creates a new instance.

参数Parameters
名称Name类型Type说明Description
startElementString启动 Element(类型 `String`)。The start element.
startRefString启动引用(类型 `String`)。The start ref.
endElementString结束 Element(类型 `String`)。The end element.
endRefString结束引用(类型 `String`)。The end ref.
源码Source io/agentscope/runtime/engine/agents/saa/tools/browser/BrowserDragger.java:75–80
基于官方固定版本源码静态生成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.