davsclaus opened a new pull request, #29325:
URL: https://github.com/apache/camel/pull/29325

   https://issues.apache.org/jira/browse/CAMEL-26690
   
   Part 2 of 4 for CAMEL-26690, follow-ups from the r28 run of the local-model 
benchmark. The four PRs are independent of each other: each was built and 
tested alone on main.
   
   - **The column message gives a place that works.** In 
fail-well-error-handling step 2 (r28l-4) a nested choice's `steps:` was in the 
wrong column. The message offered columns 19 and 15, both give invalid YAML, 
and the model sent the same content 16 times. Each place is now judged by the 
schema, and the message names the one that works, with the lines: "It is a key 
of the item at line 46, as expression is: it goes in column 25, after line 48. 
Write lines 49-56 as: ...". When the schema cannot judge, the old message 
stays. Of 75 refusals with this message in r23 to r28, 51 now get one place, 
and in all 50 that come with lines the lines remove the problem.
   - **A repair.** The write tool moves `steps:` or `otherwise:` written in the 
column of the list dashes, when the validator found exactly one place and the 
new lines are the old lines moved. 27 of the 75 writes are then written.
   - **Messages that misread the write.** A literal `\n` now says "the two 
characters \ and n: YAML reads them as text, not as a line break" with the 
lines to write (it was read as concatenation). A top-level `- route:` is named 
against the list of the file's entries. A marshal into a variable 
(`variableReceive`) says that the body is still the data, and how to send the 
variable.
   - **The errorHandler hint gives the kind.** It suggested `errorHandler: 
{redeliveryPolicy: ...}`, which is not valid. It now gives `errorHandler: 
{defaultErrorHandler: {redeliveryPolicy: {...}}}`, or `deadLetterChannel: 
{deadLetterUri: ...}`; a test validates the suggested text.
   
   **Checks**
   - No message on the bundled examples, the reference files of the benchmark, 
and the 3,506 final files of the passed steps of r23 to r28.
   - Tests pass: camel-yaml-dsl-validator (357), the `ai` package of 
camel-jbang-core (943, 1 skipped as before), camel-jbang-mcp (539).
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   
   https://claude.ai/code/session_016Y4dDi5iQNgtHrDdz2NpwF
   


-- 
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