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

Interface Ledger

internal/inferexec/ledger.go:11–16  ·  view source on GitHub ↗

Ledger persists request lifecycle updates for the infer pipeline.

Source from the content-addressed store, hash-verified

9
10// Ledger persists request lifecycle updates for the infer pipeline.
11type Ledger interface {
12 CreateRequest(ctx context.Context, traceID, requestID string, req types.AIRequest, now time.Time)
13 Fail(ctx context.Context, requestID string)
14 UpdatePolicy(ctx context.Context, requestID string, snap []byte, routeReason, backend *string)
15 MarkSuccess(ctx context.Context, requestID, backend, routeReason string)
16}

Callers 4

RunMethod · 0.65
failLedgerMethod · 0.65
RunMethod · 0.65
RunMethod · 0.65

Implementers 2

stubLedgerinternal/inferexec/orchestrator_test.g
serverLedgerinternal/server/orchestrator.go

Calls

no outgoing calls

Tested by

no test coverage detected