Returns the concatenated text of each user-visible user prompt in a chat, newest first. Used by the composer to populate the up/down arrow prompt-history cycle. Non-text parts (tool calls, files, attachments, ...) are excluded; messages whose text payload is entirely whitespace are dropped so cyclin
(ctx context.Context, arg GetChatUserPromptsByChatIDParams)
| 434 | // jsonb_array_elements never raises "cannot extract elements from a |
| 435 | // scalar". Backed by idx_chat_messages_user_prompts. |
| 436 | GetChatUserPromptsByChatID(ctx context.Context, arg GetChatUserPromptsByChatIDParams) ([]GetChatUserPromptsByChatIDRow, error) |
| 437 | // Returns the global TTL for chat workspaces as a Go duration string. |
| 438 | // Returns "0s" (disabled) when no value has been configured. |
| 439 | GetChatWorkspaceTTL(ctx context.Context) (string, error) |
no outgoing calls