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)
| 84 | |
| 85 | // ExecutePluginExecutor executes a request with the named plugin executor without changing the requested model. |
| 86 | func (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. |
| 95 | func (h *Host) ExecutePluginExecutorStream(ctx context.Context, pluginID string, req coreexecutor.Request, opts coreexecutor.Options) (*coreexecutor.StreamResult, error) { |
nothing calls this directly
no test coverage detected