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

Method GetChatPlanModeInstructions

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

Source from the content-addressed store, hash-verified

3163}
3164
3165func (q *querier) GetChatPlanModeInstructions(ctx context.Context) (string, error) {
3166 if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceDeploymentConfig); err != nil {
3167 return "", err
3168 }
3169 return q.db.GetChatPlanModeInstructions(ctx)
3170}
3171
3172func (q *querier) GetChatQueuedMessages(ctx context.Context, chatID uuid.UUID) ([]database.ChatQueuedMessage, error) {
3173 _, err := q.GetChatByID(ctx, chatID)

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95

Tested by

no test coverage detected