haigou-web opened a new pull request, #951:
URL: https://github.com/apache/burr/pull/951

   Adds an end-to-end example under `examples/coding-agent/`: a small coding 
agent built as a Burr state machine, plus the tools it drives.
   
   The interesting part is that the harness is **self-correcting** — a failed 
tool call or a failing test feeds back into the next action instead of ending 
the run. That feedback loop is what makes the state machine do real work rather 
than just sequence steps, so it's the thing the example is meant to demonstrate.
   
   ## Changes
   
   - `examples/coding-agent/` — the state machine, the application wiring, and 
the tool surface, plus a README and a notebook walkthrough.
   - `tools.py` carries two hardening fixes found in review:
     - Tool arguments that arrive as a JSON **string** are now parsed instead 
of being handed to code expecting a dict (this previously raised).
     - Path containment uses `normcase` plus a separator-stripped prefix 
comparison, so the same path with a differently-cased Windows drive letter no 
longer reads as an escape.
   
   ## How I tested this
   
   ```
   py -3 -m pytest examples/coding-agent/test_coding_agent.py -q
   # 16 passed
   ```
   
   The two `tools.py` fixes each have a test that fails without the fix.
   
   ## Notes
   
   - Rebased onto current `main` (`81611591`); the diff is confined to 
`examples/coding-agent/`.
   - Happy to split the docs/notebook into a separate PR if you'd rather keep 
this one code-only.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to