MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / RouteModel

Method RouteModel

internal/pluginhost/rpc_client.go:358–365  ·  view source on GitHub ↗
(ctx context.Context, req pluginapi.ModelRouteRequest)

Source from the content-addressed store, hash-verified

356}
357
358func (a *rpcPluginAdapter) RouteModel(ctx context.Context, req pluginapi.ModelRouteRequest) (pluginapi.ModelRouteResponse, error) {
359 callbackID, closeCallback := a.openHostCallbackContext(ctx)
360 defer closeCallback()
361 return callPlugin[pluginapi.ModelRouteResponse](ctx, a.client, pluginabi.MethodModelRoute, rpcModelRouteRequest{
362 ModelRouteRequest: req,
363 HostCallbackID: callbackID,
364 })
365}
366
367func callPluginIdentifier(client pluginClient, method string) string {
368 resp, errCall := callPlugin[rpcIdentifierResponse](context.Background(), client, method, rpcEmptyResponse{})

Callers

nothing calls this directly

Calls 2

callPluginFunction · 0.85

Tested by

no test coverage detected