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

Method Execute

internal/pluginhost/rpc_client.go:426–433  ·  view source on GitHub ↗
(ctx context.Context, req pluginapi.ExecutorRequest)

Source from the content-addressed store, hash-verified

424}
425
426func (a *rpcPluginAdapter) Execute(ctx context.Context, req pluginapi.ExecutorRequest) (pluginapi.ExecutorResponse, error) {
427 callbackID, closeCallback := a.openHostCallbackContext(ctx)
428 defer closeCallback()
429 return callPlugin[pluginapi.ExecutorResponse](ctx, a.client, pluginabi.MethodExecutorExecute, rpcExecutorRequest{
430 ExecutorRequest: req,
431 HostCallbackID: callbackID,
432 })
433}
434
435func (a *rpcPluginAdapter) CountTokens(ctx context.Context, req pluginapi.ExecutorRequest) (pluginapi.ExecutorResponse, error) {
436 callbackID, closeCallback := a.openHostCallbackContext(ctx)

Callers

nothing calls this directly

Calls 2

callPluginFunction · 0.85

Tested by

no test coverage detected