MCPcopy Create free account
hub / github.com/coder/aibridge / RecordInterceptionEnded

Method RecordInterceptionEnded

example/recorder.go:86–92  ·  view source on GitHub ↗
(ctx context.Context, req *aibridge.InterceptionRecordEnded)

Source from the content-addressed store, hash-verified

84}
85
86func (r *SQLiteRecorder) RecordInterceptionEnded(ctx context.Context, req *aibridge.InterceptionRecordEnded) error {
87 _, err := r.stmtUpdateInterception.ExecContext(ctx, req.EndedAt, req.ID)
88 if err != nil {
89 r.logger.Warn(ctx, "failed to record interception end", slog.Error(err))
90 }
91 return err
92}
93
94func (r *SQLiteRecorder) RecordTokenUsage(ctx context.Context, req *aibridge.TokenUsageRecord) error {
95 // Build metadata, merging extra token types.

Callers

nothing calls this directly

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected