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

Method WrapModelCall

pkg/middleware/interface.go:88–88  ·  view source on GitHub ↗

WrapModelCall 包装模型调用 在模型调用前后执行自定义逻辑 handler: 下一层处理器(可能是下一个中间件或最终的模型调用)

(ctx context.Context, req *ModelRequest, handler ModelCallHandler)

Source from the content-addressed store, hash-verified

86 // 在模型调用前后执行自定义逻辑
87 // handler: 下一层处理器(可能是下一个中间件或最终的模型调用)
88 WrapModelCall(ctx context.Context, req *ModelRequest, handler ModelCallHandler) (*ModelResponse, error)
89
90 // WrapToolCall 包装工具调用
91 // 在工具调用前后执行自定义逻辑

Callers 1

ExecuteModelCallMethod · 0.65

Implementers 1

BaseMiddlewarepkg/middleware/interface.go

Calls

no outgoing calls

Tested by

no test coverage detected