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

Method ExecutePluginExecutor

internal/pluginhost/executor_route.go:86–92  ·  view source on GitHub ↗

ExecutePluginExecutor executes a request with the named plugin executor without changing the requested model.

(ctx context.Context, pluginID string, req coreexecutor.Request, opts coreexecutor.Options)

Source from the content-addressed store, hash-verified

84
85// ExecutePluginExecutor executes a request with the named plugin executor without changing the requested model.
86func (h *Host) ExecutePluginExecutor(ctx context.Context, pluginID string, req coreexecutor.Request, opts coreexecutor.Options) (coreexecutor.Response, error) {
87 adapter, errAdapter := h.executorAdapterForPlugin(pluginID)
88 if errAdapter != nil {
89 return coreexecutor.Response{}, errAdapter
90 }
91 return adapter.Execute(ctx, (*coreauth.Auth)(nil), req, opts)
92}
93
94// ExecutePluginExecutorStream executes a streaming request with the named plugin executor without changing the requested model.
95func (h *Host) ExecutePluginExecutorStream(ctx context.Context, pluginID string, req coreexecutor.Request, opts coreexecutor.Options) (*coreexecutor.StreamResult, error) {

Callers

nothing calls this directly

Calls 2

ExecuteMethod · 0.65

Tested by

no test coverage detected