|
2 | 2 |
|
3 | 3 | import com.embabel.agent.api.annotation.*; |
4 | 4 | import com.embabel.agent.api.common.OperationContext; |
5 | | -import com.embabel.agent.config.models.OpenAiModels; |
6 | 5 | import com.embabel.agent.core.CoreToolGroups; |
7 | 6 | import com.embabel.agent.domain.library.ResearchReport; |
8 | 7 | import com.embabel.agent.prompt.persona.RoleGoalBackstory; |
@@ -63,45 +62,6 @@ record BookWriterConfig( |
63 | 62 | RoleGoalBackstory outliner, |
64 | 63 | RoleGoalBackstory writer |
65 | 64 | ) { |
66 | | - public BookWriterConfig { |
67 | | - researcherLlm = (researcherLlm != null) |
68 | | - ? researcherLlm |
69 | | - : LlmOptions.withModel(OpenAiModels.GPT_41_MINI); |
70 | | - writerLlm = (writerLlm != null) |
71 | | - ? writerLlm |
72 | | - : LlmOptions.withModel(OpenAiModels.GPT_41); |
73 | | - maxConcurrency = (maxConcurrency == 0) ? 8 : maxConcurrency; |
74 | | - researcher = researcher != null ? researcher : RoleGoalBackstory |
75 | | - .withRole("Researcher") |
76 | | - .andGoal(""" |
77 | | - Gather comprehensive information about a topic that will be used to create an organized and well-structured book outline. |
78 | | - Consider the author's desired goal for the book. |
79 | | - """) |
80 | | - .andBackstory(""" |
81 | | - You're a seasoned researcher, known for gathering the best sources and understanding the key elements of any topic.\s |
82 | | - You aim to collect all relevant information so the book outline can be accurate and informative. |
83 | | - """); |
84 | | - outliner = outliner != null ? outliner : RoleGoalBackstory |
85 | | - .withRole("Outliner") |
86 | | - .andGoal(""" |
87 | | - Based on research, generate a book outline about the given topic. |
88 | | - The generated outline should include all chapters in sequential order and provide a title and description for each chapter. |
89 | | - Consider the author's desired goal for the book |
90 | | - """) |
91 | | - .andBackstory(""" |
92 | | - You are a skilled organizer, great at turning scattered information into a structured format. |
93 | | - Your goal is to create clear, concise chapter outlines with all key topics and subtopics covered. |
94 | | - """); |
95 | | - writer = writer != null ? writer : RoleGoalBackstory |
96 | | - .withRole("Chapter Writer") |
97 | | - .andGoal(""" |
98 | | - Write a well-structured chapter for a book based on the provided chapter title, goal, and outline. |
99 | | - """) |
100 | | - .andBackstory(""" |
101 | | - You are an exceptional writer, known for producing engaging, well-researched, and informative content. |
102 | | - You excel at transforming complex ideas into readable and well-organized chapters. |
103 | | - """); |
104 | | - } |
105 | 65 | } |
106 | 66 |
|
107 | 67 |
|
|
0 commit comments