Skip to content

Commit

Permalink
chore: lint files
Browse files Browse the repository at this point in the history
  • Loading branch information
bracesproul committed Jul 25, 2024
1 parent 8305b15 commit a07b347
Showing 1 changed file with 0 additions and 36 deletions.
36 changes: 0 additions & 36 deletions libs/langchain-google-common/src/utils/gemini.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit a07b347

Please sign in to comment.