Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Improve JSON parsing with fallback support #164

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

erkinalp
Copy link

Fixes #53

Improves JSON parsing to handle both marked and unmarked content:

  • Adds fallback parsing for valid JSON without markers
  • Maintains backward compatibility via strict_mode parameter
  • Adds comprehensive tests for different formats
  • Updates components to use appropriate parsing mode
  • Improves error handling and reporting

Link to Devin run: https://app.devin.ai/sessions/c75521a812964cdb852d794c4797fba4

- Add strict_mode parameter for backward compatibility
- Implement fallback parsing for unmarked JSON
- Add comprehensive test suite for JSON parsing
- Improve error handling and reporting

Co-Authored-By: Erkin Alp Güney <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

extract_json_between_markers doesn't handle responses missing json markers
1 participant