Skip to main content

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§

RESPONSE_FORMAT_NAME
Names this feature’s structured output to Azure. The test-mode mock Azure API picks its canned answer for this feature by this name.
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.
response_format 🔒
The structured output format the suggestion LLM is asked to answer in. Must stay in sync with CmsParagraphSuggestionResponse.