From 40667e50fcd22ab9890c307426cc0ef54570c825 Mon Sep 17 00:00:00 2001 From: Paul Kompfner Date: Tue, 5 May 2026 13:03:49 -0400 Subject: [PATCH] Add changelog for #4404 --- changelog/4404.added.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog/4404.added.md diff --git a/changelog/4404.added.md b/changelog/4404.added.md new file mode 100644 index 000000000..1ccf8deb9 --- /dev/null +++ b/changelog/4404.added.md @@ -0,0 +1 @@ +- Added an opt-in `add_tool_change_messages` flag to the LLM aggregators (set via `LLMContextAggregatorPair(..., add_tool_change_messages=True)`) that appends a developer-role message to the context whenever `LLMSetToolsFrame` changes the set of advertised standard tools. Helps the LLM stay coherent across mid-conversation tool changes, mitigating several flavors of tool-call-related hallucination: calling tools that have been removed, avoiding tools that have been re-added, and hallucinating output (made-up answers or tool-call-shaped non-tool-calls) when tools are unavailable.