Skip to content

🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming

add action node example

geekan9ecdccd8369f
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(