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

Method recordModelThoughts

intercept/responses/base.go:187–195  ·  view source on GitHub ↗
(ctx context.Context, response *responses.Response)

Source from the content-addressed store, hash-verified

185}
186
187func (i *responsesInterceptionBase) recordModelThoughts(ctx context.Context, response *responses.Response) {
188 for _, t := range i.extractModelThoughts(response) {
189 _ = i.recorder.RecordModelThought(ctx, &recorder.ModelThoughtRecord{
190 InterceptionID: i.ID().String(),
191 Content: t.Content,
192 Metadata: t.Metadata,
193 })
194 }
195}
196
197func (i *responsesInterceptionBase) recordNonInjectedToolUsage(ctx context.Context, response *responses.Response) {
198 if response == nil {

Callers 2

ProcessRequestMethod · 0.80
ProcessRequestMethod · 0.80

Calls 3

extractModelThoughtsMethod · 0.95
IDMethod · 0.95
RecordModelThoughtMethod · 0.65

Tested by

no test coverage detected