feat(core): add ToonUtils for JSON to TOON format conversion and update FlowAiCopilot to use it#13380
Open
iitzIrFan wants to merge 12 commits intokestra-io:developfrom
Open
feat(core): add ToonUtils for JSON to TOON format conversion and update FlowAiCopilot to use it#13380iitzIrFan wants to merge 12 commits intokestra-io:developfrom
iitzIrFan wants to merge 12 commits intokestra-io:developfrom
Conversation
…te FlowAiCopilot to use it
Contributor
Author
|
Any update on this PR? @MilosPaunovic @brian-mulier-p |
Member
|
I'm too busy to properly test this PR rn so it will have to wait a bit sorry |
Contributor
Author
|
No issues at all, @brian-mulier-p, please take your time reviewing the PR. I also wanted to highlight that, I have added tests for the Toon Utility, which should make the review smoother. Thanks for your response! |
Member
|
@brian-mulier-p This also needs your eyes, when you get the chance. 🙏🏻 |
brian-mulier-p
requested changes
Mar 4, 2026
Member
brian-mulier-p
left a comment
There was a problem hiding this comment.
- you forgot to update FlowAiCopilot to use it
Contributor
Author
|
Will update! |
Contributor
Author
|
@brian-mulier-p , I have updated |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
✨ Description
feat(ai): implement TOON format for JSON Schema optimization
TOON (Token-Oriented Object Notation) reduces JSON Schema
size by 30-40%, improving LLM response times and reducing token costs.
Implements TOON 2.0 spec with support for:
🔗 Related Issue
Closes: #12433
🛠️ Backend Checklist
📝 Additional Notes
Implements TOON encoder to send JSON Schema to the AI Copilot in a compact, indentation-based format to reduce token usage and speed up LLM responses. Integrates ToonUtils.jsonToToon() into the AI flow generation.
Testing notes (Windows):