RoleGoalBackstory

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.

Constructors

Link copied to clipboard
constructor(role: String, goal: String, backstory: String)

Properties

Link copied to clipboard
open override val backstory: String
Link copied to clipboard
open override val goal: String
Link copied to clipboard
open override val role: String

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

Functions

Link copied to clipboard
open override fun contribution(): String

Return the string content of the contribution.

Link copied to clipboard