Skip to content

docs: fix broken code examples in 3 blog posts#2559

Open
VasiliyRad wants to merge 1 commit intomainfrom
elva/fix-broken-code-examples
Open

docs: fix broken code examples in 3 blog posts#2559
VasiliyRad wants to merge 1 commit intomainfrom
elva/fix-broken-code-examples

Conversation

@VasiliyRad
Copy link
Copy Markdown
Contributor

Fix: Broken code examples in blog posts

Category: code_sample_error
Confidence: 95%

Changes

  • website/docs/_blogs/2024-01-23-Code-execution-in-docker/index.mdx — Added missing comma between code_execution_config dict and llm_config keyword argument in UserProxyAgent constructor (SyntaxError)
  • website/docs/_blogs/2024-12-06-FalkorDB-Structured/index.mdx — Added missing import autogen and import os to structured output code example (NameError: autogen and os used but not imported)
  • website/docs/_blogs/2024-02-11-FSM-GroupChat/index.mdx — Fixed indentation in 7 code blocks that had extra leading whitespace from MDX list formatting (SyntaxError: unexpected indent)

Evidence

  • Sentinel code validation scan detected SyntaxError and NameError on these pages
  • Each fix is minimal — only the specific error was corrected
  • All fixed code blocks verified via ast.parse()

Validation

  • No changes to surrounding prose or teaching intent
  • 9 total code issues fixed across 3 files

Generated by Elva from Sentinel findings. Please review before merging.

Did you know? The peregrine falcon can dive at over 380 km/h, making it the fastest animal on Earth.

- Code-execution-in-docker: added missing comma between function arguments
  in UserProxyAgent constructor (SyntaxError)
- FalkorDB-Structured: added missing `import autogen` and `import os` to
  structured output code example (NameError)
- FSM-GroupChat: fixed indentation in 7 code blocks that had extra leading
  whitespace from MDX list formatting (SyntaxError)

All fixes verified via ast.parse(). No changes to surrounding prose.

Generated by Elva from Sentinel findings.
@github-actions github-actions bot added the documentation Improvements or additions to documentation label Apr 6, 2026
@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Elva seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
see 25 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants