Skip to content

Update bring-your-own hosted agents to protocol 2.0.0 + forward x-agent-foundry-call-id in toolbox samples#797

Closed
harsheet-shah wants to merge 2 commits into
microsoft-foundry:mainfrom
harsheet-shah:user/harsheetshah/toolbox-call-id-forwarding
Closed

Update bring-your-own hosted agents to protocol 2.0.0 + forward x-agent-foundry-call-id in toolbox samples#797
harsheet-shah wants to merge 2 commits into
microsoft-foundry:mainfrom
harsheet-shah:user/harsheetshah/toolbox-call-id-forwarding

Conversation

@harsheet-shah

Copy link
Copy Markdown

Summary

Two related changes for bring-your-own hosted agents:

  1. Protocol 2.0.0 bump (commit c77eecb): update agent.yaml container protocol version to 2.0.0 for all bring-your-own agents (C# + Python).
  2. Call-id forwarding (commit ec752e1): extract the inbound x-agent-foundry-call-id header on invocation/responses requests and forward it on egress toolbox (MCP) requests across the 4 toolbox samples.

Files (call-id forwarding)

  • samples/python/hosted-agents/bring-your-own/invocations/toolbox/main.py
  • samples/python/hosted-agents/bring-your-own/responses/bring-your-own-toolbox/main.py
  • samples/python/hosted-agents/bring-your-own/responses/langgraph-toolbox/main.py
  • samples/python/hosted-agents/bring-your-own/responses/langgraph-toolbox-user-identity/main.py

Validated by redeploying all 4 toolbox agents and confirming via container logs that call_id is extracted inbound and forwarded on the egress MCP request.

Harsheet Shah and others added 2 commits June 26, 2026 11:00
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Extract the per-request x-agent-foundry-call-id header from the inbound
invocation/responses call (container protocol 2.0.0) and forward it on
the egress request to the Foundry toolbox MCP proxy for all four
bring-your-own toolbox samples.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@harsheet-shah harsheet-shah requested a review from lindazqli as a code owner June 26, 2026 09:38
@github-actions

Copy link
Copy Markdown
Contributor

👋 Thanks for your contribution, @harsheet-shah!

This repository is read-only. If you are contributing on behalf of Microsoft, please submit your PR to the private staging repository instead:

👉 foundry-samples-pr

See CONTRIBUTING.md for full instructions.

@github-actions github-actions Bot closed this Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant