From a07b3471d8b0b4b55330fc69e066c23e47b4add1 Mon Sep 17 00:00:00 2001 From: bracesproul Date: Thu, 25 Jul 2024 12:17:49 -0700 Subject: [PATCH] chore: lint files --- .../src/utils/gemini.ts | 36 ------------------- 1 file changed, 36 deletions(-) diff --git a/libs/langchain-google-common/src/utils/gemini.ts b/libs/langchain-google-common/src/utils/gemini.ts index bdff28a2c50c..d230203a85de 100644 --- a/libs/langchain-google-common/src/utils/gemini.ts +++ b/libs/langchain-google-common/src/utils/gemini.ts @@ -685,42 +685,6 @@ export function partsToBaseMessageChunkFields( return fields; } -// export function partsToBaseMessageFields(parts: GeminiPart[]): AIMessageFields { -// const fields: AIMessageFields = { -// content: partsToMessageContent(parts), -// tool_calls: [], -// invalid_tool_calls: [], -// }; - -// const rawTools = partsToToolsRaw(parts); -// if (rawTools.length > 0) { -// const tools = toolsRawToTools(rawTools); -// for (const tool of tools) { -// try { -// fields.tool_calls?.push({ -// name: tool.function.name, -// args: JSON.parse(tool.function.arguments), -// id: tool.id, -// type: "tool_call", -// }); -// // eslint-disable-next-line @typescript-eslint/no-explicit-any -// } catch (e: any) { -// fields.invalid_tool_calls?.push({ -// name: tool.function.name, -// args: JSON.parse(tool.function.arguments), -// id: tool.id, -// error: e.message, -// type: "invalid_tool_call", -// }); -// } -// } -// fields.additional_kwargs = { -// tool_calls: tools, -// }; -// } -// return fields; -// } - export function responseToBaseMessage( response: GoogleLLMResponse ): BaseMessage {