Repository navigation
[bot] Instrument Azure AI Agents SDK (204,195 weekly downloads) #2605
Description
Summary
@azure/ai-agents is Microsoft's official TypeScript/JavaScript SDK for Azure AI Foundry's Agent Service — a stateful, server-run agent surface (analogous to OpenAI's Assistants/Responses agent model) where you create an agent, create a thread, and execute runs that the service drives end-to-end (including tool calls such as file search and code interpreter), optionally streamed. This execution surface is not instrumented anywhere in this repository. This is distinct from Azure OpenAI/Azure AI Foundry model-routing support, which Braintrust already documents as an AI provider (gateway/billing config), not a client-side agent-run tracing integration.
What's missing
AgentsClient.createAgent(...)— registers an agent (model + instructions + tools).- Thread + run execution (
client.threads.create(),client.runs.create()/createAndRun, streaming runs) — the actual agent-execution surface, where the service plans, calls the model, and executes tool calls (file search, code interpreter, function tools) before returning. - The higher-level
@azure/ai-projectsclient, which wraps@azure/ai-agentsbehind a.agentsproperty for the same create/run/stream surface.
None of @azure/ai-agents, @azure/ai-projects, AgentsClient, or azure-ai-agents appear anywhere in js/src/, js/src/auto-instrumentations/configs/all.ts (the instrumentation registry), js/src/span-origin.ts (INSTRUMENTATION_NAMES), or any e2e/scenarios/* directory.
Weekly downloads
Weekly downloads: 204,195 (as of 2026-10-14; window 2026-10-06 to 2026-10-12; source https://api.npmjs.org/downloads/point/last-week/@azure/ai-agents)
Braintrust docs status
not_found — Checked https://www.braintrust.dev/docs/integrations/ai-providers/azure, which covers Azure OpenAI/Azure AI Foundry as a model provider (chat completions via AzureOpenAIClient, Entra Workload Identity auth for the Braintrust gateway) — no mention of the Agents/Agent Service SDK, threads, or runs. Also checked https://www.braintrust.dev/docs/guides/traces/integrations (full agent-framework integration list: Agno, OpenAI Agents SDK, Claude Agent SDK, Pi Coding Agent SDK, Deep Agents, LangGraph, CrewAI, AutoGen, AgentScope, Google ADK, LiveKit Agents, Mastra, Pipecat, Pydantic AI, Strands Agents SDK, Cloudflare Agents/AI Chat) — Azure AI Agents is absent.
Upstream sources
- https://www.npmjs.com/package/@azure/ai-agents
- https://learn.microsoft.com/en-us/javascript/api/overview/azure/ai-agents-readme?view=azure-node-latest
- https://learn.microsoft.com/en-us/javascript/api/overview/azure/ai-projects-readme?view=azure-node-latest
- https://github.com/Azure-Samples/azure-ai-agents-javascript
Local repo files inspected
js/src/auto-instrumentations/configs/all.ts(full instrumentation registry — no Azure Agents entry)js/src/span-origin.ts(INSTRUMENTATION_NAMES— no Azure Agents entry)- Repo-wide case-insensitive search for
@azure/ai-agents,@azure/ai-projects,AgentsClient,azure-ai-agentsacross the working tree (zero matches) e2e/scenarios/directory listing (no Azure-Agents-named scenario)
Activity
[-][bot] Instrument Azure AI Agents SDK (219,062 weekly downloads)[/-][+][bot] Instrument Azure AI Agents SDK (204,195 weekly downloads)[/+]