MCPcopy Index your code
hub / github.com/InferCore/InferCore / markLedgerSuccess

Method markLedgerSuccess

internal/server/server.go:482–495  ·  view source on GitHub ↗
(ctx context.Context, requestID, backend, routeReason string)

Source from the content-addressed store, hash-verified

480}
481
482func (s *Server) markLedgerSuccess(ctx context.Context, requestID, backend, routeReason string) {
483 if s.ledger == nil {
484 return
485 }
486 st := "success"
487 rr := routeReason
488 be := backend
489 _ = s.ledger.UpdateRequest(ctx, requestID, requests.RequestPatch{
490 Status: &st,
491 SelectedBackend: &be,
492 RouteReason: &rr,
493 UpdatedAt: time.Now(),
494 })
495}
496
497func ragQuery(req types.AIRequest) string {
498 if req.Context != nil {

Callers 1

MarkSuccessMethod · 0.80

Calls 1

UpdateRequestMethod · 0.65

Tested by

no test coverage detected