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

   https://issues.apache.org/jira/browse/CAMEL-25370
   
   In the r5 run of the local-model benchmark, the model asked the catalog 
tools how to write an error handler and got nothing it could use. It used all 
20 tool calls in 3 steps of fail-well-error-handling.
   
   | Asked | Before | Now |
   |---|---|---|
   | `camel_catalog_sample errorHandler` / `noErrorHandler` | "No sample for 
'errorHandler' as a eip ... which has no YAML sample" | the YAML examples of 
the error-handler page of the user manual: `errorHandler: {deadLetterChannel: 
...}` and `errorHandler: {noErrorHandler: {}}` under a route |
   | placement of `deadLetterChannel` and the other kinds | "a step inside the 
steps of a route" | `errorHandler:` with the kind as its one key, a top-level 
`- errorHandler:` for every route or under one route next to `from:`; never a 
step |
   | `camel_catalog_doc errorHandler`, option `errorHandlerType` | type object 
(the model wrote `errorHandlerType:`) | `oneOf` with the kinds, and "write one 
of oneOf as the key, not 'errorHandlerType'" |
   | `camel_catalog_doc onException optionsFilter=logStackTrace` | no match | 
`nestedOptions`: the options of its `redeliveryPolicy` that match, with the 
element they go under |
   
   The `oneOf` hint and the nested option search are generic: any element 
option with a oneOf list, and any EIP whose elements have options.
   
   ## Changes
   
   - `pom.xml`: the user manual page `error-handler` contributes the samples of 
`errorHandler`. `eip-samples.json` is regenerated; only the `errorHandler` key 
is added.
   - `CatalogSamples`: `noErrorHandler` and the transaction and ref error 
handlers resolve to `errorHandler`; the placement of the error handler kinds.
   - `CatalogDocs`: `oneOf` and `yaml` on element options; `nestedOptions` when 
the filter matches none of an EIP's own options.
   
   Tests: new cases in `CatalogSamplesTest` and `CatalogDocsTest`; the 
camel-jbang-core suite passes (1513).
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   
   https://claude.ai/code/session_01STT6whBgK1AqsSsUKrnE8m


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