huggingface / huggingface/agents-course

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

Open
#402 0 comments 0 reactions 0 assignees View on GitHub
hands-on-bug
Dominant language
MDX
Stars
32.6k
Forks
2.3k
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.