PressKeyToolRequest
public record PressKeyToolRequest( @JsonProperty(required = true, value = "key") @JsonPropertyDescription("Name of the key to press or a character to generate") String key )
源码Source
io/agentscope/runtime/engine/agents/saa/tools/browser/BrowserKeyPresser.java:61–69承载 Press 键工具请求数据的记录类型。位于 io.agentscope.runtime.engine.agents.saa.tools.browser 包。核心成员包括 key、PressKeyToolRequest。
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 |
|---|---|---|
key | String | 执行键相关操作。 Performs the key operation. |
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public PressKeyToolRequest(String key) | 初始化 `PressKeyToolRequest` 实例。 Creates a new instance. |
记录组件详情Record Component Detail
key
String key执行键相关操作。
Performs the key operation.
源码Source
io/agentscope/runtime/engine/agents/saa/tools/browser/BrowserKeyPresser.java:61–69构造器详情Constructor Detail
PressKeyToolRequest
public PressKeyToolRequest(String key)
初始化 PressKeyToolRequest 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
key | String | 键(类型 `String`)。The key. |
源码Source
io/agentscope/runtime/engine/agents/saa/tools/browser/BrowserKeyPresser.java:66–68