diff --git a/libs/langchain-aws/src/common.ts b/libs/langchain-aws/src/common.ts index 8b0d8e0d2e18..d187b6c3d061 100644 --- a/libs/langchain-aws/src/common.ts +++ b/libs/langchain-aws/src/common.ts @@ -106,7 +106,7 @@ export function convertToConverseMessages(messages: BaseMessage[]): { }; } else { const blockValues = Object.fromEntries( - Object.values(block).filter(([key]) => key !== "type") + Object.entries(block).filter(([key]) => key !== "type") ); throw new Error( `Unsupported content block type: ${