Skip to content

Conversation

@IamYJLee
Copy link

All Supported Input Formats

Input Format Return Result
```json\n...\n``` Return parsed JSON output
Explanation...\n```json\n...\n```\nMore text Return parsed JSON output
Explanation...\n{...}\nMore text Return parsed JSON output
No JSON here return raw output ❌ (parse failed)

Conclusion

No matter how the LLM responds, if there is a ```json``` block or a {...} structure, it will be correctly extracted.

@sttlr
Copy link
Contributor

sttlr commented Jan 14, 2026

Cool! It'd be nice to add tests for this functionality.

@IamYJLee
Copy link
Author

Cool! It'd be nice to add tests for this functionality.

@sttlr Thanks for the review! Feedback addressed.

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.

2 participants