feat: add foundry skill user agent in azd ai agent - #9726
Conversation
|
Azure Pipelines: Successfully started running 1 pipeline(s). 20 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
There was a problem hiding this comment.
Pull request overview
Centralizes Azure AI Agents extension User-Agent construction and adds Foundry skill attribution when invoked with the designated environment marker.
Changes:
- Adds shared User-Agent helpers and tests.
- Applies Foundry skill attribution across API, ARM, connection, streaming, and doctor requests.
- Preserves existing client-specific User-Agent values.
Reviewed changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
internal/pkg/useragent/user_agent.go |
Defines shared User-Agent generation. |
internal/pkg/useragent/user_agent_test.go |
Tests skill attribution behavior. |
internal/pkg/azure/foundry_toolsets_client.go |
Uses the shared default User-Agent. |
internal/pkg/azure/foundry_projects_client.go |
Uses the shared default User-Agent. |
internal/pkg/azure/foundry_memory_store_client.go |
Uses the shared default User-Agent. |
internal/pkg/azure/client_options.go |
Applies the shared User-Agent to ARM clients. |
internal/pkg/agents/optimize_api/client.go |
Tags optimization requests. |
internal/pkg/agents/eval_api/operations.go |
Tags evaluation requests. |
internal/pkg/agents/dataset_api/operations.go |
Tags dataset requests. |
internal/pkg/agents/agent_api/operations.go |
Tags agent and log-stream requests. |
internal/connections/pkg/connections/data_client.go |
Tags connection requests. |
internal/cmd/doctor/checks_foundry_endpoint.go |
Tags doctor probe requests. |
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
📋 Prioritization NoteThanks for the contribution! The linked issue isn't in the current milestone yet. |
Travis Angevine (trangevi)
left a comment
There was a problem hiding this comment.
What about the other extensions?
Travis Angevine (@trangevi) right now, we just need to analyze hosted agent BI data, so azure.ai.agent extension is enough. |
Summary
Adds a Foundry Skill User-Agent to requests sent by the
azure.ai.agentsextension to Microsoft Foundry services.When
AZURE_DEV_USER_AGENTcontainsmicrosoft_foundry_skill, existing Foundry service request User-Agent values appendmicrosoft-foundry-skill/1.0.This enables Foundry service-side attribution.
Validation
go build ./...Fixes: #9727