Method
WrapModelCall
(ctx context.Context, req *ModelRequest, handler ModelCallHandler)
Source from the content-addressed store, hash-verified
| 127 | } |
| 128 | |
| 129 | func (m *BaseMiddleware) WrapModelCall(ctx context.Context, req *ModelRequest, handler ModelCallHandler) (*ModelResponse, error) { |
| 130 | // 默认直接调用下一层 |
| 131 | return handler(ctx, req) |
| 132 | } |
| 133 | |
| 134 | func (m *BaseMiddleware) WrapToolCall(ctx context.Context, req *ToolCallRequest, handler ToolCallHandler) (*ToolCallResponse, error) { |
| 135 | // 默认直接调用下一层 |
Callers
nothing calls this directly
Tested by
no test coverage detected