AS AgentScopeAPI 手册 / API Reference

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:32

RemoteConfirmDecision

public RemoteConfirmDecision(String toolCallId, boolean approved)

初始化 RemoteConfirmDecision 实例。

Creates a new instance.

参数Parameters
名称Name类型Type说明Description
toolCallIdString工具调用标识(类型 `String`)。The tool call id.
approvedbooleanapproved(类型 `boolean`)。The approved.
源码Source io/agentscope/harness/agent/subagent/protocol/RemoteConfirmDecision.java:34–37

RemoteConfirmDecision

public RemoteConfirmDecision(String toolCallId, boolean approved, String reason)

初始化 RemoteConfirmDecision 实例。

Creates a new instance.

参数Parameters
名称Name类型Type说明Description
toolCallIdString工具调用标识(类型 `String`)。The tool call id.
approvedbooleanapproved(类型 `boolean`)。The approved.
reasonString原因(类型 `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.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/harness/agent/subagent/protocol/RemoteConfirmDecision.java:45–47

setToolCallId

public void setToolCallId(String toolCallId)

设置工具调用标识。

Sets the tool call id.

参数Parameters
名称Name类型Type说明Description
toolCallIdString工具调用标识(类型 `String`)。The tool call id.
源码Source io/agentscope/harness/agent/subagent/protocol/RemoteConfirmDecision.java:49–51

isApproved

public boolean isApproved()

判断是否 isApproved。

Returns whether the approved.

返回Returns boolean
返回布尔值,表示判断结果。Returns a boolean result.
源码Source io/agentscope/harness/agent/subagent/protocol/RemoteConfirmDecision.java:53–55

setApproved

public void setApproved(boolean approved)

设置 setApproved。

Sets the approved.

参数Parameters
名称Name类型Type说明Description
approvedbooleanapproved(类型 `boolean`)。The approved.
源码Source io/agentscope/harness/agent/subagent/protocol/RemoteConfirmDecision.java:57–59

getReason

public String getReason()

获取推理。

Returns the reason.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/harness/agent/subagent/protocol/RemoteConfirmDecision.java:61–63

setReason

public void setReason(String reason)

设置推理。

Sets the reason.

参数Parameters
名称Name类型Type说明Description
reasonString原因(类型 `String`)。The reason.
源码Source io/agentscope/harness/agent/subagent/protocol/RemoteConfirmDecision.java:65–67
基于官方固定版本源码静态生成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.