prompt

UDA marking a method as an MCP prompt. The method returns the prompt's messages (a PromptMessage[], a GetPromptResult, or a string).

An optional human-readable title may be supplied for display purposes; it is independent of the programmatic name.

@safe
struct prompt {
string name;
string description;
}

Members

Variables

title
string title;

optional human-readable display name (empty = unset)