Module cms_ai_suggestion

Module cms_ai_suggestion 

Source

Structs§

CmsParagraphSuggestionInput
Input payload for CMS paragraph suggestions.
CmsParagraphSuggestionResponse 🔒
Structured LLM response for CMS paragraph suggestions.

Constants§

SYSTEM_PROMPT 🔒
System prompt for generating multiple alternative paragraph suggestions for CMS content.
USER_PROMPT_PREFIX
User prompt prefix; the concrete action instruction and paragraph will be appended.

Functions§

action_instruction 🔒
Returns a short human-readable instruction for the given action id. Used so the model sees a precise operation description instead of an opaque id, and so we can stress “only this, nothing else” per action.
generate_paragraph_suggestions
Generate multiple paragraph suggestions for CMS using an LLM with structured JSON output.