Skip to content

Improve agent recovery from the first eval run - #113

Merged
joadan merged 2 commits into
mainfrom
agent-eval-fixes
Oct 15, 2026
Merged

joadan merged 2 commits into
mainfrom
agent-eval-fixes

Conversation

@joadan

@joadan joadan commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Follow-up to the first eval run against Azure AI Foundry (gpt-5.4-mini): 8/8 passed, 2.9 tool calls and ~4,400 tokens per question, but three things wasted calls.

  • Name suggestions: name → customerName caused 3 of 4 rejected queries; the error listed the fields but had no "did you mean". NameSuggestions.Closest now falls back to a field ending with the guessed word at a camelCase boundary.
  • Page-size hint: the agent retried first: 100 then first: 20 against a max of 2 (6 tool calls, 41 s). Server errors with HotChocolate's HC0051 now carry a hint with the limit from the error's extensions (maxAllowedItems, coordinate).
  • Sample: "Which animal is the fastest?" was unanswerable (no speed field) and passed by luck; replaced with "Which animal has the most legs?". The orders description states the page limit.

Design doc's Query quality table updated. Tests: 296 passed, 0 warnings.

Stacked on #112; base retargets to main once that merges.

- Suggest a field whose name ends with the guessed one at a camelCase
  boundary (name -> customerName), the most common rejected query.
- Add a hint with the server's limit to HotChocolate page-size errors
  (HC0051), which the SDL cannot express.
- Sample: replace the 'fastest animal' question, which the schema cannot
  answer, and state the orders page limit in its description.
@joadan
joadan changed the base branch from agent-ai-preview-version to main October 15, 2026 16:01
@joadan
joadan merged commit cba1d07 into main Oct 15, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant