CoStar

data class CoStar constructor(val context: String, val objective: String, val style: String, val tone: String, val audience: String, val response: String = "Markdown", separator: String = "#".repeat(12)) : PromptContributor

CO-STAR prompt framework See https://towardsdatascience.com/how-i-won-singapores-gpt-4-prompt-engineering-competition-34c195a93d41/

Constructors

Link copied to clipboard
constructor(context: String, objective: String, style: String, tone: String, audience: String, response: String = "Markdown", separator: String = "#".repeat(12))

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val role: String?

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

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun contribution(): <Error class: unknown class>

Return the string content of the contribution.

Link copied to clipboard