RemoteConfirmDecision
@JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_NULL) public class RemoteConfirmDecision
源码Source
io/agentscope/harness/agent/subagent/protocol/RemoteConfirmDecision.java:24–68用于远程待处理工具确认的用户决策。位于 io.agentscope.harness.agent.subagent.protocol 包。核心成员包括 getToolCallId、setToolCallId、isApproved、setApproved、getReason、setReason。
User decision for a remote pending tool confirmation.
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public RemoteConfirmDecision() | 初始化 `RemoteConfirmDecision` 实例。 Creates a new instance. |
public RemoteConfirmDecision(String toolCallId, boolean approved) | 初始化 `RemoteConfirmDecision` 实例。 Creates a new instance. |
public RemoteConfirmDecision(String toolCallId, boolean approved, String reason) | 初始化 `RemoteConfirmDecision` 实例。 Creates a new instance. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public String getToolCallId() | 获取工具调用标识。 Returns the tool call id. |
public void setToolCallId(String toolCallId) | 设置工具调用标识。 Sets the tool call id. |
public boolean isApproved() | 判断是否 `isApproved`。 Returns whether the approved. |
public void setApproved(boolean approved) | 设置 `setApproved`。 Sets the approved. |
public String getReason() | 获取推理。 Returns the reason. |
public void setReason(String reason) | 设置推理。 Sets the reason. |
构造器详情Constructor Detail
RemoteConfirmDecision
public RemoteConfirmDecision()
初始化 RemoteConfirmDecision 实例。
Creates a new instance.
源码Source
io/agentscope/harness/agent/subagent/protocol/RemoteConfirmDecision.java:32RemoteConfirmDecision
public RemoteConfirmDecision(String toolCallId, boolean approved)
初始化 RemoteConfirmDecision 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
toolCallId | String | 工具调用标识(类型 `String`)。The tool call id. |
approved | boolean | approved(类型 `boolean`)。The approved. |
源码Source
io/agentscope/harness/agent/subagent/protocol/RemoteConfirmDecision.java:34–37RemoteConfirmDecision
public RemoteConfirmDecision(String toolCallId, boolean approved, String reason)
初始化 RemoteConfirmDecision 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
toolCallId | String | 工具调用标识(类型 `String`)。The tool call id. |
approved | boolean | approved(类型 `boolean`)。The approved. |
reason | String | 原因(类型 `String`)。The reason. |
源码Source
io/agentscope/harness/agent/subagent/protocol/RemoteConfirmDecision.java:39–43方法详情Method Detail
getToolCallId
public String getToolCallId()
获取工具调用标识。
Returns the tool call id.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/harness/agent/subagent/protocol/RemoteConfirmDecision.java:45–47setToolCallId
public void setToolCallId(String toolCallId)
设置工具调用标识。
Sets the tool call id.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
toolCallId | String | 工具调用标识(类型 `String`)。The tool call id. |
源码Source
io/agentscope/harness/agent/subagent/protocol/RemoteConfirmDecision.java:49–51isApproved
public boolean isApproved()
判断是否 isApproved。
Returns whether the approved.
boolean返回布尔值,表示判断结果。Returns a boolean result.
源码Source
io/agentscope/harness/agent/subagent/protocol/RemoteConfirmDecision.java:53–55setApproved
public void setApproved(boolean approved)
设置 setApproved。
Sets the approved.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
approved | boolean | approved(类型 `boolean`)。The approved. |
源码Source
io/agentscope/harness/agent/subagent/protocol/RemoteConfirmDecision.java:57–59getReason
public String getReason()
获取推理。
Returns the reason.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/harness/agent/subagent/protocol/RemoteConfirmDecision.java:61–63setReason
public void setReason(String reason)
设置推理。
Sets the reason.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
reason | String | 原因(类型 `String`)。The reason. |
源码Source
io/agentscope/harness/agent/subagent/protocol/RemoteConfirmDecision.java:65–67