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

Method WrapModelCall

pkg/middleware/interface.go:129–132  ·  view source on GitHub ↗
(ctx context.Context, req *ModelRequest, handler ModelCallHandler)

Source from the content-addressed store, hash-verified

127}
128
129func (m *BaseMiddleware) WrapModelCall(ctx context.Context, req *ModelRequest, handler ModelCallHandler) (*ModelResponse, error) {
130 // 默认直接调用下一层
131 return handler(ctx, req)
132}
133
134func (m *BaseMiddleware) WrapToolCall(ctx context.Context, req *ToolCallRequest, handler ToolCallHandler) (*ToolCallResponse, error) {
135 // 默认直接调用下一层

Callers

nothing calls this directly

Calls 1

handlerFunction · 0.85

Tested by

no test coverage detected