Skip to content

feat(agents): Fall back to gen_ai.function_id for agent name resolution#111608

Merged
obostjancic merged 2 commits intomasterfrom
ognjenbostjancic/tet-2147-agent-name-should-fall-back-to-function-id
Mar 26, 2026
Merged

feat(agents): Fall back to gen_ai.function_id for agent name resolution#111608
obostjancic merged 2 commits intomasterfrom
ognjenbostjancic/tet-2147-agent-name-should-fall-back-to-function-id

Conversation

@obostjancic
Copy link
Member

The Vercel AI SDK sends gen_ai.function_id instead of gen_ai.agent.name. Centralizes fallback logic in query.tsx and aiTraceNodes.tsx so the agent selector, filter, and traces table resolve names from either attribute.

The Vercel AI SDK sends gen_ai.function_id instead of gen_ai.agent.name.
This adds centralized fallback logic so the agent selector, agent filter,
and traces table all resolve agent names from either attribute.

- Add getHasAgentNameFilter, getAgentNameSearchFilter, getAgentNamesFilter
  to query.tsx for OR-based search across both fields
- Add resolveAgentName and AGENT_NAME_FIELDS to aiTraceNodes.tsx for
  attribute resolution
- Update agentSelector to query and display agents from both fields
- Update useAgentFilter to generate filters covering both fields
- Update tracesTable agent query to fetch both fields
- Update highlightedAttributes to use centralized resolveAgentName
@obostjancic obostjancic requested review from a team as code owners March 26, 2026 11:19
@linear-code
Copy link

linear-code bot commented Mar 26, 2026

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Mar 26, 2026
@obostjancic obostjancic merged commit 4bb5e54 into master Mar 26, 2026
70 checks passed
@obostjancic obostjancic deleted the ognjenbostjancic/tet-2147-agent-name-should-fall-back-to-function-id branch March 26, 2026 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants