From a70f081bfa37ca0d2275d9c324e7235424e3f049 Mon Sep 17 00:00:00 2001 From: Andreas Lundgren Date: Wed, 4 Mar 2026 13:50:25 +0100 Subject: [PATCH] Update editor specialization for novels This looks like a previous cut'n'paste error. --- main.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/main.py b/main.py index 17d0d32..df33790 100644 --- a/main.py +++ b/main.py @@ -147,7 +147,7 @@ async def detected_childrens_book( """ childrens_editor = SpecialistEditorAgent("children's books", chat_ctx=context.session._chat_ctx) - # here we are creating a ChilrensEditorAgent with the full chat history, + # here we are creating a Editor Agent specialized on children's books with the full chat history, # as if they were there in the room with the user the whole time. # we could also omit it and rely on the userdata to share context. @@ -161,18 +161,18 @@ async def detected_novel( self, context: RunContext[StoryData], ): - """Called when the user has provided enough information to suggest a children's book. + """Called when the user has provided enough information to suggest a Novel. """ - childrens_editor = SpecialistEditorAgent("novels", chat_ctx=context.session._chat_ctx) - # here we are creating a ChilrensEditorAgent with the full chat history, + novels_editor = SpecialistEditorAgent("novels", chat_ctx=context.session._chat_ctx) + # here we are creating a Editor Agent specialized on novels with the full chat history, # as if they were there in the room with the user the whole time. # we could also omit it and rely on the userdata to share context. logger.info( - "switching to the children's book editor with the provided user data: %s", context.userdata + "switching to the novel book editor with the provided user data: %s", context.userdata ) - return childrens_editor, "Let's switch to the children's book editor." + return novels_editor, "Let's switch to the novel book editor." class SpecialistEditorAgent(Agent):