RoleGoalBackstorySpec

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.

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard
class GoalBuilder(role: String, goal: String)
Link copied to clipboard
class RoleBuilder(role: String)

Properties

Link copied to clipboard
abstract val backstory: String
Link copied to clipboard
abstract val goal: String
Link copied to clipboard
open 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