makepad/libs/flow/recipes/templates/prompt-expand.splash
Arena Agent d8d5ea8b6a Repair integration manifests and port nigig exports onto upstream widget families
Restore missing required asset/flow packages from the pinned nigig revision; retain upstream script isolation, X11 hover, and widget-core fixes. Validated makepad-widgets data feature with Rust 1.97.1.
2026-10-26 11:23:26 +00:00

17 lines
590 B
Text

use mod.flow.*
/** The short idea to expand. */
let prompt = Input{ type: @text default: "a lighthouse at dusk" }
let expand = Llm{
system: "Rewrite the prompt as one vivid, concrete production brief. Preserve the subject and return only the brief."
prompt: prompt.text()
max_tokens: 512
}
/** Publish the expanded brief into the flow asset library. */
let published = Publish{ value: expand.text() namespace: "flows" tags: ["flow", "prompt"] }
Flow{
label: "Expand prompt"
brief: "Turns a short idea into a reusable production brief."
prompt, expand, published
}