HandleDialogToolRequest
public record HandleDialogToolRequest( @JsonProperty(required = true, value = "accept") @JsonPropertyDescription("Whether to accept the dialog") Boolean accept, @JsonProperty(value = "promptText") @JsonPropertyDescription("The text of the prompt in case of a prompt dialog") String promptText )
源码Source
io/agentscope/runtime/engine/agents/saa/tools/browser/BrowserDialogHandler.java:61–77承载 Handle Dialog 工具请求数据的记录类型。位于 io.agentscope.runtime.engine.agents.saa.tools.browser 包。核心成员包括 accept、promptText、HandleDialogToolRequest。
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 |
|---|---|---|
accept | Boolean | 执行 `accept` 方法。 Performs the accept operation. |
promptText | String | 执行提示词文本相关操作。 Performs the prompt text operation. |
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public HandleDialogToolRequest(Boolean accept, String promptText) | 初始化 `HandleDialogToolRequest` 实例。 Creates a new instance. |
记录组件详情Record Component Detail
accept
Boolean accept执行 accept 方法。
Performs the accept operation.
源码Source
io/agentscope/runtime/engine/agents/saa/tools/browser/BrowserDialogHandler.java:61–77promptText
String promptText执行提示词文本相关操作。
Performs the prompt text operation.
源码Source
io/agentscope/runtime/engine/agents/saa/tools/browser/BrowserDialogHandler.java:61–77构造器详情Constructor Detail
HandleDialogToolRequest
public HandleDialogToolRequest(Boolean accept, String promptText)
初始化 HandleDialogToolRequest 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
accept | Boolean | accept(类型 `Boolean`)。The accept. |
promptText | String | 提示词文本(类型 `String`)。The prompt text. |
源码Source
io/agentscope/runtime/engine/agents/saa/tools/browser/BrowserDialogHandler.java:69–76