Code clean up: Checkpoint and WorkflowBuilder (#1557)

Co-authored-by: Evan Mattson <35585003+moonbox3@users.noreply.github.com>
This commit is contained in:
Tao Chen
2025-10-20 09:34:06 -07:00
committed by GitHub
Unverified
parent 9c3f52566f
commit 083d0de3f3
21 changed files with 812 additions and 809 deletions
@@ -144,7 +144,7 @@ async def run_semantic_kernel_process_example() -> None:
kernel=kernel,
initial_event=KernelProcessEvent(id=CommonEvents.START_PROCESS.value, data="Initial"),
) as process_context:
process_state = await process_context.get_state()
process_state = await process_context.get_executor_state()
c_step_state: KernelProcessStepState[CStepState] | None = next(
(s.state for s in process_state.steps if s.state.name == "CStep"),
None,
@@ -136,7 +136,7 @@ async def run_semantic_kernel_nested_process() -> None:
initial_event=ProcessEvents.START_PROCESS.value,
data="Test",
)
process_info = await process_handle.get_state()
process_info = await process_handle.get_executor_state()
inner_process: KernelProcess | None = next(
(s for s in process_info.steps if s.state.name == "Inner"),