MCPcopy Create free account
hub / github.com/astercloud/aster / SetApprovalHandler

Method SetApprovalHandler

pkg/middleware/hitl.go:268–271  ·  view source on GitHub ↗

SetApprovalHandler 设置审核处理器

(handler ApprovalHandler)

Source from the content-addressed store, hash-verified

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

Calls 1

InfoMethod · 0.65