From 9ecdccd8369ff3bd00ac155036d8e0b4b3a5c9f8 Mon Sep 17 00:00:00 2001 From: geekan Date: Thu, 1 Feb 2024 15:43:50 +0800 Subject: [PATCH] add action node example --- examples/write_novel.py | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/write_novel.py b/examples/write_novel.py index a43858bf1..b272a56e6 100644 --- a/examples/write_novel.py +++ b/examples/write_novel.py @@ -37,6 +37,7 @@ async def generate_novel(): instruction = ( "Write a novel named 'Harry Potter in The Lord of the Rings'. " "Fill the empty nodes with your own ideas. Be creative! Use your own words!" + "I will tip you $100,000 if you write a good novel." ) novel_node = await ActionNode.from_pydantic(Novel).fill(context=instruction, llm=LLM()) chap_node = await ActionNode.from_pydantic(Chapter).fill(