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

Function AsAIBridged

coderd/database/dbauthz/dbauthz.go:843–845  ·  view source on GitHub ↗

AsAIBridged returns a context with an actor that has permissions required for creating, reading, and updating aibridge-related resources.

(ctx context.Context)

Source from the content-addressed store, hash-verified

841// AsAIBridged returns a context with an actor that has permissions
842// required for creating, reading, and updating aibridge-related resources.
843func AsAIBridged(ctx context.Context) context.Context {
844 return As(ctx, subjectAibridged)
845}
846
847// AsDBPurge returns a context with an actor that has permissions required
848// for dbpurge to delete old database records.

Callers 13

NewFunction · 0.92
purgeTickMethod · 0.92
RecordInterceptionMethod · 0.92
RecordTokenUsageMethod · 0.92
RecordPromptUsageMethod · 0.92
RecordToolUsageMethod · 0.92
RecordModelThoughtMethod · 0.92
IsAuthorizedMethod · 0.92
TestSeedFromBytesFunction · 0.92
BuildProvidersFunction · 0.92

Calls 1

AsFunction · 0.85

Tested by 2

TestSeedFromBytesFunction · 0.74
TestSeatTrackerDBFunction · 0.74