File tree Expand file tree Collapse file tree 2 files changed +6
-12
lines changed
libs/providers/langchain-google/src/converters Expand file tree Collapse file tree 2 files changed +6
-12
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @langchain/google " : patch
3+ ---
4+
5+ Undo regression introduced in #10397 in legacy content processing path.
6+ Fixes issues with a false duplicate functionCall sent in response (#10474 ).
Original file line number Diff line number Diff line change @@ -736,18 +736,6 @@ function convertLegacyContentMessageToGeminiContent(
736736 }
737737 }
738738
739- // Convert AIMessage tool_calls to functionCall parts
740- if ( AIMessage . isInstance ( message ) && message . tool_calls ?. length ) {
741- for ( const toolCall of message . tool_calls ) {
742- parts . push ( {
743- functionCall : {
744- name : toolCall . name ,
745- args : toolCall . args ?? { } ,
746- } ,
747- } as Gemini . Part . FunctionCall ) ;
748- }
749- }
750-
751739 // Handle tool messages as function responses
752740 if ( ToolMessage . isInstance ( message ) && message . tool_call_id ) {
753741 const responseContent =
You can’t perform that action at this time.
0 commit comments