Package-level declarations

Types

Link copied to clipboard
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))

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

Link copied to clipboard
data class Instruction(val instruction: String)

Simple instruction as persona.

Link copied to clipboard
data class Persona(val name: String, val persona: String, val voice: String, val objective: String) : PersonaSpec

A way to structure LLM responses, by grounding them in a personality.

Link copied to clipboard
interface PersonaSpec

Interface for Persona, when we can't use data class directly (e.g. in some persistence scenarios).

Link copied to clipboard
data class RoleGoalBackstory(val role: String, val goal: String, val backstory: String) : RoleGoalBackstorySpec

CrewAI style backstory prompt. Included for users migrating from CrewAI. In Embabel, such structures aren't core to the framework, but merely a PromptContributor that can be used in any action implementation.

Link copied to clipboard

Interface for CrewAI style backstory prompt when a concrete class isn't appropriate (eg for some persistence scenarios). Included for users migrating from CrewAI. In Embabel, such structures aren't core to the framework, but merely a PromptContributor that can be used in any action implementation.