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

Method ModelsForAuth

internal/pluginhost/rpc_client.go:345–352  ·  view source on GitHub ↗
(ctx context.Context, req pluginapi.AuthModelRequest)

Source from the content-addressed store, hash-verified

343}
344
345func (a *rpcPluginAdapter) ModelsForAuth(ctx context.Context, req pluginapi.AuthModelRequest) (pluginapi.ModelResponse, error) {
346 callbackID, closeCallback := a.openHostCallbackContext(ctx)
347 defer closeCallback()
348 return callPlugin[pluginapi.ModelResponse](ctx, a.client, pluginabi.MethodModelForAuth, rpcAuthModelRequest{
349 AuthModelRequest: req,
350 HostCallbackID: callbackID,
351 })
352}
353
354func (a *rpcPluginAdapter) Pick(ctx context.Context, req pluginapi.SchedulerPickRequest) (pluginapi.SchedulerPickResponse, error) {
355 return callPlugin[pluginapi.SchedulerPickResponse](ctx, a.client, pluginabi.MethodSchedulerPick, req)

Callers

nothing calls this directly

Calls 2

callPluginFunction · 0.85

Tested by

no test coverage detected