AS AgentScopeAPI 手册 / API Reference

ManagedDecision

public record ManagedDecision( String sessionId, String toolUseId, String approvalId, String agentTaskId, String attemptId, long dispatchGeneration, String turnId, String status, long decisionVersion, boolean allow, String reason)
源码Source io/agentscope/builder/web/toolbus/ToolConfirmationCoordinator.java:846–857

承载托管决策数据的记录类型。位于 io.agentscope.builder.web.toolbus 包。核心成员包括 sessionId、toolUseId、approvalId、agentTaskId、attemptId、dispatchGeneration。

Fully fenced control-plane decision callback.

记录组件摘要Record Component Summary

组件Component类型Type说明Description
sessionIdString
执行会话标识相关操作。
Performs the session id operation.
toolUseIdString
执行工具使用标识相关操作。
Performs the tool use id operation.
approvalIdString
执行 `approvalId` 方法。
Performs the approval id operation.
agentTaskIdString
执行智能体任务标识相关操作。
Performs the agent task id operation.
attemptIdString
执行尝试标识相关操作。
Performs the attempt id operation.
dispatchGenerationlong
执行 `dispatchGeneration` 方法。
Performs the dispatch generation operation.
turnIdString
执行轮次标识相关操作。
Performs the turn id operation.
statusString
执行状态相关操作。
Performs the status operation.
decisionVersionlong
执行决策版本相关操作。
Performs the decision version operation.
allowboolean
执行 `allow` 方法。
Performs the allow operation.
reasonString
执行推理相关操作。
Performs the reason operation.

记录组件详情Record Component Detail

sessionId

String sessionId

执行会话标识相关操作。

Performs the session id operation.

源码Source io/agentscope/builder/web/toolbus/ToolConfirmationCoordinator.java:846–857

toolUseId

String toolUseId

执行工具使用标识相关操作。

Performs the tool use id operation.

源码Source io/agentscope/builder/web/toolbus/ToolConfirmationCoordinator.java:846–857

approvalId

String approvalId

执行 approvalId 方法。

Performs the approval id operation.

源码Source io/agentscope/builder/web/toolbus/ToolConfirmationCoordinator.java:846–857

agentTaskId

String agentTaskId

执行智能体任务标识相关操作。

Performs the agent task id operation.

源码Source io/agentscope/builder/web/toolbus/ToolConfirmationCoordinator.java:846–857

attemptId

String attemptId

执行尝试标识相关操作。

Performs the attempt id operation.

源码Source io/agentscope/builder/web/toolbus/ToolConfirmationCoordinator.java:846–857

dispatchGeneration

long dispatchGeneration

执行 dispatchGeneration 方法。

Performs the dispatch generation operation.

源码Source io/agentscope/builder/web/toolbus/ToolConfirmationCoordinator.java:846–857

turnId

String turnId

执行轮次标识相关操作。

Performs the turn id operation.

源码Source io/agentscope/builder/web/toolbus/ToolConfirmationCoordinator.java:846–857

status

String status

执行状态相关操作。

Performs the status operation.

源码Source io/agentscope/builder/web/toolbus/ToolConfirmationCoordinator.java:846–857

decisionVersion

long decisionVersion

执行决策版本相关操作。

Performs the decision version operation.

源码Source io/agentscope/builder/web/toolbus/ToolConfirmationCoordinator.java:846–857

allow

boolean allow

执行 allow 方法。

Performs the allow operation.

源码Source io/agentscope/builder/web/toolbus/ToolConfirmationCoordinator.java:846–857

reason

String reason

执行推理相关操作。

Performs the reason operation.

源码Source io/agentscope/builder/web/toolbus/ToolConfirmationCoordinator.java:846–857
基于官方固定版本源码静态生成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.