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

Method CountTokens

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

Source from the content-addressed store, hash-verified

433}
434
435func (a *rpcPluginAdapter) CountTokens(ctx context.Context, req pluginapi.ExecutorRequest) (pluginapi.ExecutorResponse, error) {
436 callbackID, closeCallback := a.openHostCallbackContext(ctx)
437 defer closeCallback()
438 return callPlugin[pluginapi.ExecutorResponse](ctx, a.client, pluginabi.MethodExecutorCountTokens, rpcExecutorRequest{
439 ExecutorRequest: req,
440 HostCallbackID: callbackID,
441 })
442}
443
444func (a *rpcPluginAdapter) HttpRequest(ctx context.Context, req pluginapi.ExecutorHTTPRequest) (pluginapi.ExecutorHTTPResponse, error) {
445 callbackID, closeCallback := a.openHostCallbackContext(ctx)

Callers

nothing calls this directly

Calls 2

callPluginFunction · 0.85

Tested by

no test coverage detected