Skip to content

Commit

Permalink
fix: _convert_ai_message
Browse files Browse the repository at this point in the history
  • Loading branch information
i-w-a committed Jan 25, 2025
1 parent 17ba21e commit 50b1c27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ragas/integrations/langgraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def _extract_tool_calls(message: AIMessage) -> List[r.ToolCall]:
for tool_call in tool_calls
]

def _convert_ai_message(message: AIMessage) -> r.AIMessage:
def _convert_ai_message(message: AIMessage, metadata: bool) -> r.AIMessage:
tool_calls = _extract_tool_calls(message) if message.additional_kwargs else None
if metadata:
return r.AIMessage(
Expand Down

0 comments on commit 50b1c27

Please sign in to comment.