AS AgentScopeAPI 手册 / API Reference

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
eventLogSessionEventLog事件日志(类型 `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
sessionIdString会话标识(类型 `String`)。The session id.
返回Returns List<Map<String, Object>>
返回列出>。Returns list.
源码Source io/agentscope/builder/web/managed/selfhosted/PendingHandsToolService.java:40–84
基于官方固定版本源码静态生成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.