Skip to content

Commit 22734e2

Browse files
ag14774Andreas Georgiou
and
Andreas Georgiou
authored
docs: replace incorrect all_messages() with new_messages() (#1566)
Co-authored-by: Andreas Georgiou <[email protected]>
1 parent 544ced0 commit 22734e2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/graph.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ class WriteEmail(BaseNode[State]):
411411
prompt,
412412
message_history=ctx.state.write_agent_messages,
413413
)
414-
ctx.state.write_agent_messages += result.all_messages()
414+
ctx.state.write_agent_messages += result.new_messages()
415415
return Feedback(result.output)
416416

417417

@@ -681,7 +681,7 @@ Instead of running the entire graph in a single process invocation, we run the g
681681
'Ask a simple question with a single correct answer.',
682682
message_history=ctx.state.ask_agent_messages,
683683
)
684-
ctx.state.ask_agent_messages += result.all_messages()
684+
ctx.state.ask_agent_messages += result.new_messages()
685685
ctx.state.question = result.output
686686
return Answer(result.output)
687687

@@ -722,7 +722,7 @@ Instead of running the entire graph in a single process invocation, we run the g
722722
format_as_xml({'question': ctx.state.question, 'answer': self.answer}),
723723
message_history=ctx.state.evaluate_agent_messages,
724724
)
725-
ctx.state.evaluate_agent_messages += result.all_messages()
725+
ctx.state.evaluate_agent_messages += result.new_messages()
726726
if result.output.correct:
727727
return End(result.output.comment)
728728
else:

0 commit comments

Comments
 (0)