Skip to content

Commit c040bbf

Browse files
Refresh Python release dependencies and compatibility checks
Replicate Pyrefly 1.4.0, Griffe 2.4.1, Flit Core 4.x support, LiteLLM 1.106.2, ESLint 10.13.0, and Zustand 5.0.16 updates. Pin TypeScript to 5.9.3 while typescript-eslint does not support 7.x, and rebuild the shipped DevUI bundle. Use explicit provider option types in tests and samples for Pyrefly inference. Follow Griffe's removal of attribute-value breakage reporting to reduce false positives. Include the latest merged telemetry change in the release notes.
1 parent 0d0a745 commit c040bbf

30 files changed

Lines changed: 560 additions & 748 deletions

‎.github/scripts/check_python_api_compatibility.py‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
from griffe import (
1919
Alias,
2020
AliasResolutionError,
21-
AttributeChangedValueBreakage,
2221
ExplanationStyle,
2322
Object,
2423
find_breaking_changes,
@@ -231,13 +230,6 @@ def main() -> int:
231230
continue
232231

233232
for breakage in find_breaking_changes(old_package, new_package):
234-
if (
235-
isinstance(breakage, AttributeChangedValueBreakage)
236-
and "instance-attribute" in breakage.obj.labels
237-
and "class-attribute" not in breakage.obj.labels
238-
):
239-
continue
240-
241233
try:
242234
old_breakage_obj = old_package.modules_collection.get_member(
243235
breakage.obj.path

‎.github/tests/test_python_api_compatibility.py‎

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ def test_external_current_source_reports_repository_relative_path(self) -> None:
287287
)
288288
self.assertNotIn(str(current_source), warning)
289289

290-
def test_ignores_instance_values_but_reports_other_attribute_values(self) -> None:
290+
def test_attribute_value_changes_are_not_breaking(self) -> None:
291291
self.write_status([("agent-framework-stable", "stable", "released")])
292292
self.write_module(
293293
"stable",
@@ -321,17 +321,14 @@ def test_ignores_instance_values_but_reports_other_attribute_values(self) -> Non
321321

322322
result = self.run_checker(base_sha)
323323

324-
self.assertEqual(result.returncode, 1)
324+
self.assertEqual(result.returncode, 0)
325325
warnings = [
326326
line for line in result.stdout.splitlines() if line.startswith("::warning ")
327327
]
328-
self.assertEqual(len(warnings), 3)
329-
self.assertTrue(any("PUBLIC_VALUE" in warning for warning in warnings))
330-
self.assertTrue(
331-
any("PublicClass.class_value" in warning for warning in warnings)
328+
self.assertEqual(warnings, [])
329+
self.assertIn(
330+
"- Published API breakages: 0", (self.repo / "summary.md").read_text()
332331
)
333-
self.assertTrue(any("PublicEnum.MEMBER" in warning for warning in warnings))
334-
self.assertFalse(any("instance_value" in warning for warning in warnings))
335332

336333

337334
if __name__ == "__main__":

‎python/CHANGELOG.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1616
> **Python support:** Python 3.11 or later is now the supported baseline, subject to package-specific upper limits. Python 3.10 installation remains permitted by `Requires-Python` in this release, but compatibility is not guaranteed. The next release will also remove Python 3.10 installation eligibility from `Requires-Python`. Upgrade to Python 3.11 or later as soon as possible.
1717
1818
### Added
19+
- **agent-framework-core**: Add the shared `microsoft.agent-framework` telemetry resource attribute across logs, traces, and metrics while preserving explicit resource overrides ([#9589](https://github.com/microsoft/agent-framework/pull/9589))
1920
- **agent-framework-core**: Add experimental agent-triggered in-run compaction and skill unloading with `AgentTriggeredCompactionStrategy` and `UnloadSkillsCompactionStrategy` ([#9384](https://github.com/microsoft/agent-framework/pull/9384))
2021
- **agent-framework-core**: Support async conditions in switch-case workflow edge groups ([#9669](https://github.com/microsoft/agent-framework/pull/9669))
2122
- **agent-framework-core**: Load Agent Hooks middleware from a host declaration and support tool-name prefixes on `FileAccessProvider` ([#9405](https://github.com/microsoft/agent-framework/pull/9405), [#9654](https://github.com/microsoft/agent-framework/pull/9654))
@@ -29,6 +30,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2930
- **agent-framework-monty**: Bound captured file counts and per-file and total byte sizes, and report omitted output explicitly ([#9802](https://github.com/microsoft/agent-framework/pull/9802))
3031
- **agent-framework-tools**: Apply shell output limits to standard error as well as standard output ([#9795](https://github.com/microsoft/agent-framework/pull/9795))
3132
- **agent-framework-devui**: Improve generated file display and URL handling ([#9792](https://github.com/microsoft/agent-framework/pull/9792))
33+
- **agent-framework-devui**: Update Zustand to 5.0.16 and ESLint to 10.13.0, pin TypeScript to the compatible 5.9.3 version, and rebuild the bundled UI ([#9833](https://github.com/microsoft/agent-framework/pull/9833), [#9835](https://github.com/microsoft/agent-framework/pull/9835))
34+
- **agent-framework-nvidia**: Allow Flit Core 4.x as a build backend ([#9839](https://github.com/microsoft/agent-framework/pull/9839))
35+
- **tests**, **samples**: Update Pyrefly to 1.4.0 with explicit provider option types, upgrade Griffe to 2.4.1 so attribute-value changes no longer produce API compatibility false positives, and refresh the standalone Lab lockfile to LiteLLM 1.106.2 ([#9838](https://github.com/microsoft/agent-framework/pull/9838), [#9840](https://github.com/microsoft/agent-framework/pull/9840), [#9842](https://github.com/microsoft/agent-framework/pull/9842), [#9834](https://github.com/microsoft/agent-framework/pull/9834), [#9837](https://github.com/microsoft/agent-framework/pull/9837))
3236
- **agent-framework-azure-contentunderstanding**: Align the Azure Content Understanding SDK dependency floor ([#9695](https://github.com/microsoft/agent-framework/pull/9695))
3337
- **agent-framework**, **agent-framework-core**: Advance the exact Core pin and standard-install dependency cohort to the versions in this release.
3438
- **agent-framework-anthropic**, **agent-framework-azure-cosmos**, **agent-framework-bedrock**, **agent-framework-foundry**, **agent-framework-foundry-hosting**, **agent-framework-foundry-local**, **agent-framework-gemini**, **agent-framework-mistral**, **agent-framework-ollama**, **agent-framework-openai**: Require Core 1.24 for inherited chat-client lifecycle methods, citation helpers, or checkpoint encoding; retain other Core floors under the strict API-usage policy.

‎python/packages/core/tests/core/test_agents.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4600,17 +4600,17 @@ async def test_shared_local_storage_cross_provider_responses_history_does_not_le
46004600
from openai.types.chat.chat_completion_message import ChatCompletionMessage
46014601

46024602
from agent_framework._sessions import InMemoryHistoryProvider
4603-
from agent_framework.openai import OpenAIChatClient, OpenAIChatCompletionClient
4603+
from agent_framework.openai import OpenAIChatClient, OpenAIChatCompletionClient, OpenAIChatOptions
46044604

46054605
@tool(approval_mode="never_require")
46064606
def search_hotels(city: str) -> str:
46074607
return f"Found 3 hotels in {city}"
46084608

46094609
responses_client = OpenAIChatClient(model="test-model", api_key="test-key")
4610-
responses_agent = Agent(
4610+
responses_agent = Agent[OpenAIChatOptions](
46114611
client=responses_client, # ty: ignore[invalid-argument-type]
46124612
tools=[search_hotels],
4613-
default_options={"store": False}, # pyrefly: ignore[bad-argument-type]
4613+
default_options={"store": False},
46144614
)
46154615
session = responses_agent.create_session()
46164616

‎python/packages/core/tests/core/test_observability.py‎

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
Agent,
1717
AgentResponse,
1818
BaseChatClient,
19+
ChatOptions,
1920
ChatResponse,
2021
ChatResponseUpdate,
2122
Content,
@@ -5244,12 +5245,12 @@ async def _get() -> ChatResponse:
52445245

52455246
return _get()
52465247

5247-
agent = Agent(
5248+
agent = Agent[ChatOptions](
52485249
client=NestedTelemetryChatClient(), # ty: ignore[invalid-argument-type]
52495250
id="nested_agent_id",
52505251
name="nested_agent",
52515252
description="Nested telemetry agent",
5252-
default_options={"model": "NestedModel"}, # pyrefly: ignore[bad-argument-type]
5253+
default_options={"model": "NestedModel"},
52535254
)
52545255

52555256
span_exporter.clear()
@@ -6779,11 +6780,11 @@ async def _get() -> ChatResponse:
67796780

67806781
return _get()
67816782

6782-
agent = Agent(
6783+
agent = Agent[ChatOptions](
67836784
client=NestedChatClient(), # ty: ignore[invalid-argument-type]
67846785
id="nested_agent_id",
67856786
name="nested_agent",
6786-
default_options={"model": "NestedModel"}, # pyrefly: ignore[bad-argument-type]
6787+
default_options={"model": "NestedModel"},
67876788
)
67886789

67896790
span_exporter.clear()
@@ -6897,11 +6898,11 @@ async def _get() -> ChatResponse:
68976898

68986899
return _get()
68996900

6900-
agent = Agent(
6901+
agent = Agent[ChatOptions](
69016902
client=NestedToolChatClient(), # ty: ignore[invalid-argument-type]
69026903
id="tool_agent_id",
69036904
name="tool_agent",
6904-
default_options={"model": "ToolModel", "tools": [get_weather], "tool_choice": "auto"}, # pyrefly: ignore[bad-argument-type]
6905+
default_options={"model": "ToolModel", "tools": [get_weather], "tool_choice": "auto"},
69056906
)
69066907

69076908
span_exporter.clear()
@@ -7001,11 +7002,11 @@ async def _get_final() -> ChatResponse:
70017002

70027003
return _get_final()
70037004

7004-
agent = Agent(
7005+
agent = Agent[ChatOptions](
70057006
client=ParallelToolChatClient(), # ty: ignore[invalid-argument-type]
70067007
id="parallel_tool_agent_id",
70077008
name="parallel_tool_agent",
7008-
default_options={"model": "ToolModel", "tools": [first_tool, second_tool], "tool_choice": "auto"}, # pyrefly: ignore[bad-argument-type]
7009+
default_options={"model": "ToolModel", "tools": [first_tool, second_tool], "tool_choice": "auto"},
70097010
)
70107011

70117012
span_exporter.clear()

‎python/packages/devui/agent_framework_devui/ui/assets/index.js‎

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)