feat: react agent parser is replacing all '"' - in the text and this …
…is incorrect, we can not parse a json
Fixes # (issue)
E.g.
console.log('"hello world"'.replace(/^"|"$/g, "")); // Output: hello world console.log('"hello "world" "'.replace(/^"|"$/g, "")); // Output: hello "world" console.log('"hello"world"'.replace(/^"|"$/g, "")); // Output: hello"world console.log('hello world'.replace(/^"|"$/g, "")); // Output: hello world (unchanged)
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| langchainjs-docs | 🛑 Canceled (Inspect) | Apr 28, 2025 11:12am |
1 Skipped Deployment
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| langchainjs-api-refs | ⬜️ Ignored (Inspect) | Apr 28, 2025 11:12am |
Thanks for this!
Could you add an integration test where this was failing?
Thanks for this!
Could you add an integration test where this was failing?
@jacoblee93 i added langchain/src/tests/react_agent_output_parser.test.ts
Thanks for the contribution @EfrosIonelu, and sorry it took so long to get it merged!