Skip to content

Python: bump package versions for 1.2.2 release#5561

Merged
moonbox3 merged 3 commits intomicrosoft:mainfrom
moonbox3:bump-py-ver-release-260429
Apr 29, 2026
Merged

Python: bump package versions for 1.2.2 release#5561
moonbox3 merged 3 commits intomicrosoft:mainfrom
moonbox3:bump-py-ver-release-260429

Conversation

@moonbox3
Copy link
Copy Markdown
Contributor

Summary

Cuts the python-1.2.2 release. PATCH bump on the released cohort (agent-framework, agent-framework-core, agent-framework-openai, agent-framework-foundry: 1.2.1 → 1.2.2), driven by the OpenAI file_search citations fix (#5557). All 21 beta packages stamp 1.0.0b260429 and all 4 alpha packages — now including the new agent-framework-azure-contentunderstanding — stamp 1.0.0a260429 per the lockstep convention. Date stamp reflects 2026-04-29 Pacific.

Two follow-on bundled fixes to keep validate-dependency-bounds-test green at lowest-direct resolution:

  • agent-framework-azure-contentunderstanding: bump azure-ai-contentunderstanding lower bound from >=1.0.0 to >=1.0.1 (1.0.0 ships without proper typing — pyright reports 65 unknown-type errors)
  • core/agent_framework/foundry/__init__.pyi: pyright # pyright: ignore[reportMissingImports] / [reportUnknownVariableType] on the new alpha package's stub imports, since alpha packages aren't in core's [all] extra and therefore aren't installed at lowest-direct

See python/CHANGELOG.md for the full set of changes shipping in this release.

PATCH bump (1.2.1 -> 1.2.2) for the released cohort. Five PRs land in this
window:

- agent-framework-openai: fix file_search citations breaking the assistant-
  message history roundtrip (microsoft#5557) — drives the released-tier PATCH
- agent-framework-orchestrations: [BREAKING] standardize orchestration
  terminal outputs as AgentResponse (microsoft#5301)
- agent-framework-core, agent-framework-declarative: preserve Workflow.run()
  shared state across calls, accept list[Message] in declarative start
  executor, and coerce Enum values when serializing PowerFx symbols (microsoft#5531)
- agent-framework-foundry-hosting: add hosted Durable Workflow support
  (microsoft#5531)
- agent-framework-azure-contentunderstanding: new alpha package — Azure AI
  Content Understanding context provider (microsoft#4829)
- dependencies: workspace package dependency refresh (microsoft#5555)

Per lockstep convention, all 21 beta packages stamp 1.0.0b260429 and all 4
alpha packages (now including the new contentunderstanding) stamp
1.0.0a260429. Date stamp reflects 2026-04-29 Pacific. Every non-core package
floor on agent-framework-core is raised to >=1.2.2; the new
contentunderstanding package's stale >=1.0.0 floor is brought into line.

Two follow-on fixes bundled to keep validate-dependency-bounds-test green
at lowest-direct resolution:
- Bump agent-framework-azure-contentunderstanding's azure-ai-content
  understanding lower bound from >=1.0.0 to >=1.0.1 (1.0.0 ships without
  proper typing — pyright reports 65 unknown-type errors)
- Add pyright ignore comments to core/foundry/__init__.pyi for the new
  alpha package's type-stub imports, since alpha packages are not in
  core's [all] extra and therefore aren't installed at lowest-direct
Add the streaming-span observability fix to the Fixed section. PR is on
upstream/main but not yet pulled into origin/main; the code itself will
land via the PR merge.
Copilot AI review requested due to automatic review settings April 29, 2026 08:32
@moonbox3 moonbox3 requested a review from a team as a code owner April 29, 2026 08:32
@moonbox3 moonbox3 added documentation Improvements or additions to documentation python lab Agent Framework Lab labels Apr 29, 2026
@moonbox3
Copy link
Copy Markdown
Contributor Author

moonbox3 commented Apr 29, 2026

Python Test Coverage

Python Test Coverage Report •
FileStmtsMissCoverMissing
packages/core/agent_framework/_workflows
   _workflow.py2781993%91, 270–272, 274–275, 293, 297, 461, 674, 695, 743, 755, 761, 766, 786–788, 839
packages/declarative/agent_framework_declarative/_workflows
   _declarative_base.py4625887%47, 50, 154, 242, 256, 270, 281, 298, 425–426, 433–434, 449, 479, 562–564, 566–568, 570, 573, 580, 606, 632–638, 640–641, 643–651, 672–673, 675–676, 964–967, 989–990, 997–998, 1003, 1012–1013, 1019
TOTAL30583355988% 

Python Unit Test Overview

Tests Skipped Failures Errors Time
6152 30 💤 0 ❌ 0 🔥 1m 35s ⏱️

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

Automated Code Review

Reviewers: 4 | Confidence: 95%

✓ Correctness

This is a straightforward version bump release (1.2.1 → 1.2) with consistent dependency updates across all packages, CHANGELOG additions, import consolidation in sample files, minor formatting changes, and pyright ignore directives in the type stub. All formatting changes (removing line-continuation parentheses in _workflow.py and _declarative_base.py) preserve identical semantics — the parentheses were purely for line wrapping and did not affect expression grouping. No correctness issues found.

✓ Security Reliability

This is a routine release version bump from 1.2.1 to 1.2.2 across all Python packages. Changes include version bumps in pyproject.toml files and uv.lock, CHANGELOG additions, import consolidation in sample files, minor code formatting changes (removing line-continuation parentheses), and pyright ignore comments in type stubs. All formatting changes are semantically equivalent to the originals. No security or reliability concerns identified.

✓ Test Coverage

This is a release version-bump PR (1.2.1 → 1.2.2) that updates package versions across all Python workspace packages, updates the CHANGELOG, and applies minor formatting changes (line wrapping, import reordering, pyright ignore comments). All code changes in _workflow.py, _declarative_base.py, foundry/init.py, foundry/init.pyi, and test_workflow_factory.py are purely cosmetic reformatting with no behavioral changes. The sample import reorganizations consolidate duplicate import blocks. Since no new behavior is introduced, no new tests are needed. Existing test assertions in test_workflow_factory.py are reformatted but semantically unchanged.

✓ Design Approach

I found two release-packaging design issues worth addressing before shipping 1.2.2/1.0.0a260429. First, the newly published agent-framework-azure-contentunderstanding package is not self-contained relative to its own documented install path: its README tells users to install only that package, but the basic example immediately imports FoundryChatClient from agent_framework.foundry, which is not declared as a dependency. Second, agent-framework-foundry still allows agent-framework-openai>=1.1.0 even though Foundry is tightly coupled to OpenAI internals and this same release advertises an OpenAI-side Responses/history fix; that stale lower bound lets resolvers produce mismatched package sets.


Automated review by moonbox3's agents

Comment thread python/packages/azure-contentunderstanding/pyproject.toml
Comment thread python/packages/foundry/pyproject.toml Outdated
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Cuts the Python 1.2.2 release by updating workspace/package versions, refreshing dependency bounds needed for lowest-direct CI, and aligning changelog + type-checking ergonomics for newly introduced packages.

Changes:

  • Bump released cohort (agent-framework* stable packages) from 1.2.11.2.2, and stamp beta/alpha packages to 1.0.0b260429 / 1.0.0a260429.
  • Raise azure-ai-contentunderstanding lower bound to >=1.0.1 and align agent-framework-azure-contentunderstanding core dependency to >=1.2.2,<2.
  • Update changelog links/entries and adjust a few formatting/import/type-checking details to keep lint/type-check/test workflows green.

Reviewed changes

Copilot reviewed 41 out of 42 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
python/uv.lock Updates locked workspace package versions and CU dependency floor (azure-ai-contentunderstanding>=1.0.1).
python/pyproject.toml Bumps root meta-package to 1.2.2 and pins agent-framework-core[all]==1.2.2.
python/CHANGELOG.md Adds 1.2.2 release notes and updates compare links ([Unreleased], [1.2.2]).
python/packages/core/pyproject.toml Bumps agent-framework-core to 1.2.2.
python/packages/openai/pyproject.toml Bumps agent-framework-openai to 1.2.2 and updates core dependency floor.
python/packages/foundry/pyproject.toml Bumps agent-framework-foundry to 1.2.2 and updates core dependency floor.
python/packages/core/agent_framework/_workflows/_workflow.py Minor formatting refactor (no functional change intended).
python/packages/declarative/pyproject.toml Bumps declarative package beta stamp and core dependency floor.
python/packages/declarative/tests/test_workflow_factory.py Minor assertion formatting cleanup in regression coverage.
python/packages/declarative/agent_framework_declarative/_workflows/_declarative_base.py Minor formatting changes in message/history handling (one line needs clarity).
python/packages/core/agent_framework/foundry/init.py Wraps long _IMPORTS entry for readability.
python/packages/core/agent_framework/foundry/init.pyi Adds pyright ignores for optional alpha-package stub imports.
python/packages/azure-contentunderstanding/pyproject.toml Bumps alpha stamp; raises CU SDK lower bound; aligns core dependency to >=1.2.2,<2.
python/packages/azure-contentunderstanding/samples/02-devui/01-multimodal_agent/agent.py Import reordering/cleanup for sample.
python/packages/azure-contentunderstanding/samples/02-devui/02-file_search_agent/foundry_backend/agent.py Import grouping cleanup for sample.
python/packages/azure-contentunderstanding/samples/01-get-started/01_document_qa.py Consolidates foundry imports for sample.
python/packages/azure-contentunderstanding/samples/01-get-started/02_multi_turn_session.py Consolidates foundry imports for sample.
python/packages/azure-contentunderstanding/samples/01-get-started/03_multimodal_chat.py Consolidates foundry imports for sample.
python/packages/azure-contentunderstanding/samples/01-get-started/04_invoice_processing.py Consolidates foundry imports for sample.
python/packages/a2a/pyproject.toml Bumps beta stamp; updates core dependency floor.
python/packages/ag-ui/pyproject.toml Bumps beta stamp; updates core dependency floor.
python/packages/anthropic/pyproject.toml Bumps beta stamp; updates core dependency floor.
python/packages/azure-ai-search/pyproject.toml Bumps beta stamp; updates core dependency floor.
python/packages/azure-cosmos/pyproject.toml Bumps beta stamp; updates core dependency floor.
python/packages/azurefunctions/pyproject.toml Bumps beta stamp; updates core dependency floor.
python/packages/bedrock/pyproject.toml Bumps beta stamp; updates core dependency floor.
python/packages/chatkit/pyproject.toml Bumps beta stamp; updates core dependency floor.
python/packages/claude/pyproject.toml Bumps beta stamp; updates core dependency floor.
python/packages/copilotstudio/pyproject.toml Bumps beta stamp; updates core dependency floor.
python/packages/devui/pyproject.toml Bumps beta stamp; updates core dependency floor.
python/packages/durabletask/pyproject.toml Bumps beta stamp; updates core dependency floor.
python/packages/foundry_hosting/pyproject.toml Bumps alpha stamp; updates core dependency floor.
python/packages/foundry_local/pyproject.toml Bumps beta stamp; updates core dependency floor.
python/packages/gemini/pyproject.toml Bumps alpha stamp; updates core dependency floor.
python/packages/github_copilot/pyproject.toml Bumps beta stamp; updates core dependency floor.
python/packages/hyperlight/pyproject.toml Bumps alpha stamp; updates core dependency floor.
python/packages/lab/pyproject.toml Bumps beta stamp; updates core dependency floor.
python/packages/mem0/pyproject.toml Bumps beta stamp; updates core dependency floor.
python/packages/ollama/pyproject.toml Bumps beta stamp; updates core dependency floor.
python/packages/orchestrations/pyproject.toml Bumps beta stamp; updates core dependency floor.
python/packages/purview/pyproject.toml Bumps beta stamp; updates core dependency floor.
python/packages/redis/pyproject.toml Bumps beta stamp; updates core dependency floor.

Two packaging fixes flagged in review:

1. agent-framework-azure-contentunderstanding: add agent-framework-foundry
   as a runtime dependency. The package's README directs users to
   `pip install agent-framework-azure-contentunderstanding --pre` and the
   basic example imports `FoundryChatClient` from `agent_framework.foundry`,
   so the documented install path was failing with ImportError. Pulling
   agent-framework-foundry into deps makes the advertised entry path
   self-contained.

2. agent-framework-foundry: bump agent-framework-openai lower bound from
   >=1.1.0 to >=1.2.2,<2. Foundry imports private modules from
   agent_framework_openai (`_chat_client.py:22`, `_agent.py:34`), so
   resolvers were free to pair foundry==1.2.2 with older OpenAI versions
   that lack this release's coordinated Responses/history fix. Lockstep the
   floor with the released cohort to prevent mismatched installs.

Both changes pass `validate-dependency-bounds-test` lower + upper at
their respective packages.
@moonbox3 moonbox3 removed the request for review from a team April 29, 2026 08:48
@moonbox3 moonbox3 merged commit f5419b9 into microsoft:main Apr 29, 2026
45 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation lab Agent Framework Lab python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants