We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62769a0 commit 3286a98Copy full SHA for 3286a98
libs/core/langchain_core/messages/block_translators/google_genai.py
@@ -458,6 +458,8 @@ def _convert_to_v1_from_genai(message: AIMessage) -> list[types.ContentBlock]:
458
if outcome is not None:
459
server_tool_result_block["extras"]["outcome"] = outcome
460
converted_blocks.append(server_tool_result_block)
461
+ elif item_type == "text":
462
+ converted_blocks.append(cast("types.TextContentBlock", item))
463
else:
464
# Unknown type, preserve as non-standard
465
converted_blocks.append({"type": "non_standard", "value": item})
0 commit comments