Skip to content

Commit afee6c5

Browse files
committed
Update agent api
1 parent 9400aeb commit afee6c5

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.springframework.boot</groupId>
88
<artifactId>spring-boot-starter-parent</artifactId>
9-
<version>3.5.9</version>
9+
<version>3.5.10</version>
1010
<relativePath/> <!-- Lookup parent from repository -->
1111
</parent>
1212
<groupId>com.embabel.template</groupId>
@@ -18,7 +18,7 @@
1818

1919
<properties>
2020
<java.version>21</java.version>
21-
<embabel-agent.version>0.3.1</embabel-agent.version>
21+
<embabel-agent.version>0.3.3</embabel-agent.version>
2222
</properties>
2323

2424
<dependencies>

src/main/java/com/embabel/template/agent/WriteAndReviewAgent.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@
3434
import java.time.format.DateTimeFormatter;
3535

3636
abstract class Personas {
37-
static final RoleGoalBackstory WRITER = RoleGoalBackstory
38-
.withRole("Creative Storyteller")
39-
.andGoal("Write engaging and imaginative stories")
40-
.andBackstory("Has a PhD in French literature; used to work in a circus");
37+
static final RoleGoalBackstory WRITER = new RoleGoalBackstory(
38+
"Creative Storyteller",
39+
"Write engaging and imaginative stories",
40+
"Has a PhD in French literature; used to work in a circus");
4141

42-
static final Persona REVIEWER = Persona.create(
42+
static final Persona REVIEWER = new Persona(
4343
"Media Book Review",
4444
"New York Times Book Reviewer",
4545
"Professional and insightful",

0 commit comments

Comments
 (0)