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

Method InsertAIBridgeToolUsage

coderd/database/dbauthz/dbauthz.go:5408–5414  ·  view source on GitHub ↗
(ctx context.Context, arg database.InsertAIBridgeToolUsageParams)

Source from the content-addressed store, hash-verified

5406}
5407
5408func (q *querier) InsertAIBridgeToolUsage(ctx context.Context, arg database.InsertAIBridgeToolUsageParams) (database.AIBridgeToolUsage, error) {
5409 // All aibridge_tool_usages records belong to the initiator of their associated interception.
5410 if err := q.authorizeAIBridgeInterceptionAction(ctx, policy.ActionUpdate, arg.InterceptionID); err != nil {
5411 return database.AIBridgeToolUsage{}, err
5412 }
5413 return q.db.InsertAIBridgeToolUsage(ctx, arg)
5414}
5415
5416func (q *querier) InsertAIBridgeUserPrompt(ctx context.Context, arg database.InsertAIBridgeUserPromptParams) (database.AIBridgeUserPrompt, error) {
5417 // All aibridge_user_prompts records belong to the initiator of their associated interception.

Callers

nothing calls this directly

Tested by

no test coverage detected