Skip to content

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

Open
@polisdi

Description

@polisdi

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions