Skip to content

Add agent version#220

Merged
nikhilNava merged 2 commits intomainfrom
nikhilc/agentVersion
Apr 2, 2026
Merged

Add agent version#220
nikhilNava merged 2 commits intomainfrom
nikhilc/agentVersion

Conversation

@nikhilNava
Copy link
Copy Markdown
Contributor

Task
Add agent version attribute to support evals

@nikhilNava nikhilNava requested a review from a team as a code owner April 2, 2026 15:36
Copilot AI review requested due to automatic review settings April 2, 2026 15:36
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 2, 2026

⚠️ Deprecation Warning: The deny-licenses option is deprecated for possible removal in the next major release. For more information, see issue 997.

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Snapshot Warnings

⚠️: No snapshots were found for the head SHA 018877e.
Ensure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice.

Scanned Files

None

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an agent_version dimension to the observability SDK so agent/version can be attached to spans (and propagated via baggage allowlists) to better support evaluation scenarios.

Changes:

  • Introduces GEN_AI_AGENT_VERSION_KEY and GEN_AI_CALLER_AGENT_VERSION_KEY constants.
  • Extends AgentDetails with an optional agent_version field and records it on spans.
  • Adds baggage support/allowlisting for propagating agent version (and caller-agent version for invoke-agent scenarios).

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
libraries/microsoft-agents-a365-observability-core/microsoft_agents_a365/observability/core/trace_processor/util.py Adds agent/caller-agent version keys to the attribute allowlists used by the span processor.
libraries/microsoft-agents-a365-observability-core/microsoft_agents_a365/observability/core/opentelemetry_scope.py Records gen_ai.agent.version on spans when provided via AgentDetails.
libraries/microsoft-agents-a365-observability-core/microsoft_agents_a365/observability/core/middleware/baggage_builder.py Adds fluent API to set agent version in baggage.
libraries/microsoft-agents-a365-observability-core/microsoft_agents_a365/observability/core/invoke_agent_scope.py Records caller-agent version on invoke-agent spans when provided via CallerDetails.
libraries/microsoft-agents-a365-observability-core/microsoft_agents_a365/observability/core/constants.py Defines the new attribute keys for agent and caller-agent version.
libraries/microsoft-agents-a365-observability-core/microsoft_agents_a365/observability/core/agent_details.py Adds agent_version: Optional[str] to AgentDetails.

@nikhilNava nikhilNava merged commit ebc3e9a into main Apr 2, 2026
9 checks passed
@nikhilNava nikhilNava deleted the nikhilc/agentVersion branch April 2, 2026 19:08
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.

5 participants