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

Struct fakeHostModelExecutor

internal/pluginhost/host_callbacks_test.go:24–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22)
23
24type fakeHostModelExecutor struct {
25 executeModel func(context.Context, handlers.ModelExecutionRequest) (handlers.ModelExecutionResponse, *interfaces.ErrorMessage)
26 executeModelStream func(context.Context, handlers.ModelExecutionRequest) (handlers.ModelExecutionStream, *interfaces.ErrorMessage)
27}
28
29func (e *fakeHostModelExecutor) ExecuteModel(ctx context.Context, req handlers.ModelExecutionRequest) (handlers.ModelExecutionResponse, *interfaces.ErrorMessage) {
30 return e.executeModel(ctx, req)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected