langchain-ai / langchainjs

🦜🔗 Build context-aware reasoning applications 🦜🔗
https://js.langchain.com/docs/
MIT License
12.71k stars 2.19k forks source link

chore(langchain): add throw err for JsonOutputFunctionsParser.parse #7204

Open Makoq opened 2 days ago

Makoq commented 2 days ago

When use the method of JsonOutputFunctionsParser.parse(text: string) with input text in non-strict mode JSON string, throw description of error information to notice the developers.

It's relatively common in developing and debugging that input content is non-strict mode JSON.

vercel[bot] commented 2 days ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
langchainjs-docs ✅ Ready (Inspect) Visit Preview Nov 14, 2024 10:14am
1 Skipped Deployment | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **langchainjs-api-refs** | ⬜️ Ignored ([Inspect](https://vercel.com/langchain/langchainjs-api-refs/GMnHQ3o8JnHSFESD3Zytf12WmcMB)) | | | Nov 14, 2024 10:14am |