fix(reply): known user location reaches getWeather; retries are not blocked by the previous reply
- Drop the engine's deterministic Korean weather shortcut. It bypassed the chat model and the tool runner, so a location the user had stated could never be used. The tool already returns one clean Korean sentence. - getWeather and the tool-argument prompts pass the place the user has said they are (conversation or memory) and leave the argument empty otherwise, so the detected location is not copied into it. - getWeather retries a "district, city, country" name with its leading parts dropped when the geocoder finds nothing. - The planner gets the live time/location line and plans searchMemory topic='where the user lives' only when the location is unknown or disabled. - The per-reply repeat guard counts only this reply's tool messages, so calls carried over from the previous reply no longer block a retry the user asks for. - Memory extractor: the context block sits after the examples and the no-location example uses a different query, so a location already in context is not asked for again. New counterpart eval checks that it is still asked for when the context has none. - Tool retry eval fails every call in turn 1, so a model that retries by itself inside turn 1 still exercises the user's "try again". - Specs (planner, reply), docs/llm_contexts.md and the roadmap updated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -16,8 +16,8 @@ answers without it. This eval drives the real engine (planner, router and
|
||||
chat model are live; only the tools are mocked) and checks both shapes:
|
||||
|
||||
- live facts: an umbrella / rain question must reach getWeather. The
|
||||
queries avoid the words the deterministic weather shortcut matches, so
|
||||
the chat model has to choose the tool itself.
|
||||
queries avoid the word "weather", so the chat model has to see that
|
||||
the question needs the tool.
|
||||
- actions: "log my meal" must reach logMeal, and a timer request (no timer
|
||||
tool exists) must not be answered as if a timer had been set.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user