Skip to content

Commit 455710a

Browse files
foundry-samples-repo-sync[bot]moonbox3Copilotankitbkoeamonoreilly
authored
Automated sync from private repo (2026-04-24) (#671)
* Update MAF samples to latest pkg version. Update toolbox sample to reflect client usage (#172) e2e pipeline is green https://github.com/microsoft-foundry/foundry-samples-pr/actions/runs/24825668586 * Finalize dependency version bumps (#173) Agent-Logs-Url: https://github.com/microsoft-foundry/foundry-samples-pr/sessions/ad7f8d27-7387-4071-b2af-a151926b054d Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: ankitbko <3169316+ankitbko@users.noreply.github.com> * Simplify Azure auth for LangGraph ChatOpenAI client (#176) * Clarify GITHUB_TOKEN usage in README and move remote invocation section (#174) * docs: update README to clarify GITHUB_TOKEN usage and remove remote invocation section. Fixes #669 * docs: update README and agent manifest to clarify GITHUB_TOKEN setup instructions * refactor(toolbox): move toolbox samples into hosted-agents, rename with -toolbox suffix (#170) * feat: add toolbox samples to hosted-agents with correct structure - Python langgraph, copilot-sdk, azd -> bring-your-own/responses/ - Python maf -> agent-framework/responses/ - C# maf -> agent-framework/responses/ * Potential fix for pull request finding 'CodeQL / Incomplete URL substring sanitization' Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * Potential fix for pull request finding 'CodeQL / Incomplete URL substring sanitization' Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * Potential fix for pull request finding 'CodeQL / Incomplete URL substring sanitization' Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * Potential fix for pull request finding 'CodeQL / Incomplete URL substring sanitization' Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * fix: address PR review comments - remove maf/copilot-sdk samples, clean up tracing, fix endpoints, update schemas * feat: add dotnet maf-toolbox sample (Agent Framework + Responses SDK) * fix: move dotnet maf-toolbox to correct structure (bring-your-own/responses/maf-toolbox) * ci: skip azd-toolbox and azd-samples sub-samples in CI azd-toolbox requires github_pat external credential which cannot be provided in --no-prompt CI mode. azd-samples/web-search and azd-samples/code-interpreter are configuration-only sub-samples with no standalone Dockerfile; they reference the parent azd-toolbox template source and cannot be deployed independently in CI. * ci: provide GITHUB_PAT for azd-toolbox init, remove its .ci-skip * ci: use GITHUB_PAT secret (real PAT) instead of GITHUB_TOKEN for azd-toolbox init * ci: fall back to GITHUB_TOKEN if GITHUB_PAT secret is not set * ci: set github_pat env var (lowercase) for azd --no-prompt parameter resolution * fix: address reviewer feedback on toolbox samples - csharp/maf-toolbox: use project-scoped endpoint for AzureOpenAIClient; use TOOLBOX_NAME to construct MCP URL instead of explicit TOOLBOX_ENDPOINT; add kind:toolbox resource to agent.manifest.yaml - azd-toolbox + langgraph-toolbox: swap TOOLBOX_ENDPOINT env var for TOOLBOX_NAME and construct endpoint from project endpoint + toolbox name (consistent with 04-foundry-toolbox reference); remove azure-ai-agentserver-core (optional dep no longer required); restructure agent.yaml to flat format (remove template: wrapper, move env vars to manifest only, add cpu/memory resources); clean up .dockerignore; update README title and remove stale step 6 (MODEL_DEPLOYMENT_NAME is auto-set when model is in azd resources section); add note to a2a sub-sample explaining shared-source pattern * fix: remove unused setup.py from langgraph-toolbox, fix manifest TOOLBOX_NAME * refactor: move csharp maf-toolbox from bring-your-own to agent-framework * feat: add bring-your-own-toolbox python responses sample * fix(azd-toolbox): rename MODEL_DEPLOYMENT_NAME to AZURE_AI_MODEL_DEPLOYMENT_NAME * fix(azd-toolbox): add missing env vars to agent.yaml, pin azure-ai-projects to GA version * fix(langgraph-toolbox): rename MODEL_DEPLOYMENT_NAME to AZURE_AI_MODEL_DEPLOYMENT_NAME, add env vars to agent.yaml, pin azure-ai-projects to GA * chore: remove toolbox folder (superseded by bring-your-own-toolbox) * fix(bring-your-own-toolbox): add required parameters property to agent.manifest.yaml * chore: remove csharp maf-toolbox sample * chore: remove infra from bring-your-own-toolbox, remove azd-toolbox * chore(bring-your-own-toolbox): remove azure.yaml (infra not needed) * chore: remove python toolbox/azd sample * revert: restore samples/python/toolbox/azd (should not have been deleted) * fix(workflow): remove duplicate GITHUB_PAT env var in hosted-agents-cloud-e2e.yml * fix(langgraph-toolbox): add required tools field to toolbox resource in agent.manifest.yaml * docs: add azd quick start guide to hosted-agent toolbox READMEs * fix(bring-your-own-toolbox): degrade gracefully when TOOLBOX_ENDPOINT is not set * docs: replace azd provision + azd deploy with azd up in toolbox READMEs * Add TOOLBOX_NAME environment variable setting * fix(toolbox): use {{}} template syntax for TOOLBOX_NAME and align bring-your-own-toolbox with langgraph-toolbox pattern Agent-Logs-Url: https://github.com/microsoft-foundry/foundry-samples-pr/sessions/e9a3804a-debf-4dc2-ae55-1d218327678d Co-authored-by: lindazqli <139801625+lindazqli@users.noreply.github.com> * fix(toolbox): use plain toolbox resource name in TOOLBOX_NAME env var, not template syntax Agent-Logs-Url: https://github.com/microsoft-foundry/foundry-samples-pr/sessions/f8397b5f-2aad-4c59-acf3-c9894a051e0c Co-authored-by: lindazqli <139801625+lindazqli@users.noreply.github.com> * fix(toolbox): surface exceptions instead of swallowing them in response handlers Agent-Logs-Url: https://github.com/microsoft-foundry/foundry-samples-pr/sessions/271ff96a-7ac5-4db2-a4e1-c7a4516fddce Co-authored-by: lindazqli <139801625+lindazqli@users.noreply.github.com> * refactor(ci): unify invoke steps into single protocol-aware multi-turn step Agent-Logs-Url: https://github.com/microsoft-foundry/foundry-samples-pr/sessions/2f4634d2-3f83-404b-961f-d323a97aa93f Co-authored-by: ankitbko <3169316+ankitbko@users.noreply.github.com> * fix(langgraph-toolbox): replace AzureChatOpenAI with ChatOpenAI using /openai/v1 endpoint AzureChatOpenAI with the Foundry project endpoint fails with 'API version not supported'. The correct pattern is ChatOpenAI with base_url={PROJECT_ENDPOINT}/openai/v1 and a custom bearer token auth hook, matching the langgraph-chat reference sample (eamonoreilly review comment). Also consolidates _ToolboxAuth and the LLM auth into a single _AzureTokenAuth class shared by both the LLM http client and the toolbox MCP client. * fix(langgraph-toolbox): add async_client for ChatOpenAI so ainvoke auth works The responses protocol uses ainvoke (async). ChatOpenAI needs both http_client (sync) and http_async_client (async) to inject the bearer token. Without http_async_client, the async path uses a default client with no auth -> 401. * test: add test-payload.txt for toolbox samples Agent-Logs-Url: https://github.com/microsoft-foundry/foundry-samples-pr/sessions/3a8a1e39-65ff-43e1-b43e-3292b85515f3 Co-authored-by: ankitbko <3169316+ankitbko@users.noreply.github.com> * refactor: unify payload file to single test-payload.txt (one prompt per line) Agent-Logs-Url: https://github.com/microsoft-foundry/foundry-samples-pr/sessions/530e0703-8703-4f11-8b77-b289865e25ab Co-authored-by: ankitbko <3169316+ankitbko@users.noreply.github.com> --------- Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Ankit Sinha <ankitbko@gmail.com> Co-authored-by: ankitbko <3169316+ankitbko@users.noreply.github.com> * Improve MAF Python sample READMEs (#171) * Improve MAF Pytho sample READMEs * address comments * MODEL_DEPLOYMENT_NAME -> AZURE_AI_MODEL_DEPLOYMENT_NAME * Update sync state to ebe7f93 --------- Co-authored-by: Evan Mattson <35585003+moonbox3@users.noreply.github.com> Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> Co-authored-by: ankitbko <3169316+ankitbko@users.noreply.github.com> Co-authored-by: Eamon O'Reilly <eamono@microsoft.com> Co-authored-by: John Miller <johmil@microsoft.com> Co-authored-by: Linda Li <139801625+lindazqli@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Co-authored-by: Ankit Sinha <ankitbko@gmail.com> Co-authored-by: Tao Chen <taochen@microsoft.com> Co-authored-by: foundry-samples-repo-sync[bot] <foundry-samples-repo-sync[bot]@users.noreply.github.com>
1 parent 64ccbb6 commit 455710a

112 files changed

Lines changed: 2216 additions & 3893 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/.sync-sha

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
f8b17a1f1a88cbbe002e2232212d88014b15d29a
1+
ebe7f93a317cd310a129ffb1fbb41e64e296d793

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,3 +461,6 @@ terraform.rc
461461
samples/microsoft/nul
462462
samples/microsoft/microsoft.sln
463463
samples/microsoft/developer-journey-stage-1-idea-to-prototype.md
464+
465+
# oh-my-claudecode local state
466+
.omc/

samples/csharp/hosted-agents/agent-framework/invocations-echo-agent/invocations-echo-agent.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<ItemGroup>
1313
<PackageReference Include="Microsoft.Agents.AI.Foundry.Hosting" Version="1.2.0-preview.260421.1" />
14-
<PackageReference Include="Azure.AI.AgentServer.Invocations" Version="1.0.0-beta.2" />
14+
<PackageReference Include="Azure.AI.AgentServer.Invocations" Version="1.0.0-beta.3" />
1515
</ItemGroup>
1616

1717
</Project>

samples/csharp/hosted-agents/bring-your-own/invocations/HelloWorld/HelloWorld.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<ItemGroup>
1414
<!-- Invocations protocol SDK — provides InvocationsServer, InvocationHandler, InvocationContext -->
15-
<PackageReference Include="Azure.AI.AgentServer.Invocations" Version="1.0.0-beta.2" />
15+
<PackageReference Include="Azure.AI.AgentServer.Invocations" Version="1.0.0-beta.3" />
1616
<!-- Foundry SDK — provides AIProjectClient and ProjectOpenAIClient -->
1717
<PackageReference Include="Azure.AI.Projects" Version="2.0.0" />
1818
<!-- OpenAI bridge for Foundry — provides GetProjectResponsesClientForModel() via ProjectOpenAIClient -->

samples/csharp/hosted-agents/bring-your-own/invocations/human-in-the-loop/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ human-in-the-loop/
156156
├── .env.example # Example environment variables
157157
├── agent.yaml # Agent deployment configuration
158158
├── agent.manifest.yaml # Agent manifest with metadata and resources
159-
├── test-payload.json # Sample request payload for testing
159+
├── test-payload.txt # Sample request payload for testing
160160
└── README.md # This file
161161
```
162162

samples/csharp/hosted-agents/bring-your-own/invocations/human-in-the-loop/human-in-the-loop.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<ItemGroup>
1313
<!-- Invocations protocol SDK — provides InvocationsServer, InvocationHandler, InvocationContext -->
14-
<PackageReference Include="Azure.AI.AgentServer.Invocations" Version="1.0.0-beta.2" />
14+
<PackageReference Include="Azure.AI.AgentServer.Invocations" Version="1.0.0-beta.3" />
1515
<!-- Foundry SDK — provides AIProjectClient and ProjectOpenAIClient -->
1616
<PackageReference Include="Azure.AI.Projects" Version="2.0.0" />
1717
<!-- OpenAI bridge for Foundry — provides GetProjectResponsesClientForModel() via

samples/csharp/hosted-agents/bring-your-own/invocations/human-in-the-loop/test-payload.json

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"task":"analyze dataset"}

samples/csharp/hosted-agents/bring-your-own/invocations/notetaking-agent/notetaking-agent.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<ItemGroup>
1010
<!-- Invocations protocol SDK — provides InvocationsServer, InvocationHandler, InvocationContext -->
11-
<PackageReference Include="Azure.AI.AgentServer.Invocations" Version="1.0.0-beta.2" />
11+
<PackageReference Include="Azure.AI.AgentServer.Invocations" Version="1.0.0-beta.3" />
1212
<!-- Azure OpenAI client — Chat Completions API used for function calling -->
1313
<PackageReference Include="Azure.AI.OpenAI" Version="2.1.0" />
1414
<!-- Azure authentication via DefaultAzureCredential -->

samples/csharp/hosted-agents/bring-your-own/invocations/notetaking-agent/test-payload.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)