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 |
|---|---|---|
coordinator | ToolConfirmationCoordinator | coordinator(类型 `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 |
|---|---|---|
sessionId | String | 会话标识(类型 `String`)。The session id. |
toolUseId | String | 工具使用标识(类型 `String`)。The tool use id. |
request | DecisionRequest | 请求(类型 `DecisionRequest`)。The request. |
authentication | Authentication | authentication(类型 `Authentication`)。The authentication. |
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.