PromptContributor

Contributor to a prompt. Contributors may be put in a system message or elsewhere depending on location. Only the contribution() method must be implemented, but implementations are free to provide location and role data via overriding those properties.

Inheritors

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open val role: String?

Role defaults to class simple name. Override for stereotyped roles.

Functions

Link copied to clipboard
abstract fun contribution(): String

Return the string content of the contribution.

Link copied to clipboard