PromptReference

data class PromptReference(val name: String, val title: String? = null) : Reference(source)

Identifies a prompt by reference.

Used in completion requests and other contexts where a prompt needs to be referenced without including its full definition.

Constructors

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

Properties

Link copied to clipboard

The programmatic identifier of the prompt being referenced. 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

Optional human-readable display name for the referenced prompt. 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.

Link copied to clipboard
open override val type: ReferenceType