You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: agent-framework/tutorials/workflows/checkpointing-and-resuming.md
+42-53Lines changed: 42 additions & 53 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,10 @@ ms.service: agent-framework
13
13
14
14
Checkpointing allows workflows to save their state at specific points and resume execution later, even after process restarts. This is crucial for long-running workflows, error recovery, and human-in-the-loop scenarios.
from agent_framework import get_checkpoint_summary
505
-
506
-
for checkpoint in checkpoints:
507
-
# Get human-readable summary
508
-
summary = get_checkpoint_summary(checkpoint)
509
-
510
-
print(f"Checkpoint: {summary.checkpoint_id}")
511
-
print(f"Iteration: {summary.iteration_count}")
512
-
print(f"Status: {summary.status}")
513
-
print(f"Messages: {len(checkpoint.messages)}")
514
-
print(f"Shared State: {checkpoint.shared_state}")
515
-
```
516
-
517
511
## Resuming from Checkpoints
518
512
519
513
### Streaming Resume
@@ -682,8 +676,3 @@ if __name__ == "__main__":
682
676
For the complete working implementation, see the [Checkpoint with Resume sample](https://github.com/microsoft/agent-framework/blob/main/python/samples/getting_started/workflows/checkpoint/checkpoint_with_resume.py).
683
677
684
678
::: zone-end
685
-
686
-
## Next Steps
687
-
688
-
> [!div class="nextstepaction"]
689
-
> [Learn about Workflow Visualization](visualization.md)
Copy file name to clipboardExpand all lines: agent-framework/tutorials/workflows/requests-and-responses.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,10 @@ ms.service: agent-framework
13
13
14
14
This tutorial demonstrates how to handle requests and responses in workflows using Agent Framework Workflows. You'll learn how to create interactive workflows that can pause execution to request input from external sources (like humans or other systems) and then resume once a response is provided.
15
15
16
+
## Concepts Covered
17
+
18
+
-[Requests and Responses](../../user-guide/workflows/requests-and-responses.md)
19
+
16
20
::: zone pivot="programming-language-csharp"
17
21
18
22
In .NET, human-in-the-loop workflows use `RequestPort` and external request handling to pause execution and gather user input. This pattern enables interactive workflows where the system can request information from external sources during execution.
@@ -68,12 +72,12 @@ Create executors that process user input and provide feedback:
68
72
/// <summary>
69
73
/// Executor that judges the guess and provides feedback.
0 commit comments