-
Notifications
You must be signed in to change notification settings - Fork 478
feat(api): prefer x-agenta-flags for evaluation chat detection #3623
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
mmabrouk
wants to merge
6
commits into
feat/new-chat-interface
Choose a base branch
from
feat/chat-interface-eval-detection
base: feat/new-chat-interface
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
feat(api): prefer x-agenta-flags for evaluation chat detection #3623
mmabrouk
wants to merge
6
commits into
feat/new-chat-interface
from
feat/chat-interface-eval-detection
+107
−19
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Parse x-agenta-flags.is_chat from OpenAPI operations when available - Fall back to legacy heuristic based on messages fields - Thread is_chat into evaluation payload building and add temporary logs
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
The SDK (PR #3622) changed the OpenAPI vendor extension from a flat 'x-agenta-flags' key to a nested 'x-agenta: {flags: {...}}' structure. Update _get_openapi_chat_flag to read from the new nested path. Also removes unused imports (common, make_hash_id) caught by ruff.
8ef59cf to
a7478cd
Compare
Contributor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mmabrouk
commented
Feb 9, 2026
…llback, restore removed variables
- Fix TODO comment: says 'messages' column, not 'chats'
- Remove datapoint.get('chat') fallback — 'chat' was the old column name,
the FE now uses 'messages'. No need for backward compat.
- Restore references/links variables + imports that were removed by ruff
as unused — they belong to a commented-out make_hash_id call and are
out of scope for this PR.
…SaveTestsetModal SaveTestsetModal.tsx hardcodes 'chat' as the column name when re-saving evaluation results to a testset. Several FE readers (DebugSection, CHAT_ARRAY_KEYS, legacy evaluation exports) also reference 'chat'. Keep the fallback: prefer 'messages', fall back to 'chat'.
Member
Author
Testing ResultsWhat was tested
What's confirmed working
Additional tests needed
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Stacked on #3622
Updates evaluation OpenAPI parsing to prefer the new
x-agenta-flags.is_chatvendor extension, with fallback to legacy heuristics.Changes
x-agenta-flags.is_chatfrom OpenAPI/testor/runoperationsmessagesproperty orx-parameter: messages)is_chatthrough payload construction so message parsing only runs for chat appsLogging (temporary)
or
These logs will be removed after validation.
Files Changed
api/oss/src/services/llm_apps_service.pyapi/oss/src/core/evaluations/tasks/legacy.pydocs/design/chat-interface-rfc/status.md