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

Method GetChatRetentionDays

coderd/database/dbauthz/dbauthz.go:3180–3187  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

3178}
3179
3180func (q *querier) GetChatRetentionDays(ctx context.Context) (int32, error) {
3181 // Chat retention is a deployment-wide config read by dbpurge.
3182 // Only requires a valid actor in context.
3183 if _, ok := ActorFromContext(ctx); !ok {
3184 return 0, ErrNoActor
3185 }
3186 return q.db.GetChatRetentionDays(ctx)
3187}
3188
3189func (q *querier) GetChatSystemPrompt(ctx context.Context) (string, error) {
3190 // The system prompt is a deployment-wide setting read during chat

Callers

nothing calls this directly

Calls 2

ActorFromContextFunction · 0.70
GetChatRetentionDaysMethod · 0.65

Tested by

no test coverage detected