|
22 | 22 | import com.embabel.agent.api.common.PromptRunner; |
23 | 23 | import com.embabel.agent.domain.io.UserInput; |
24 | 24 | import com.embabel.agent.domain.library.HasContent; |
25 | | -import com.embabel.agent.prompt.Persona; |
| 25 | +import com.embabel.agent.prompt.persona.Persona; |
26 | 26 | import com.embabel.common.ai.model.AutoModelSelectionCriteria; |
27 | 27 | import com.embabel.common.ai.model.LlmOptions; |
| 28 | +import com.embabel.common.ai.prompt.PromptContributionLocation; |
28 | 29 | import com.embabel.common.core.types.Timestamped; |
29 | 30 | import org.springframework.beans.factory.annotation.Value; |
30 | 31 | import org.springframework.context.annotation.Profile; |
|
36 | 37 |
|
37 | 38 |
|
38 | 39 | abstract class Personas { |
39 | | - static final Persona WRITER = Persona.create( |
| 40 | + static final Persona WRITER = Persona.Companion.create( |
40 | 41 | "Roald Dahl", |
41 | 42 | "A creative storyteller who loves to weave imaginative tales that are a bit unconventional", |
42 | 43 | "Quirky", |
43 | | - "Create memorable stories that captivate the reader's imagination." |
| 44 | + "Create memorable stories that captivate the reader's imagination.", |
| 45 | + "", |
| 46 | + PromptContributionLocation.BEGINNING |
44 | 47 | ); |
45 | | -static final Persona REVIEWER = Persona.Companion.create( |
| 48 | + static final Persona REVIEWER = Persona.Companion.create( |
46 | 49 | "Media Book Review", |
47 | 50 | "New York Times Book Reviewer", |
48 | 51 | "Professional and insightful", |
49 | | - "Help guide readers toward good stories" |
| 52 | + "Help guide readers toward good stories", |
| 53 | + "", |
| 54 | + PromptContributionLocation.BEGINNING |
50 | 55 | ); |
51 | 56 | } |
52 | 57 |
|
|
0 commit comments