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:33RemotePendingConfirm
public RemotePendingConfirm(String toolCallId, String toolName, String toolInputJson)
初始化 RemotePendingConfirm 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
toolCallId | String | 工具调用标识(类型 `String`)。The tool call id. |
toolName | String | 工具名称(类型 `String`)。The tool name. |
toolInputJson | String | 工具输入 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.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/harness/agent/subagent/protocol/RemotePendingConfirm.java:41–43setToolCallId
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/RemotePendingConfirm.java:45–47getToolName
public String getToolName()
获取工具名称。
Returns the tool name.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/harness/agent/subagent/protocol/RemotePendingConfirm.java:49–51setToolName
public void setToolName(String toolName)
设置工具名称。
Sets the tool name.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
toolName | String | 工具名称(类型 `String`)。The tool name. |
源码Source
io/agentscope/harness/agent/subagent/protocol/RemotePendingConfirm.java:53–55getToolInputJson
public String getToolInputJson()
获取工具输入 JSON。
Returns the tool input json.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/harness/agent/subagent/protocol/RemotePendingConfirm.java:57–59setToolInputJson
public void setToolInputJson(String toolInputJson)
设置工具输入 JSON。
Sets the tool input json.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
toolInputJson | String | 工具输入 JSON(类型 `String`)。The tool input json. |
源码Source
io/agentscope/harness/agent/subagent/protocol/RemotePendingConfirm.java:61–63equals
public boolean equals(Object o)
设置该参数。
Performs the equals operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
o | Object | o(类型 `Object`)。The o. |
boolean返回布尔值,表示判断结果。Returns a boolean result.
源码Source
io/agentscope/harness/agent/subagent/protocol/RemotePendingConfirm.java:65–76hashCode
public int hashCode()
返回 hashCode 结果。
Returns the hash code.
int返回数值结果。Returns a numeric result.
源码Source
io/agentscope/harness/agent/subagent/protocol/RemotePendingConfirm.java:78–81