Skip to content

metadata argument is not passed to convert laggraph message #2060

Open
@amarmudrankit

Description

@amarmudrankit

[ ] I have checked the documentation and related resources and couldn't resolve my bug.

Describe the bug
When converting langgraph messages into ragas messages, if the user requests to include metadata, it is not copied for AIMessage. Works for Human and Tool message because, MESSAGE_TYPE_MAP gets set at the beginning of the method.

Particularly this line needs to be modified to send metadata argument received

Ragas version: 0.2.15
Python version: 3.12

Code to Reproduce
Share code to reproduce the issue

Error trace

Expected behavior
A clear and concise description of what you expected to happen.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions