Skip to content

Commit 40ed873

Browse files
Merge remote-tracking branch 'origin/main' into issue-8255-concurrent-checkpoint-delete
2 parents 806f9d6 + 91b3c8b commit 40ed873

206 files changed

Lines changed: 18042 additions & 2325 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/CODEOWNERS‎

Lines changed: 8 additions & 127 deletions
Original file line numberDiff line numberDiff line change
@@ -1,133 +1,14 @@
11
# Code ownership assignments
22
# https://docs.github.com/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners
33
#
4-
# Policy: a PR needs one approval, and it must come from a code owner of the changed
5-
# files ("Require review from Code Owners" + "Required approvals: 1" on `main`).
6-
# A PR touching several CODEOWNERS patterns will request review from the applicable
7-
# code owners, but an approval from any applicable code owner is sufficient to satisfy
8-
# GitHub's required-code-owner review.
9-
#
10-
# Order matters: the LAST matching pattern wins, so a module rule fully replaces the
11-
# catch-all rather than adding to it. @chetantoshniwal is included on every line as a
12-
# repository-wide fallback owner. All owners on a line have equal approval authority.
13-
#
14-
# CONVENTION: owners are written in the order
15-
# @chetantoshniwal <owner A> <owner B> [...]
16-
# @chetantoshniwal is at the beginning for aesthetics. The owners share equal approval
17-
# power and responsibility.
18-
#
19-
# RULE: every path must list at least two owners besides @chetantoshniwal. An author
20-
# cannot approve their own PR, so a path with a single module owner leaves only Chetan
21-
# to review whenever that owner is the author, which defeats the point of naming a
22-
# module owner.
23-
#
24-
# Samples: owned by all core developers of that language, not by the module a sample
25-
# demonstrates. Any core Python developer can approve any Python sample, and any core
26-
# .NET developer can approve any .NET sample. No dedicated rule is needed -- samples
27-
# fall through to the /python and /dotnet rules, which already list those developers.
28-
#
29-
# Tests: same as samples. Tests that live inside a package (python/packages/<pkg>/tests)
30-
# are covered by that package's rule instead, since they sit under its path.
31-
32-
# Default owners for everything not matched by a module rule below.
33-
* @chetantoshniwal @westey-m
34-
35-
# Repository-level paths: every core Agent Framework developer is a code owner, so any
36-
# one of them can approve. Be explicit now and we can use the AgentFramework team in the future.
37-
/docs/ @chetantoshniwal @westey-m @eavanvalkenburg @giles17 @moonbox3 @TaoChenOSU @jpalvarezl @peibekwe @baywet @rogerbarreto @SergeyMenshykh
38-
/*.md @chetantoshniwal @westey-m @eavanvalkenburg @giles17 @moonbox3 @TaoChenOSU @jpalvarezl @peibekwe @baywet @rogerbarreto @SergeyMenshykh
39-
/LICENSE @chetantoshniwal @westey-m @eavanvalkenburg @giles17 @moonbox3 @TaoChenOSU @jpalvarezl @peibekwe @baywet @rogerbarreto @SergeyMenshykh
40-
/.gitattributes @chetantoshniwal @westey-m @eavanvalkenburg @giles17 @moonbox3 @TaoChenOSU @jpalvarezl @peibekwe @baywet @rogerbarreto @SergeyMenshykh
41-
/.gitignore @chetantoshniwal @westey-m @eavanvalkenburg @giles17 @moonbox3 @TaoChenOSU @jpalvarezl @peibekwe @baywet @rogerbarreto @SergeyMenshykh
42-
/.github @chetantoshniwal @westey-m @eavanvalkenburg @giles17 @moonbox3 @TaoChenOSU @jpalvarezl @peibekwe @baywet @rogerbarreto @SergeyMenshykh
43-
44-
# Repository-level paths that require specific owners
45-
/.devcontainer @chetantoshniwal @westey-m @rogerbarreto @SergeyMenshykh
46-
/declarative-agents @chetantoshniwal @moonbox3 @eavanvalkenburg @peibekwe @baywet
47-
48-
# Core Python developers: @eavanvalkenburg @giles17 @moonbox3 @TaoChenOSU @jpalvarezl
49-
/python @chetantoshniwal @eavanvalkenburg @giles17 @moonbox3 @TaoChenOSU @jpalvarezl
4+
# Order matters: the last matching pattern wins. The default rule applies outside
5+
# /python and /dotnet; each language-specific rule replaces it for that tree.
506

51-
# Python packages
52-
/python/packages/a2a/ @chetantoshniwal @giles17 @eavanvalkenburg @moonbox3
53-
/python/packages/ag-ui/ @chetantoshniwal @eavanvalkenburg @moonbox3 @giles17
54-
/python/packages/anthropic/ @chetantoshniwal @eavanvalkenburg @giles17 @moonbox3
55-
/python/packages/azure-ai-search/ @chetantoshniwal @eavanvalkenburg @giles17 @moonbox3
56-
/python/packages/azure-contentunderstanding/ @chetantoshniwal @giles17 @eavanvalkenburg @moonbox3
57-
/python/packages/azure-cosmos/ @chetantoshniwal @eavanvalkenburg @giles17 @moonbox3
58-
/python/packages/azure-cosmos-memory/ @chetantoshniwal @eavanvalkenburg @giles17 @moonbox3
59-
/python/packages/bedrock/ @chetantoshniwal @eavanvalkenburg @giles17 @moonbox3
60-
/python/packages/chatkit/ @chetantoshniwal @eavanvalkenburg @moonbox3 @giles17
61-
/python/packages/claude/ @chetantoshniwal @eavanvalkenburg @giles17 @moonbox3
62-
/python/packages/copilotstudio/ @chetantoshniwal @eavanvalkenburg @giles17 @moonbox3
63-
/python/packages/core/ @chetantoshniwal @eavanvalkenburg @moonbox3 @TaoChenOSU @jpalvarezl @giles17
64-
/python/packages/core/agent_framework/_in_memory.py @chetantoshniwal @westey-m @eavanvalkenburg @giles17 @moonbox3 @TaoChenOSU @jpalvarezl @peibekwe @baywet @rogerbarreto @SergeyMenshykh
65-
/python/packages/core/agent_framework/_vector_filters.py @chetantoshniwal @westey-m @eavanvalkenburg @giles17 @moonbox3 @TaoChenOSU @jpalvarezl @peibekwe @baywet @rogerbarreto @SergeyMenshykh
66-
/python/packages/core/agent_framework/_vectors.py @chetantoshniwal @westey-m @eavanvalkenburg @giles17 @moonbox3 @TaoChenOSU @jpalvarezl @peibekwe @baywet @rogerbarreto @SergeyMenshykh
67-
/python/packages/core/agent_framework/_workflows/ @chetantoshniwal @eavanvalkenburg @moonbox3 @TaoChenOSU @jpalvarezl
68-
/python/packages/core/agent_framework/_harness/ @chetantoshniwal @westey-m @eavanvalkenburg @moonbox3
69-
/python/packages/declarative/ @chetantoshniwal @eavanvalkenburg @moonbox3 @peibekwe @baywet
70-
/python/packages/devui/ @chetantoshniwal @eavanvalkenburg @moonbox3
71-
/python/packages/foundry/ @chetantoshniwal @eavanvalkenburg @TaoChenOSU @jpalvarezl @moonbox3 @giles17
72-
/python/packages/foundry_hosting/ @chetantoshniwal @TaoChenOSU @jpalvarezl @eavanvalkenburg @moonbox3
73-
/python/packages/foundry_local/ @chetantoshniwal @eavanvalkenburg @giles17 @moonbox3
74-
/python/packages/gemini/ @chetantoshniwal @giles17 @eavanvalkenburg @moonbox3
75-
/python/packages/github_copilot/ @chetantoshniwal @giles17 @eavanvalkenburg @moonbox3
76-
/python/packages/hosting/ @chetantoshniwal @eavanvalkenburg @TaoChenOSU @jpalvarezl @moonbox3
77-
/python/packages/hosting-a2a/ @chetantoshniwal @eavanvalkenburg @TaoChenOSU @jpalvarezl @moonbox3
78-
/python/packages/hosting-mcp/ @chetantoshniwal @eavanvalkenburg @TaoChenOSU @jpalvarezl @moonbox3
79-
/python/packages/hosting-responses/ @chetantoshniwal @eavanvalkenburg @TaoChenOSU @jpalvarezl @moonbox3
80-
/python/packages/hosting-telegram/ @chetantoshniwal @eavanvalkenburg @TaoChenOSU @jpalvarezl @moonbox3
81-
/python/packages/hyperlight/ @chetantoshniwal @eavanvalkenburg @giles17 @moonbox3
82-
/python/packages/lab/ @chetantoshniwal @eavanvalkenburg @giles17 @moonbox3 @TaoChenOSU @jpalvarezl
83-
/python/packages/mem0/ @chetantoshniwal @eavanvalkenburg @giles17 @moonbox3
84-
/python/packages/mistral/ @chetantoshniwal @eavanvalkenburg @giles17 @moonbox3
85-
/python/packages/monty/ @chetantoshniwal @eavanvalkenburg @giles17 @moonbox3
86-
/python/packages/ollama/ @chetantoshniwal @eavanvalkenburg @giles17 @moonbox3
87-
/python/packages/openai/ @chetantoshniwal @eavanvalkenburg @moonbox3 @TaoChenOSU @jpalvarezl @giles17
88-
/python/packages/orchestrations/ @chetantoshniwal @eavanvalkenburg @moonbox3 @TaoChenOSU @jpalvarezl
89-
/python/packages/purview/ @chetantoshniwal @eavanvalkenburg @giles17 @moonbox3
90-
/python/packages/redis/ @chetantoshniwal @eavanvalkenburg @giles17 @moonbox3
91-
/python/packages/tools/ @chetantoshniwal @eavanvalkenburg @giles17 @moonbox3
7+
# Default owners for paths outside Python and .NET
8+
* @eavanvalkenburg @SergeyMenshykh @rogerbarreto @westey-m @moonbox3 @jpalvarezl @TaoChenOSU @giles17 @baywet @peibekwe
929

93-
# Core .NET developers: @peibekwe @baywet @rogerbarreto @SergeyMenshykh @westey-m
94-
/dotnet @chetantoshniwal @peibekwe @baywet @rogerbarreto @SergeyMenshykh @westey-m
10+
# Python owners
11+
/python/ @eavanvalkenburg @SergeyMenshykh @rogerbarreto @westey-m @moonbox3 @jpalvarezl @TaoChenOSU @giles17
9512

96-
# .NET projects
97-
/dotnet/src/Aspire.Hosting.AgentFramework.DevUI/ @chetantoshniwal @peibekwe @baywet @rogerbarreto @SergeyMenshykh @westey-m
98-
/dotnet/src/LegacySupport/ @chetantoshniwal @peibekwe @baywet @rogerbarreto @SergeyMenshykh @westey-m
99-
/dotnet/src/Shared/ @chetantoshniwal @peibekwe @baywet @rogerbarreto @SergeyMenshykh @westey-m
100-
/dotnet/src/Microsoft.Agents.AI/ @chetantoshniwal @rogerbarreto @SergeyMenshykh @westey-m
101-
/dotnet/src/Microsoft.Agents.AI.A2A/ @chetantoshniwal @rogerbarreto @SergeyMenshykh @westey-m
102-
/dotnet/src/Microsoft.Agents.AI.Abstractions/ @chetantoshniwal @rogerbarreto @SergeyMenshykh @westey-m
103-
/dotnet/src/Microsoft.Agents.AI.AGUI/ @chetantoshniwal @peibekwe @baywet @rogerbarreto @SergeyMenshykh @westey-m
104-
/dotnet/src/Microsoft.Agents.AI.Anthropic/ @chetantoshniwal @rogerbarreto @westey-m
105-
/dotnet/src/Microsoft.Agents.AI.AzureAI.Persistent/ @chetantoshniwal @rogerbarreto @westey-m
106-
/dotnet/src/Microsoft.Agents.AI.CopilotStudio/ @chetantoshniwal @rogerbarreto @westey-m
107-
/dotnet/src/Microsoft.Agents.AI.CosmosNoSql/ @chetantoshniwal @rogerbarreto @westey-m
108-
/dotnet/src/Microsoft.Agents.AI.Declarative/ @chetantoshniwal @peibekwe @baywet @westey-m
109-
/dotnet/src/Microsoft.Agents.AI.DevUI/ @chetantoshniwal @peibekwe @baywet @rogerbarreto @SergeyMenshykh @westey-m
110-
/dotnet/src/Microsoft.Agents.AI.Foundry/ @chetantoshniwal @rogerbarreto @westey-m
111-
/dotnet/src/Microsoft.Agents.AI.Foundry.Hosting/ @chetantoshniwal @rogerbarreto @westey-m
112-
/dotnet/src/Microsoft.Agents.AI.GitHub.Copilot/ @chetantoshniwal @rogerbarreto @westey-m
113-
/dotnet/src/Microsoft.Agents.AI.Harness/ @chetantoshniwal @westey-m @SergeyMenshykh
114-
/dotnet/src/Microsoft.Agents.AI.Hosting/ @chetantoshniwal @rogerbarreto @SergeyMenshykh @westey-m
115-
/dotnet/src/Microsoft.Agents.AI.Hosting.A2A/ @chetantoshniwal @rogerbarreto @SergeyMenshykh @westey-m
116-
/dotnet/src/Microsoft.Agents.AI.Hosting.A2A.AspNetCore/ @chetantoshniwal @rogerbarreto @SergeyMenshykh @westey-m
117-
/dotnet/src/Microsoft.Agents.AI.Hosting.AGUI.AspNetCore/ @chetantoshniwal @rogerbarreto @SergeyMenshykh @westey-m
118-
/dotnet/src/Microsoft.Agents.AI.Hosting.AspNetCore/ @chetantoshniwal @rogerbarreto @SergeyMenshykh @westey-m
119-
/dotnet/src/Microsoft.Agents.AI.Hosting.AzureStorage/ @chetantoshniwal @rogerbarreto @SergeyMenshykh @westey-m
120-
/dotnet/src/Microsoft.Agents.AI.Hosting.OpenAI/ @chetantoshniwal @rogerbarreto @SergeyMenshykh @westey-m
121-
/dotnet/src/Microsoft.Agents.AI.Hyperlight/ @chetantoshniwal @westey-m @SergeyMenshykh
122-
/dotnet/src/Microsoft.Agents.AI.LocalCodeAct/ @chetantoshniwal @westey-m @SergeyMenshykh
123-
/dotnet/src/Microsoft.Agents.AI.Mcp/ @chetantoshniwal @westey-m @peibekwe @baywet
124-
/dotnet/src/Microsoft.Agents.AI.Mem0/ @chetantoshniwal @westey-m @SergeyMenshykh
125-
/dotnet/src/Microsoft.Agents.AI.OpenAI/ @chetantoshniwal @westey-m @rogerbarreto
126-
/dotnet/src/Microsoft.Agents.AI.Purview/ @chetantoshniwal @westey-m @SergeyMenshykh
127-
/dotnet/src/Microsoft.Agents.AI.Tools.Shell/ @chetantoshniwal @westey-m @SergeyMenshykh
128-
/dotnet/src/Microsoft.Agents.AI.Valkey/ @chetantoshniwal @westey-m @SergeyMenshykh
129-
/dotnet/src/Microsoft.Agents.AI.Workflows/ @chetantoshniwal @peibekwe @baywet @rogerbarreto
130-
/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/ @chetantoshniwal @peibekwe @baywet @rogerbarreto
131-
/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative.Foundry/ @chetantoshniwal @peibekwe @baywet @rogerbarreto
132-
/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative.Mcp/ @chetantoshniwal @peibekwe @baywet @rogerbarreto
133-
/dotnet/src/Microsoft.Agents.AI.Workflows.Generators/ @chetantoshniwal @peibekwe @baywet @rogerbarreto
13+
# .NET owners
14+
/dotnet/ @eavanvalkenburg @SergeyMenshykh @rogerbarreto @westey-m @moonbox3 @baywet @peibekwe

‎.github/dependabot.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ updates:
3232
anthropic:
3333
patterns:
3434
- "Anthropic*"
35+
opentelemetry:
36+
patterns:
37+
- "OpenTelemetry*"
38+
- "Azure.Monitor.OpenTelemetry.Exporter"
3539
ignore:
3640
# For all System.* and Microsoft.Extensions/Bcl.* packages, ignore all major version updates
3741
- dependency-name: "System.*"

‎.github/workflows/issue-triage.yml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,11 +216,15 @@ jobs:
216216
AGENT_REPO_PATH: ${{ env.TARGET_REPO_PATH }}
217217
ISSUE_REPO: ${{ needs.team_check.outputs.repo }}
218218
ISSUE_NUMBER: ${{ needs.team_check.outputs.issue_number }}
219+
ISSUE_TYPE: ${{ needs.team_check.outputs.issue_type }}
220+
ISSUE_SNAPSHOT_PATH: ${{ runner.temp }}/issue-triage-snapshot.json
219221
run: |
220222
uv run python scripts/classify_issue_spam.py \
221223
--repo "$ISSUE_REPO" \
222224
--issue-number "$ISSUE_NUMBER" \
225+
--issue-type "$ISSUE_TYPE" \
223226
--repo-path "${TARGET_REPO_PATH}" \
227+
--issue-snapshot-output "$ISSUE_SNAPSHOT_PATH" \
224228
--apply-labels
225229
226230
- name: Stop after spam gate
@@ -244,6 +248,8 @@ jobs:
244248
ISSUE_REPO: ${{ needs.team_check.outputs.repo }}
245249
ISSUE_NUMBER: ${{ needs.team_check.outputs.issue_number }}
246250
ISSUE_TYPE: ${{ needs.team_check.outputs.issue_type }}
251+
ISSUE_SNAPSHOT_PATH: ${{ runner.temp }}/issue-triage-snapshot.json
252+
ISSUE_SNAPSHOT_SHA256: ${{ steps.spam.outputs.issue_snapshot_sha256 }}
247253
# Model-provider settings for generated repro code. Never enter the
248254
# agent prompt; consumed by SDK constructors via os.environ. Azure
249255
# OpenAI and Foundry auth via AAD from the azure/login step above.
@@ -271,4 +277,6 @@ jobs:
271277
--repo "$ISSUE_REPO" \
272278
--issue-number "$ISSUE_NUMBER" \
273279
--issue-type "$ISSUE_TYPE" \
280+
--issue-snapshot "$ISSUE_SNAPSHOT_PATH" \
281+
--issue-snapshot-sha256 "$ISSUE_SNAPSHOT_SHA256" \
274282
--github-username "$GITHUB_ACTOR"

‎docs/decisions/0001-agent-run-response.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ var primaryContentOnly = response.Messages.FirstOrDefault();
200200
```
201201

202202
- **PROS**: Simple getting started experience, Reusing IChatClient response types.
203-
- **CONS**: Intermediate updates are only availble in streaming mode.
203+
- **CONS**: Intermediate updates are only available in streaming mode.
204204

205205
### Option 4: Remove Run API and retain RunStreaming API only, which returns a Stream of Primary + Secondary
206206

@@ -212,7 +212,7 @@ we add helpers to process the streaming responses and extract information from i
212212
var responses = agent.RunStreamingAsync("Do Something");
213213
// E.g. an extension method that builds the primary content text.
214214
Console.WriteLine(await responses.AggregateFinalResult());
215-
// Or an extention method that builds complete messages from the updates.
215+
// Or an extension method that builds complete messages from the updates.
216216
Console.WriteLine(await responses.BuildMessage().Text);
217217

218218
// Callers can also iterate through all updates if needed
@@ -406,7 +406,7 @@ We need to consider abstractions for `AIContent` derived types for tool call res
406406

407407
## StructuredOutputs
408408

409-
Structured outputs is a valueable aspect of any Agent system, since it forces an Agent to produce output in a required format, and may include required fields. This allows turning unstructured data into structured data easily using a general purpose language model.
409+
Structured outputs is a valuable aspect of any Agent system, since it forces an Agent to produce output in a required format, and may include required fields. This allows turning unstructured data into structured data easily using a general purpose language model.
410410

411411
Not all agent types necessarily support this or necessarily support this in the same way.
412412
Requesting a specific output schema at invocation time is widely supported by inference services though, and therefore inference based agents would support this well.

‎docs/decisions/0003-agent-opentelemetry-instrumentation.md‎

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,21 +124,43 @@ The implementation is validated through:
124124

125125
### Usage Example
126126

127+
The name passed to `TracerProviderBuilder.AddSource` must match the source name the agent emits under, otherwise the
128+
provider silently receives no agent spans. When no source name is supplied to `UseOpenTelemetry`, the agent emits under
129+
`OpenTelemetryAgent.DefaultSourceName`, so that is the value to register. That property is marked
130+
`[Experimental("MAAI001")]`; suppress that diagnostic in your csproj to use it.
131+
127132
```csharp
128133
// Create TracerProvider
129134
using var tracerProvider = Sdk.CreateTracerProviderBuilder()
130-
.AddSource(AgentOpenTelemetryConsts.DefaultSourceName)
135+
.AddSource(OpenTelemetryAgent.DefaultSourceName)
131136
.AddConsoleExporter()
132137
.Build();
133138

134139
// Create and wrap agent with telemetry
135140
var baseAgent = new ChatClientAgent(chatClient, options);
136-
using var telemetryAgent = baseAgent.WithOpenTelemetry();
141+
using var telemetryAgent = baseAgent.AsBuilder()
142+
.UseOpenTelemetry()
143+
.Build();
137144

138145
// Use agent normally - telemetry is captured automatically
139146
var response = await telemetryAgent.RunAsync(messages);
140147
```
141148

149+
To emit under a custom source name, pass the same value to both calls:
150+
151+
```csharp
152+
const string SourceName = "MyCompany.MyAgent";
153+
154+
using var tracerProvider = Sdk.CreateTracerProviderBuilder()
155+
.AddSource(SourceName)
156+
.AddConsoleExporter()
157+
.Build();
158+
159+
using var telemetryAgent = baseAgent.AsBuilder()
160+
.UseOpenTelemetry(sourceName: SourceName)
161+
.Build();
162+
```
163+
142164
### Relationship to Microsoft.Extensions.AI
143165

144166
This implementation follows the exact patterns established by Microsoft.Extensions.AI's OpenTelemetry instrumentation, ensuring consistency across the AI ecosystem and leveraging proven patterns for telemetry integration.

0 commit comments

Comments
 (0)