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

Method GetRequest

internal/requests/memory.go:71–79  ·  view source on GitHub ↗
(_ context.Context, requestID string)

Source from the content-addressed store, hash-verified

69}
70
71func (m *memoryStore) GetRequest(_ context.Context, requestID string) (RequestRow, error) {
72 m.mu.RLock()
73 defer m.mu.RUnlock()
74 r, ok := m.requests[requestID]
75 if !ok {
76 return RequestRow{}, ErrNotFound
77 }
78 return cloneRequestRow(r), nil
79}
80
81func (m *memoryStore) ListSteps(_ context.Context, requestID string) ([]StepRow, error) {
82 m.mu.RLock()

Callers

nothing calls this directly

Calls 1

cloneRequestRowFunction · 0.85

Tested by

no test coverage detected