Skip to main content

Module ai

Module ai 

Source
Expand description

AI-powered view generation via the Anthropic API.

Provides two main functions:

  • call_anthropic: Makes a blocking request to the Anthropic Messages API.
  • build_view_context: Assembles a prompt with component catalog, project models, and routes.

Functionsยง

build_view_context
Assemble system and user prompts for AI view generation.
call_anthropic
Call the Anthropic Messages API with separate system and user prompts.