You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mechanical fixes across 102 English + Spanish example files:
- model_id= → model= in all OpenAIChatClient constructors
- Message(text=...) → Message(contents=[...])
- BaseContextProvider → ContextProvider
- BaseHistoryProvider → HistoryProvider
Additional fix for history provider examples:
- Removed tools from agent_history_redis.py and agent_history_sqlite.py
to work around Responses API duplicate item ID issue with history
providers (microsoft/agent-framework#3295)
Added manual test plan to AGENTS.md.
All examples verified with live LLM calls against Azure OpenAI.
Ran pre-commit (ruff lint + format).
Copy file name to clipboardExpand all lines: .github/prompts/update_translations.prompt.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,4 +4,4 @@ description: Use this prompt to update the Spanish translations in the repo.
4
4
model: GPT-5.2 (copilot)
5
5
---
6
6
7
-
Update the Spanish translations in the repo according to the guidelines in AGENTS.md. Ensure there are spanish equivalents of each english example. Make sure to keep the translations consistent with the original content and maintain the technical accuracy of the code.
7
+
Update the Spanish translations in the repo according to the guidelines in AGENTS.md. Ensure there are spanish equivalents of each english example. Make sure to keep the translations consistent with the original content and maintain the technical accuracy of the code.
Copy file name to clipboardExpand all lines: AGENTS.md
+92-1Lines changed: 92 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ The agent-framework GitHub repo is here:
6
6
https://github.com/microsoft/agent-framework
7
7
It contains both Python and .NET agent framework code, but we are only using the Python packages in this repo.
8
8
9
-
MAF is changing rapidly still, so we sometimes need to check the repo changelog and issues to see if there are any breaking changes that might affect our code.
9
+
MAF is changing rapidly still, so we sometimes need to check the repo changelog and issues to see if there are any breaking changes that might affect our code.
After upgrading dependencies or making changes across examples, use this plan to verify everything works. Run each example with `uv run python examples/<file>.py`.
99
+
100
+
### No extra setup (Azure OpenAI only)
101
+
102
+
These work with just `API_HOST=azure` and the standard `.env` from `azd up`:
|`agent_history_sqlite.py`| SQLite history provider (no tools — see [agent-framework#3295](https://github.com/microsoft/agent-framework/issues/3295)) |
125
+
|`agent_memory_mem0.py`| Mem0 memory provider |
126
+
127
+
### Requires Redis (dev container)
128
+
129
+
Redis runs automatically in the dev container at `redis://redis:6379`.
130
+
131
+
| Examples | Notes |
132
+
|----------|-------|
133
+
|`agent_history_redis.py`| Redis history provider (no tools — see [agent-framework#3295](https://github.com/microsoft/agent-framework/issues/3295)) |
134
+
|`agent_memory_redis.py`| Redis memory provider |
135
+
136
+
### Requires PostgreSQL (dev container)
137
+
138
+
PostgreSQL runs automatically in the dev container at `postgresql://admin:LocalPasswordOnly@db:5432/postgres`.
|`workflow_hitl_checkpoint_pg.py`| HITL with PG-backed checkpoints |
146
+
147
+
### Requires Azure AI Search
148
+
149
+
Needs `AZURE_SEARCH_ENDPOINT` and `AZURE_SEARCH_KNOWLEDGE_BASE_NAME` in `.env`.
150
+
151
+
| Examples | Notes |
152
+
|----------|-------|
153
+
|`agent_knowledge_aisearch.py`| Azure AI Search knowledge base (agentic mode) |
154
+
155
+
### Requires MCP server
156
+
157
+
Start the MCP server first: `uv run python examples/mcp_server.py`
158
+
159
+
| Examples | Notes |
160
+
|----------|-------|
161
+
|`agent_mcp_local.py`| Local MCP server (stdio) |
162
+
|`agent_mcp_remote.py`| Remote MCP server (SSE) |
163
+
164
+
### Requires OTel / Aspire
165
+
166
+
| Examples | Notes |
167
+
|----------|-------|
168
+
|`agent_otel_aspire.py`| Aspire dashboard (runs in dev container at `http://aspire-dashboard:18888`) |
169
+
|`agent_otel_appinsights.py`| Needs `APPLICATIONINSIGHTS_CONNECTION_STRING` in `.env`|
170
+
171
+
### Slow-running examples (⏱ 2–10 minutes)
172
+
173
+
These take significantly longer than other examples:
174
+
175
+
| Examples | Notes |
176
+
|----------|-------|
177
+
|`agent_evaluation.py`| Runs agent + evaluators inline. ~2–3 min. |
178
+
|`agent_evaluation_generate.py`| Generates eval data JSONL. ~2 min. |
179
+
|`agent_evaluation_batch.py`| Batch evaluators on JSONL. ~3–5 min. Needs `eval_data.jsonl` from `agent_evaluation_generate.py`. |
180
+
|`agent_redteam.py`| Red team attack simulation. ~5–10 min. |
181
+
|`workflow_magenticone.py`| Multi-agent MagenticOne orchestration. ~2–5 min. |
182
+
183
+
### Spanish examples
184
+
185
+
Spanish files under `examples/spanish/` mirror the English examples exactly (same code, translated strings). After changes, spot-check 3–5 Spanish files to confirm they run correctly.
0 commit comments