Skip to content
This repository was archived by the owner on Aug 5, 2025. It is now read-only.

Commit 561240c

Browse files
committed
fix: mypy
1 parent b1cb490 commit 561240c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

literalai/callback/langchain_callback.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ def _convert_message(
153153
tool_calls = []
154154
content_parts = []
155155
for item in message.content:
156+
if isinstance(item, str):
157+
continue
156158
if item.get("type") == "tool_use":
157159
tool_calls.append(
158160
{

0 commit comments

Comments
 (0)