Resolve Python hosting rebase conflicts

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
eavanvalkenburg
2026-06-17 17:23:12 +02:00
parent 2bc01b353f
commit 47ec0335ff
3 changed files with 1166 additions and 253 deletions
File diff suppressed because it is too large Load Diff
@@ -913,8 +913,9 @@ class TestSharedReExports:
downstream code that historically imported them keep working."""
def test_responses_re_exports_helpers(self) -> None:
# All of these used to live in ``_responses``; after the
# refactor they live in ``_shared`` but are re-exported.
# These helpers historically lived in ``_responses``. They must
# remain importable there for compatibility even when ``_shared``
# also provides canonical implementations for the history provider.
from agent_framework_foundry_hosting import (
_responses, # pyright: ignore[reportPrivateUsage]
_shared, # pyright: ignore[reportPrivateUsage]
@@ -929,9 +930,8 @@ class TestSharedReExports:
"_output_item_to_message",
"_output_items_to_messages",
):
assert getattr(_responses, name) is getattr(_shared, name), (
f"{name} should be re-exported from _responses for backwards compat"
)
assert callable(getattr(_responses, name))
assert callable(getattr(_shared, name))
# region Full AF ↔ Foundry round-trip via InMemoryResponseProvider
@@ -224,7 +224,7 @@ def _workflow_event_to_update(event: WorkflowEvent[Any]) -> AgentResponseUpdate
@asynccontextmanager
async def _suppress_already_consumed() -> AsyncIterator[None]: # noqa: RUF029
async def _suppress_already_consumed() -> AsyncIterator[None]:
"""Yield, swallowing finalizer failures so consumer cleanup never crashes the host.
The bridge stream calls ``get_final_response()`` after iterating the