Skip to main content

build_view_context

Function build_view_context 

Source
pub fn build_view_context(name: &str, description: &str) -> (String, String)
Expand description

Assemble system and user prompts for AI view generation.

Returns (system_prompt, user_prompt) where:

  • System prompt: role, rules, component catalog, few-shot example (static, cacheable)
  • User prompt: project models, routes, view name and description (dynamic, per-request)