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

Method WrapToolCall

pkg/middleware/interface.go:134–137  ·  view source on GitHub ↗
(ctx context.Context, req *ToolCallRequest, handler ToolCallHandler)

Source from the content-addressed store, hash-verified

132}
133
134func (m *BaseMiddleware) WrapToolCall(ctx context.Context, req *ToolCallRequest, handler ToolCallHandler) (*ToolCallResponse, error) {
135 // 默认直接调用下一层
136 return handler(ctx, req)
137}
138
139func (m *BaseMiddleware) OnAgentStart(ctx context.Context, agentID string) error {
140 return nil

Callers

nothing calls this directly

Calls 1

handlerFunction · 0.85

Tested by

no test coverage detected