Prompts
The Semitexa prompt catalog: define prompts in PHP, render them with self-binding, manage them from the CLI and override them per tenant.
-
Prompt Catalog Overview
What semitexa/prompt adds: an ORM-style catalog that turns inline prompt strings into addressable, versioned records that tenants can override.
-
Defining Prompts
Declare a prompt with `#[AsPrompt]` and a standalone Twig body; the catalog discovers it like any other framework attribute.
-
Rendering & Self-Binding
How PromptRenderer compiles a prompt with Twig, and how a self-binding prompt exposes its typed data to the template through getter dot-access.
-
Per-Tenant Overrides
A DB-backed layer lets each tenant edit a prompt on top of the code catalog, with version history and restore, plus additive guidance for feedback.
-
Prompt CLI
Inspect, render, override, and evaluate catalog prompts from the console.