AS AgentScopeAPI 手册 / API Reference

InternalToolConfirmationController

@RestController @RequestMapping("/api/internal/sessions") public class InternalToolConfirmationController
源码Source io/agentscope/builder/web/api/InternalToolConfirmationController.java:35–146

内部工具确认控制器,承载智能体的部署、调度与服务化运行。位于 io.agentscope.builder.web.api 包。核心成员包括 decide、InternalToolConfirmationController。

Internal control-plane callback that resolves one fully fenced Managed AgentTask HITL ticket.

嵌套类摘要Nested Class Summary

类Class类型Kind说明Description
DecisionRequest记录record
承载决策请求数据的记录类型。
Versioned approval decision emitted from the control-plane outbox.

构造器摘要Constructor Summary

构造器Constructor说明Description
public InternalToolConfirmationController(ToolConfirmationCoordinator coordinator)
初始化 `InternalToolConfirmationController` 实例。
Creates a new instance.

方法摘要Method Summary

方法Method说明Description
public Mono<ResponseEntity<Void>> decide(String sessionId, String toolUseId, DecisionRequest request, Authentication authentication)
执行 `decide` 方法。
Performs the decide operation.

构造器详情Constructor Detail

InternalToolConfirmationController

public InternalToolConfirmationController(ToolConfirmationCoordinator coordinator)

初始化 InternalToolConfirmationController 实例。

Creates a new instance.

参数Parameters
名称Name类型Type说明Description
coordinatorToolConfirmationCoordinatorcoordinator(类型 `ToolConfirmationCoordinator`)。The coordinator.
源码Source io/agentscope/builder/web/api/InternalToolConfirmationController.java:41–43

方法详情Method Detail

decide

public Mono<ResponseEntity<Void>> decide(String sessionId, String toolUseId, DecisionRequest request, Authentication authentication)

执行 decide 方法。

Performs the decide operation.

参数Parameters
名称Name类型Type说明Description
sessionIdString会话标识(类型 `String`)。The session id.
toolUseIdString工具使用标识(类型 `String`)。The tool use id.
requestDecisionRequest请求(类型 `DecisionRequest`)。The request.
authenticationAuthenticationauthentication(类型 `Authentication`)。The authentication.
返回Returns Mono<ResponseEntity<Void>>
返回Mono>。Returns mono.
源码Source io/agentscope/builder/web/api/InternalToolConfirmationController.java:45–111

嵌套类详情Nested Class Detail

DecisionRequest

public record DecisionRequest( String approvalId, long decisionVersion, String status, boolean allow, String denyMessage, String agentTaskId, String attemptId, long dispatchGeneration, String turnId)

承载决策请求数据的记录类型。位于 io.agentscope.builder.web.api 包。核心成员包括 approvalId、decisionVersion、status、allow、denyMessage、agentTaskId。

Versioned approval decision emitted from the control-plane outbox.

基于官方固定版本源码静态生成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.