MCPcopy Create free account
hub / github.com/InferCore/InferCore / Invoke

Method Invoke

internal/reliability/manager_test.go:32–40  ·  view source on GitHub ↗
(_ context.Context, req types.BackendRequest)

Source from the content-addressed store, hash-verified

30func (a *streamCaptureAdapter) Name() string { return a.name }
31
32func (a *streamCaptureAdapter) Invoke(_ context.Context, req types.BackendRequest) (types.BackendResponse, error) {
33 if a.lastStream != nil {
34 *a.lastStream = req.Options.Stream
35 }
36 return types.BackendResponse{
37 Output: map[string]any{"ok": true},
38 Timing: &types.BackendTiming{TTFTMs: 1, CompletionLatencyMs: 2},
39 }, nil
40}
41
42func (a *streamCaptureAdapter) Health(context.Context) error { return nil }
43

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected