Skip to content

[HANDS-ON BUG] Creating a RAG Tool for Guest Stories | Step 3 | langgraph #402

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
polisdi opened this issue Apr 2, 2025 · 0 comments
Open

Comments

@polisdi
Copy link

polisdi commented Apr 2, 2025

The last line of the code for langgraph framework needs to be corrected for using "response: instead "messages":

print(messages['messages'][-1].content) -> print(response['messages'][-1].content)

The original line gives the error:

print(messages['messages'][-1].content)
~~~~~~~~^^^^^^^^^^^^
TypeError: list indices must be integers or slices, not str

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant