Skip to content

Python: Update agentserver to x.1.0b1 - #7621

Merged
Tao Chen (TaoChenOSU) merged 8 commits into
mainfrom
taochen/update-agentserver-to-2.1.0
Aug 14, 2026
Merged

Python: Update agentserver to x.1.0b1#7621
Tao Chen (TaoChenOSU) merged 8 commits into
mainfrom
taochen/update-agentserver-to-2.1.0

Conversation

@TaoChenOSU

@TaoChenOSU Tao Chen (TaoChenOSU) commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Motivation & Context

Update FHA SDK dependencies to x.1.0b1, which introduces the latest local state store feature.

Description & Review Guide

  • What are the major changes?
    • Update azure-ai-agentserver-core to 2.1.0b1, azure-ai-agentserver-responses to 2.1.0b1, and azure-ai-agentserver-invocations to 1.1.0b1.
    • Remove all in-memory store implementation. The default will be to use the Foundry state store for local and hosted environments.
    • The stores require an additional required argument which is the platform context to enable user isolation.
  • What is the impact of these changes?
    • The removal of all in memory store option for FHA. Users can still override the store providers for in memory options.
  • What do you want reviewers to focus on?
    • The store implementation updates.

Contribution Checklist

  • The code builds clean without any errors or warnings
  • All unit tests pass, and I have added new tests where possible
  • The PR follows the Contribution Guidelines
  • This PR is linked to an issue and there is no other open PR for this issue (see Related Issue above).
  • This is not a breaking change. If it is a breaking change, add the breaking change label (or add "[BREAKING]" to the title prefix, before or after any language prefix) — a workflow keeps the label and title prefix in sync automatically.

@TaoChenOSU Tao Chen (TaoChenOSU) self-assigned this Aug 11, 2026
Copilot AI balanced review requested due to automatic review settings August 11, 2026 21:48
@TaoChenOSU Tao Chen (TaoChenOSU) added python Usage: [Issues, PRs], Target: Python foundry Usage: [Issues, PRs], Target: all Foundry integrations hosting Usage: [Issues, PRs], Target: all hosting related solutions labels Aug 11, 2026
@github-actions github-actions Bot changed the title Update agentserver to 2.1.0 Python: Update agentserver to 2.1.0 Aug 11, 2026
@agent-framework-automation agent-framework-automation Bot added the documentation Usage: [Issues, PRs], Target: documentation in the code base and learn docs label Aug 11, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates Python Foundry hosting for AgentServer 2.1, durable local storage, stable conversation identifiers, and custom Cosmos DB session storage.

Changes:

  • Upgrades AgentServer dependencies and storage providers.
  • Uses conversation-chain IDs for sessions and workflow checkpoints.
  • Adds a custom Cosmos DB storage sample and updates tests/docs.

Reviewed changes

Copilot reviewed 13 out of 14 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
custom_storage/requirements.txt Adds sample dependencies.
custom_storage/README.md Documents custom storage usage.
custom_storage/main.py Implements Cosmos-backed sessions.
custom_storage/Dockerfile Packages the sample.
custom_storage/.env.example Lists required configuration.
custom_storage/.dockerignore Excludes local artifacts.
tests/test_state_store.py Updates provider expectations.
tests/test_responses.py Replaces removed in-memory approval store.
foundry_hosting/README.md Documents durable local persistence.
foundry_hosting/pyproject.toml Updates AgentServer dependencies.
_state_store.py Uses Foundry stores in all environments.
_responses.py Revises session and checkpoint scoping.
_request_context.py Removes obsolete path validation.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Comment thread python/packages/foundry_hosting/pyproject.toml Outdated
Comment thread python/packages/foundry_hosting/agent_framework_foundry_hosting/_responses.py Outdated
Comment thread python/packages/foundry_hosting/agent_framework_foundry_hosting/_responses.py Outdated
Comment thread python/packages/foundry_hosting/agent_framework_foundry_hosting/_responses.py Outdated

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated Code Review

Reviewers: 1

✗ Deep Review

Deep review found 2 verified inline finding(s).


Automated review by TaoChenOSU's agents

Comment thread python/packages/foundry_hosting/agent_framework_foundry_hosting/_responses.py Outdated
Comment thread python/packages/foundry_hosting/agent_framework_foundry_hosting/_responses.py Outdated
@TaoChenOSU
Tao Chen (TaoChenOSU) marked this pull request as ready for review August 13, 2026 18:01
@TaoChenOSU Tao Chen (TaoChenOSU) changed the title Python: Update agentserver to 2.1.0 Python: Update agentserver to x.1.0b1 Aug 13, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MAF Automated Review — Iteration 2

Result: Findings reported
Scope: 16 net-new commit(s): 30996433ac86, 5e52c6a7183a, 27d82b1567a6, 56d13bce4eb2, d17a81e852cf, 171693f93da6, 3a5d00be5473, 35c6b880f737, 3aadac53c80c, 322101142718, 7cfa905486ac, e926ad2859fd, 6d25fb1e9c68, e9ed52e3916b, cf0cf904b3e2, 012d43d14717
Model: gpt-5.6-sol

Overview

The PR updates AgentServer dependencies and threads request-scoped platform context through Foundry-backed session, checkpoint, and approval stores, including explicit user and call identity. Those are useful isolation guardrails, and the new storage tests exercise call-ID forwarding. The remaining risk is that the public custom-store interface changes incompatibly and four state-store tests were not updated for the new user-ID argument.

Reviewed the supplied incremental change set across correctness, security/reliability, architecture, and failure behavior.
2 verified findings remained after source verification (2 medium) across 1 file. Details are attached to the affected lines below.

Affected areas: python/packages/foundry_hosting/agent_framework_foundry_hosting/_state_store.py

@github-actions

Copy link
Copy Markdown
Contributor

Python Test Coverage

Python Test Coverage Report •
FileStmtsMissCoverMissing
packages/azure-contentunderstanding/agent_framework_azure_contentunderstanding
   _context_provider.py2624184%81, 84, 202–205, 309–310, 312, 316–317, 320, 324, 409, 547, 551, 605, 655–656, 679, 681–684, 849, 853, 879–884, 886–891, 899, 908–909
packages/foundry_hosting/agent_framework_foundry_hosting
   _invocations.py460100% 
   _responses.py7059286%155–156, 170, 173–174, 224, 239, 301, 357–360, 428, 510, 513, 538, 553, 579, 626–627, 966, 978, 1430–1431, 1435, 1480, 1482, 1484, 1486, 1490, 1498, 1501–1505, 1507, 1517, 1521, 1534, 1568–1573, 1577–1578, 1586–1592, 1622–1623, 1625–1626, 1628, 1633, 1641–1642, 1644, 1649–1653, 1655, 1662–1663, 1665–1666, 1672, 1674–1678, 1688, 1694, 1718, 1724, 1730, 1732, 1734–1737, 1745, 1747
   _state_store.py1240100% 
TOTAL45910425390% 

Python Unit Test Overview

Tests Skipped Failures Errors Time
9351 36 💤 0 ❌ 0 🔥 2m 30s ⏱️

@TaoChenOSU
Tao Chen (TaoChenOSU) added this pull request to the merge queue Aug 14, 2026
Merged via the queue into main with commit ee27065 Aug 14, 2026
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Usage: [Issues, PRs], Target: documentation in the code base and learn docs foundry Usage: [Issues, PRs], Target: all Foundry integrations hosting Usage: [Issues, PRs], Target: all hosting related solutions python Usage: [Issues, PRs], Target: Python

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants