Verified against Semitexa Ultimate 2026.09.19.1020

Prompt attributes

Every attribute declared by Prompt, with the signature the code has and a usage quoted from the codebase.

#[AsPrompt]

Semitexa\Prompt\Attribute\AsPrompt

Applies to: class

parameter type required
id string yes
channel string no
description string no
template string no
#[AsPrompt(
    id: self::ID,
    channel: 'cms',
    template: 'resources/prompts/cms.seo.write.twig',
    description: 'Writes a page\'s search and social metadata from its own content.',
)]
final class SeoWriterPrompt implements BoundPromptInterface

— vendor/semitexa/cms/src/Application/Prompt/SeoWriterPrompt.php