MCPcopy Create free account
hub / github.com/coder/coder / attemptSinkFromContext

Function attemptSinkFromContext

coderd/x/chatd/chatdebug/recorder.go:95–98  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

93}
94
95func attemptSinkFromContext(ctx context.Context) *attemptSink {
96 sink, _ := ctx.Value(attemptSinkKey{}).(*attemptSink)
97 return sink
98}
99
100var stepCounters sync.Map // map[uuid.UUID]*atomic.Int32
101

Callers 9

TestAttemptSinkContextFunction · 0.85
TestBeginStep_NilServiceFunction · 0.85
RoundTripMethod · 0.85
TestBeginStepReuseStepFunction · 0.85
TestDebugModel_DisabledFunction · 0.85
TestDebugModel_GenerateFunction · 0.85
TestDebugModel_StreamFunction · 0.85

Calls 1

ValueMethod · 0.45

Tested by 8

TestAttemptSinkContextFunction · 0.68
TestBeginStep_NilServiceFunction · 0.68
TestBeginStepReuseStepFunction · 0.68
TestDebugModel_DisabledFunction · 0.68
TestDebugModel_GenerateFunction · 0.68
TestDebugModel_StreamFunction · 0.68