Package com.embabel.agent.prompt.persona
Class RoleGoalBackstory
-
- All Implemented Interfaces:
-
com.embabel.common.ai.prompt.PromptContributor,com.embabel.common.ai.prompt.PromptElement
public final class RoleGoalBackstory implements PromptContributorCrewAI 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classRoleGoalBackstory.RoleBuilderpublic final classRoleGoalBackstory.GoalBuilder
-
Constructor Summary
Constructors Constructor Description RoleGoalBackstory(String role, String goal, String backstory)
-
Method Summary
Modifier and Type Method Description StringgetRole()final StringgetGoal()final StringgetBackstory()Stringcontribution()final static RoleGoalBackstory.RoleBuilderwithRole(String role)Convenient Java-friendly way to start building a RoleGoalBackstory in fluent style. -
Methods inherited from class com.embabel.common.ai.prompt.PromptElement
getPromptContributionLocation -
Methods inherited from class com.embabel.common.ai.prompt.PromptContributor
promptContribution -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getBackstory
final String getBackstory()
-
contribution
String contribution()
-
withRole
final static RoleGoalBackstory.RoleBuilder withRole(String role)
Convenient Java-friendly way to start building a RoleGoalBackstory in fluent style.
-
-
-
-