Prompt Blocks
Useclient.prompt_blocks to manage registered prompt blocks.
Static prompt blocks are stored editable body text. Dynamic prompt blocks are local AgentFlow runtime functions registered in the backend with @prompt_block; the SDK can list, preview, scope, enable/disable, order, and invalidate them, but it cannot edit dynamic code.
Create a static block
List and retrieve
Update metadata or static body
body; update only metadata such as ttl, order, agents, tags, scope, mode, or enabled.
Preview and cache invalidation
Inline prompt blocks
Use inline prompt blocks when the client already has current-turn context, such as a selected record or current page. Inline blocks are not registered globally. AgentFlow wraps them, injects them as model-onlysystem_context, and persists that hidden model input with the turn for replay.
message, not hidden inline block text.
