PendingHandsToolService
@Service public class PendingHandsToolService
源码Source
io/agentscope/builder/web/managed/selfhosted/PendingHandsToolService.java:30–89待处理 Hands 工具服务,承载智能体的部署、调度与服务化运行。位于 io.agentscope.builder.web.managed.selfhosted 包。核心成员包括 listPending、PendingHandsToolService。
Resolves pending agent.tool_use events that still lack a matching tool result.
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public PendingHandsToolService(SessionEventLog eventLog) | 初始化 `PendingHandsToolService` 实例。 Creates a new instance. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public List<Map<String, Object>> listPending(String sessionId) | 返回待处理工具_使用负载(标识/名称/输入/状态)用于会话。 Returns pending tool_use payloads (id / name / input / state) for a session. |
构造器详情Constructor Detail
PendingHandsToolService
public PendingHandsToolService(SessionEventLog eventLog)
初始化 PendingHandsToolService 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
eventLog | SessionEventLog | 事件日志(类型 `SessionEventLog`)。The event log. |
源码Source
io/agentscope/builder/web/managed/selfhosted/PendingHandsToolService.java:35–37方法详情Method Detail
listPending
public List<Map<String, Object>> listPending(String sessionId)
返回待处理工具_使用负载(标识/名称/输入/状态)用于会话。
Returns pending tool_use payloads (id / name / input / state) for a session.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
sessionId | String | 会话标识(类型 `String`)。The session id. |
List<Map<String, Object>>返回列出>。Returns list.
源码Source
io/agentscope/builder/web/managed/selfhosted/PendingHandsToolService.java:40–84