AS AgentScopeAPI 手册 / API Reference

RemotePendingConfirm

@JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_NULL) public class RemotePendingConfirm
源码Source io/agentscope/harness/agent/subagent/protocol/RemotePendingConfirm.java:25–82

远程待处理确认,支持智能体之间的发现、委派与协作。位于 io.agentscope.harness.agent.subagent.protocol 包。核心成员包括 getToolCallId、setToolCallId、getToolName、setToolName、getToolInputJson、setToolInputJson。

A single remote tool call awaiting user confirmation (HITL).

构造器摘要Constructor Summary

构造器Constructor说明Description
public RemotePendingConfirm()
初始化 `RemotePendingConfirm` 实例。
Creates a new instance.
public RemotePendingConfirm(String toolCallId, String toolName, String toolInputJson)
初始化 `RemotePendingConfirm` 实例。
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 String getToolName()
获取工具名称。
Returns the tool name.
public void setToolName(String toolName)
设置工具名称。
Sets the tool name.
public String getToolInputJson()
获取工具输入 JSON。
Returns the tool input json.
public void setToolInputJson(String toolInputJson)
设置工具输入 JSON。
Sets the tool input json.
public boolean equals(Object o)
设置该参数。
Performs the equals operation.
public int hashCode()
返回 `hashCode` 结果。
Returns the hash code.

构造器详情Constructor Detail

RemotePendingConfirm

public RemotePendingConfirm()

初始化 RemotePendingConfirm 实例。

Creates a new instance.

源码Source io/agentscope/harness/agent/subagent/protocol/RemotePendingConfirm.java:33

RemotePendingConfirm

public RemotePendingConfirm(String toolCallId, String toolName, String toolInputJson)

初始化 RemotePendingConfirm 实例。

Creates a new instance.

参数Parameters
名称Name类型Type说明Description
toolCallIdString工具调用标识(类型 `String`)。The tool call id.
toolNameString工具名称(类型 `String`)。The tool name.
toolInputJsonString工具输入 JSON(类型 `String`)。The tool input json.
源码Source io/agentscope/harness/agent/subagent/protocol/RemotePendingConfirm.java:35–39

方法详情Method Detail

getToolCallId

public String getToolCallId()

获取工具调用标识。

Returns the tool call id.

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

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/RemotePendingConfirm.java:45–47

getToolName

public String getToolName()

获取工具名称。

Returns the tool name.

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

setToolName

public void setToolName(String toolName)

设置工具名称。

Sets the tool name.

参数Parameters
名称Name类型Type说明Description
toolNameString工具名称(类型 `String`)。The tool name.
源码Source io/agentscope/harness/agent/subagent/protocol/RemotePendingConfirm.java:53–55

getToolInputJson

public String getToolInputJson()

获取工具输入 JSON。

Returns the tool input json.

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

setToolInputJson

public void setToolInputJson(String toolInputJson)

设置工具输入 JSON。

Sets the tool input json.

参数Parameters
名称Name类型Type说明Description
toolInputJsonString工具输入 JSON(类型 `String`)。The tool input json.
源码Source io/agentscope/harness/agent/subagent/protocol/RemotePendingConfirm.java:61–63

equals

public boolean equals(Object o)

设置该参数。

Performs the equals operation.

参数Parameters
名称Name类型Type说明Description
oObjecto(类型 `Object`)。The o.
返回Returns boolean
返回布尔值,表示判断结果。Returns a boolean result.
源码Source io/agentscope/harness/agent/subagent/protocol/RemotePendingConfirm.java:65–76

hashCode

public int hashCode()

返回 hashCode 结果。

Returns the hash code.

返回Returns int
返回数值结果。Returns a numeric result.
源码Source io/agentscope/harness/agent/subagent/protocol/RemotePendingConfirm.java:78–81
基于官方固定版本源码静态生成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.