Method
WrapToolCall
(ctx context.Context, req *ToolCallRequest, handler ToolCallHandler)
Source from the content-addressed store, hash-verified
| 132 | } |
| 133 | |
| 134 | func (m *BaseMiddleware) WrapToolCall(ctx context.Context, req *ToolCallRequest, handler ToolCallHandler) (*ToolCallResponse, error) { |
| 135 | // 默认直接调用下一层 |
| 136 | return handler(ctx, req) |
| 137 | } |
| 138 | |
| 139 | func (m *BaseMiddleware) OnAgentStart(ctx context.Context, agentID string) error { |
| 140 | return nil |
Callers
nothing calls this directly
Tested by
no test coverage detected