PromptArgument

data class PromptArgument(val name: String, val description: String? = null, val required: Boolean? = null, val title: String? = null)(source)

Describes an argument that a prompt can accept.

Arguments allow prompts to be templated with user-provided values.

Constructors

Link copied to clipboard
constructor(name: String, description: String? = null, required: Boolean? = null, title: String? = null)

Properties

Link copied to clipboard

A human-readable description of the argument, explaining what it's for and what values are expected.

Link copied to clipboard

The programmatic identifier for this argument. Intended for logical use and API identification. If title is not provided, this should be used as a fallback display name.

Link copied to clipboard

Whether this argument must be provided when using the prompt. If true, the client must supply a value for this argument.

Link copied to clipboard

Optional human-readable display name for this argument. Intended for UI and end-user contexts, optimized to be easily understood even by those unfamiliar with domain-specific terminology. If not provided, name should be used for display purposes.