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

Method GetChatUserPromptsByChatID

coderd/database/dbauthz/dbauthz.go:3252–3259  ·  view source on GitHub ↗
(ctx context.Context, arg database.GetChatUserPromptsByChatIDParams)

Source from the content-addressed store, hash-verified

3250}
3251
3252func (q *querier) GetChatUserPromptsByChatID(ctx context.Context, arg database.GetChatUserPromptsByChatIDParams) ([]database.GetChatUserPromptsByChatIDRow, error) {
3253 // Authorize read on the parent chat.
3254 _, err := q.GetChatByID(ctx, arg.ChatID)
3255 if err != nil {
3256 return nil, err
3257 }
3258 return q.db.GetChatUserPromptsByChatID(ctx, arg)
3259}
3260
3261func (q *querier) GetChatWorkspaceTTL(ctx context.Context) (string, error) {
3262 // The workspace-TTL setting is a deployment-wide value read by any

Callers

nothing calls this directly

Calls 2

GetChatByIDMethod · 0.95

Tested by

no test coverage detected