MCPcopy Index your code
hub / github.com/coder/coder / InsertAIBridgeModelThought

Method InsertAIBridgeModelThought

coderd/database/dbauthz/dbauthz.go:5393–5398  ·  view source on GitHub ↗
(ctx context.Context, arg database.InsertAIBridgeModelThoughtParams)

Source from the content-addressed store, hash-verified

5391}
5392
5393func (q *querier) InsertAIBridgeModelThought(ctx context.Context, arg database.InsertAIBridgeModelThoughtParams) (database.AIBridgeModelThought, error) {
5394 if err := q.authorizeAIBridgeInterceptionAction(ctx, policy.ActionUpdate, arg.InterceptionID); err != nil {
5395 return database.AIBridgeModelThought{}, err
5396 }
5397 return q.db.InsertAIBridgeModelThought(ctx, arg)
5398}
5399
5400func (q *querier) InsertAIBridgeTokenUsage(ctx context.Context, arg database.InsertAIBridgeTokenUsageParams) (database.AIBridgeTokenUsage, error) {
5401 // All aibridge_token_usages records belong to the initiator of their associated interception.

Callers

nothing calls this directly

Tested by

no test coverage detected