SetApprovalHandler 设置审核处理器
(handler ApprovalHandler)
| 266 | |
| 267 | // SetApprovalHandler 设置审核处理器 |
| 268 | func (m *HumanInTheLoopMiddleware) SetApprovalHandler(handler ApprovalHandler) { |
| 269 | m.approvalHandler = handler |
| 270 | hitlLog.Info(context.Background(), "approval handler updated", nil) |
| 271 | } |
| 272 | |
| 273 | // GetInterruptConfig 获取工具的审核配置 |
| 274 | func (m *HumanInTheLoopMiddleware) GetInterruptConfig(toolName string) (*InterruptConfig, bool) { |