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

Method SetContextFactory

pkg/tools/bridge/http_server.go:108–112  ·  view source on GitHub ↗

SetContextFactory 设置工具上下文工厂

(factory func() *tools.ToolContext)

Source from the content-addressed store, hash-verified

106
107// SetContextFactory 设置工具上下文工厂
108func (s *HTTPBridgeServer) SetContextFactory(factory func() *tools.ToolContext) {
109 s.mu.Lock()
110 defer s.mu.Unlock()
111 s.contextFactory = factory
112}
113
114// ToolCallRequest 工具调用请求
115type ToolCallRequest struct {

Callers 1

ensureBridgeServerMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected