Claus Ibsen created CAMEL-26825:
-----------------------------------

             Summary: camel-jbang - AI tools: the refusal of a constant with 
${...} gives the lines to write
                 Key: CAMEL-26825
                 URL: https://issues.apache.org/jira/browse/CAMEL-26825
             Project: Camel
          Issue Type: Improvement
          Components: camel-jbang
            Reporter: Claus Ibsen
            Assignee: Claus Ibsen
             Fix For: 4.24.0


Follow-up from the local-model benchmark (qwen3.6, r31) and CAMEL-26758. In r31 
the loop breaker of CAMEL-26758 fired twice, and both steps passed. One loop 
was left: contracts-rest-code-first step 1 sent the same file 13 times and 
failed. The file had two problems. The refusal of the jsonpath with [] gives 
the line to write. The refusal of the constant with ${header.id} says "use 
simple: {expression: ...}", but gives no lines to write. The write tool writes 
only when every problem is fixed, so the file was never written.
* The refusal of a constant that holds a simple function, such as ${header.id}, 
now ends with the lines to write: "Write line 10 as:" (or "Write lines 57-58 
as:") and the lines with simple: in place of constant:. A model can copy them, 
and the write tool can apply them on the third identical write.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to