[BREAKING] Python: Migrate FHA to responses==2.0.0b1 and add Foundry state store - #7533
Draft
TaoChenOSU wants to merge 4 commits into
Draft
[BREAKING] Python: Migrate FHA to responses==2.0.0b1 and add Foundry state store#7533TaoChenOSU wants to merge 4 commits into
TaoChenOSU wants to merge 4 commits into
Conversation
TaoChenOSU
temporarily deployed
to
github-app-auth
August 5, 2026 18:43 — with
GitHub Actions
Inactive
TaoChenOSU
temporarily deployed
to
github-app-auth
August 5, 2026 18:43 — with
GitHub Actions
Inactive
TaoChenOSU
temporarily deployed
to
github-app-auth
August 5, 2026 18:43 — with
GitHub Actions
Inactive
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the Python Foundry Hosting integration to the azure-ai-agentserver-responses 2.0.0b1 API and replaces prior file-based persistence with Foundry State Store–backed implementations for hosted scenarios, aligning with the new storage API direction (Issue #7532).
Changes:
- Migrate
ResponsesHostServerintegration toazure-ai-agentserver-responses==2.0.0b1(including streaming/event API adjustments). - Introduce Foundry State Store–backed persistence for agent sessions, workflow checkpoints, and function approvals (with providers for hosted vs local).
- Update public exports/docs and add targeted unit tests for the new state store behaviors.
Reviewed changes
Copilot reviewed 12 out of 14 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| python/uv.lock | Updates locked dependency graph for new agentserver package versions. |
| python/packages/foundry_hosting/pyproject.toml | Adjusts declared dependencies to the new azure-ai-agentserver-responses version line. |
| python/packages/foundry_hosting/README.md | Re-documents state store behavior for sessions/checkpoints/approvals. |
| python/packages/foundry_hosting/agent_framework_foundry_hosting/_state_store.py | Adds FoundryStateStore-backed session/checkpoint/approval stores + provider abstractions. |
| python/packages/foundry_hosting/agent_framework_foundry_hosting/_session_store.py | Removes the previous file-backed FoundrySessionStore implementation. |
| python/packages/foundry_hosting/agent_framework_foundry_hosting/_responses.py | Migrates host implementation to Responses 2.0 APIs and wires in new storage providers. |
| python/packages/foundry_hosting/agent_framework_foundry_hosting/init.py | Re-exports new state store types/providers as public surface area. |
| python/packages/foundry_hosting/tests/test_state_store.py | Adds unit coverage for the new Foundry-backed stores and providers. |
| python/packages/foundry_hosting/tests/test_responses.py | Updates/extends host tests for Responses 2.0 behavior and new storage/provider wiring. |
| python/packages/core/tests/core/test_foundry_namespace.py | Updates Foundry namespace exposure test for renamed session store symbol. |
| python/packages/core/AGENTS.md | Updates documentation for the Foundry session store symbol and backing implementation. |
| python/packages/core/agent_framework/foundry/init.pyi | Updates typing exports to include new hosting storage/provider symbols. |
| python/packages/core/agent_framework/foundry/init.py | Updates lazy re-export map for new hosting storage/provider symbols. |
| python/PACKAGE_STATUS.md | Updates package status references to the new hosted session store symbol/file. |
TaoChenOSU
temporarily deployed
to
github-app-auth
August 5, 2026 19:05 — with
GitHub Actions
Inactive
TaoChenOSU
temporarily deployed
to
github-app-auth
August 5, 2026 21:22 — with
GitHub Actions
Inactive
TaoChenOSU
temporarily deployed
to
github-app-auth
August 5, 2026 21:52 — with
GitHub Actions
Inactive
Contributor
Python Test Coverage Report •
Python Unit Test Overview
|
|||||||||||||||||||||||||||||||||||
TaoChenOSU
temporarily deployed
to
github-app-auth
August 5, 2026 22:15 — with
GitHub Actions
Inactive
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation & Context
Closes #7532
FoundryStateStoreis recently introduced in the latestazure.ai.agentserverSDK, which allows us to durably save data within Foundry Hosted Agent sessions. See the "Durable state storage" section here: https://pypi.org/project/azure-ai-agentserver-core/Due to the package version bump, this PR also contains a lot of changes to accommodate the breaking changes introduced by the
azure.ai.agentserverSDK.Description & Review Guide
FoundrySessionStore, which is an implementation of theSessionStorethat persists MAF agent sessions in FHA sessions' file system.FoundrySessionStorewith a newFoundryAgentSessionStorethat is backed by theFoundryStateStore.StoreProviderand the default implementations, includingAgentSessionStoreProvider,CheckpointStoreProvider, andFunctionApprovalStoreProvider, which will provide the actual store instance based on the environment (i.e. if the agent is hosted vs local). This also allows customers to customize FHA to use their storage solution.FoundryStateStore, includingFoundryAgentSessionStore,FoundryCheckpointStore, andFoundryFunctionApprovalStore.Related Issue
Fixes #7352
Contribution Checklist
breaking changelabel (or add "[BREAKING]" to the title prefix, before or after any language prefix) — a workflow keeps the label and title prefix in sync automatically.