2020import com .embabel .agent .api .annotation .Agent ;
2121import com .embabel .agent .api .annotation .Export ;
2222import com .embabel .agent .api .common .OperationContext ;
23+ import com .embabel .agent .config .models .OpenAiModels ;
2324import com .embabel .agent .domain .io .UserInput ;
2425import com .embabel .agent .domain .library .HasContent ;
2526import com .embabel .agent .prompt .persona .Persona ;
@@ -40,7 +41,7 @@ abstract class Personas {
4041 .andGoal ("Write engaging and imaginative stories" )
4142 .andBackstory ("Has a PhD in French literature; used to work in a circus" );
4243
43- static final Persona REVIEWER = Persona . create (
44+ static final Persona REVIEWER = new Persona (
4445 "Media Book Review" ,
4546 "New York Times Book Reviewer" ,
4647 "Professional and insightful" ,
@@ -137,7 +138,7 @@ ReviewedStory reviewStory(UserInput userInput, Story story, OperationContext con
137138 Story craftStory (UserInput userInput , OperationContext context ) {
138139 return context .ai ()
139140 // Higher temperature for more creative output
140- .withLlm (LlmOptions .withAutoLlm ( ).withTemperature (.7 ))
141+ .withLlm (LlmOptions .withModel ( OpenAiModels . GPT_5 ).withTemperature (.7 ))
141142 .withPromptContributor (Personas .WRITER )
142143 .createObject (String .format ("""
143144 Craft a short story in %d words or less.
0 commit comments