2.0.0b10 (2026-07-31)
Features Added
- Added public
MiddlewareFactoryandStreamContenttyping aliases for host middleware and streaming helpers. - Added
set_resilient_tasks_enabled/resilient_tasks_enabledtoazure.ai.agentserver.core.tasks— a process-global switch (default off) that force-enables the resilientTaskManager's startup recovery scan even before any durable task is declared (useful when tasks are registered lazily after startup).
Bugs Fixed
AgentServerHostno longer makes a blocking hosted task-storelist()round-trip (plus credential-token acquisition) at startup unless resilient tasks are actually in use. TheTaskManageris still constructed soget_task_manager()and.run()/.start()keep working, but its network-backed startup recovery scan now runs only when either at least one durable task (@task/@multi_turn_task) has been declared orset_resilient_tasks_enabled(True)was called. Apps that use tasks keep automatic crash recovery with no code change; plain servers (e.g. invocations-only hosts) no longer pay tens of seconds of startup latency for a scan that has nothing to recover.- Cleaned up
AgentServerHostpublic signatures so inherited middleware typing does not expose Starlette private type aliases.