davsclaus opened a new pull request, #29231: URL: https://github.com/apache/camel/pull/29231
https://issues.apache.org/jira/browse/CAMEL-26636 The AI panel of the TUI cut every tool result at 16,000 characters (`AiPanel.MAX_TOOL_RESULT_CHARS`). Since CAMEL-24961 a `camel_catalog_doc` answer can be 18,000 characters, and a long answer names at its end the options and headers it leaves out (`moreOptions`, `moreHeaders` and the note), which the model needs to ask for one of them. The panel cut that end off. - The panel now uses the longest catalog answer, `CatalogDocs.MAX_ANSWER_LENGTH` (made public), as its limit, so the two stay the same. - A new test in `AiPanelHistoryCompactionTest` checks that an answer of that length passes uncut (13 tests pass). Found with the local-model benchmark, whose harness had the same 16,000 limit: in r27 it cut 53 catalog answers of one set, among them an aws2-s3 answer of 17,705 characters that the model asked for 21 times. 🤖 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]
