mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-08 15:05:17 +02:00
add action node example
This commit is contained in:
parent
b2de082227
commit
9ecdccd836
1 changed files with 1 additions and 0 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue