SelectOptionToolRequest
public record SelectOptionToolRequest( @JsonProperty(required = true, value = "element") @JsonPropertyDescription("Human-readable element description") String element, @JsonProperty(required = true, value = "ref") @JsonPropertyDescription("Exact target element reference from the page snapshot") String ref, @JsonProperty(required = true, value = "values") @JsonPropertyDescription("Array of values to select in the dropdown") String[] values )
源码Source
io/agentscope/runtime/engine/agents/saa/tools/browser/BrowserOptionSelector.java:61–77承载选择选项工具请求数据的记录类型。位于 io.agentscope.runtime.engine.agents.saa.tools.browser 包。核心成员包括 element、ref、values、SelectOptionToolRequest。
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 |
|---|---|---|
element | String | 执行 `element` 方法。 Performs the element operation. |
ref | String | 执行引用相关操作。 Performs the ref operation. |
values | String[] | 执行值相关操作。 Performs the values operation. |
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public SelectOptionToolRequest(String element, String ref, String[] values) | 初始化 `SelectOptionToolRequest` 实例。 Creates a new instance. |
记录组件详情Record Component Detail
element
String element执行 element 方法。
Performs the element operation.
源码Source
io/agentscope/runtime/engine/agents/saa/tools/browser/BrowserOptionSelector.java:61–77ref
String ref执行引用相关操作。
Performs the ref operation.
源码Source
io/agentscope/runtime/engine/agents/saa/tools/browser/BrowserOptionSelector.java:61–77values
String[] values执行值相关操作。
Performs the values operation.
源码Source
io/agentscope/runtime/engine/agents/saa/tools/browser/BrowserOptionSelector.java:61–77构造器详情Constructor Detail
SelectOptionToolRequest
public SelectOptionToolRequest(String element, String ref, String[] values)
初始化 SelectOptionToolRequest 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
element | String | element(类型 `String`)。The element. |
ref | String | 引用(类型 `String`)。The ref. |
values | String[] | 值(类型 `String[]`)。The values. |
源码Source
io/agentscope/runtime/engine/agents/saa/tools/browser/BrowserOptionSelector.java:72–76