Skip to content

[fix] perfect structure decode for complex string#7581

Open
Aur0ra-m wants to merge 1 commit intoagno-agi:mainfrom
Aur0ra-m:main
Open

[fix] perfect structure decode for complex string#7581
Aur0ra-m wants to merge 1 commit intoagno-agi:mainfrom
Aur0ra-m:main

Conversation

@Aur0ra-m
Copy link
Copy Markdown

@Aur0ra-m Aur0ra-m commented Apr 18, 2026

Summary

Fixes #7402

By implementing a stack-based processing logic, we can elegantly resolve the issue of nested fenced blocks while avoiding the pitfalls of aggressive stripping that compromise complex structural outputs.

Model output:
```json
    {
        "name": "test",
        "value": "### Notes
    Use the following snippet:
    ```python
    def greet():
        print('hello')
    ```",
        "description": "Markdown includes python code block"
    }
    ```

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Improvement
  • Model update
  • Other:

@Aur0ra-m Aur0ra-m requested a review from a team as a code owner April 18, 2026 16:15
@Aur0ra-m Aur0ra-m changed the title perfect structure decode for complex string [fix] perfect structure decode for complex string Apr 19, 2026
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.

1 participant