Small Documentation fix for graph.md "Example: Human in the loop." #1280
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
With
ai_q_and_a_graph.py
given aboveai_q_and_a_run.py
code is wronganswer: str | None = sys.argv[2] if len(sys.argv) > 2 else None
should be
answer: str | None = sys.argv[1] if len(sys.argv) > 1 else None
We only need 1 argument for answer
(This example is complete, it can be run "as is" with Python 3.10+ — you'll need to add asyncio.run(main(answer)) to run main)
is wrong.asyncio.run(main(answer))
should beasyncio.run(main())
becausemain()
inai_q_and_a_run.py
does not accept arguments.Issue: #1279