Python: (samples): adopt AzureOpenAIResponsesClient, reorganize orchestration examples, and fix workflow/orchestration bugs (#3873)

* adopt AzureOpenAIResponsesClient, reorganize orchestration examples, and fix workflow/orchestration bugs

* Updates

* add comment
This commit is contained in:
Evan Mattson
2026-02-12 10:46:58 +00:00
committed by GitHub
parent 8457533c69
commit 1b10b051fd
73 changed files with 1612 additions and 686 deletions
@@ -366,6 +366,11 @@ async def test_magentic_checkpoint_resume_round_trip():
assert checkpoints
checkpoints.sort(key=lambda cp: cp.timestamp)
resume_checkpoint = checkpoints[-1]
loaded_checkpoint = await storage.load(resume_checkpoint.checkpoint_id)
assert loaded_checkpoint is not None
# Regression check: checkpoints with pending request_info must include executor state.
assert "_executor_state" in loaded_checkpoint.state
assert "magentic_orchestrator" in loaded_checkpoint.state["_executor_state"]
manager2 = FakeManager()
wf_resume = MagenticBuilder(
@@ -378,7 +383,7 @@ async def test_magentic_checkpoint_resume_round_trip():
completed: WorkflowEvent | None = None
req_event = None
async for event in wf_resume.run(
resume_checkpoint.checkpoint_id,
checkpoint_id=resume_checkpoint.checkpoint_id,
stream=True,
):
if event.type == "request_info" and event.request_type is MagenticPlanReviewRequest: