docs: add Agent Resumption documentation
Description
Adds documentation for the agent resumption feature, which allows agents to continue processing after transient failures without starting over.
This feature already exists in the SDK but was completely undocumented, making it undiscoverable for users.
Related Issues
Closes strands-agents/sdk-python#2583
Documentation PR
N/A (this is the docs PR)
Type of Change
Documentation update
Contents
New Section: Agent Resumption
Added to agent-loop.md with:
- How Resumption Works - Explains conversation state preservation and continuation behavior
- Basic Usage - Simple try/except pattern with
agent() - Retry Pattern - Example with exponential backoff for rate-limited scenarios
- When to Use Resumption - Use cases (long-running tasks, rate-limited APIs, unreliable networks)
- Limitations - Process boundaries, state consistency, idempotency considerations
Code Examples
from strands import Agent
agent = Agent()
try:
result = agent("Long running task...")
except Exception as e:
print(f"Failed: {e}")
# Resume from where it left off
result = agent()
Testing
- [x] Verified markdown renders correctly
- [x] Code examples match SDK behavior
Checklist
- [x] I have read the CONTRIBUTING document
- [x] Documentation follows existing style
- [x] Cross-references to Session Management included
- [x] TypeScript noted as not supported (uses
{{ ts_not_supported_code() }})
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
@strands-agent should we have a whole section for resumption? It seems like we have a section in the page for agent loop. we should probably add a section within that instead of having a whole section just for resuming
This repository has been merged into the strands-agents/harness-sdk monorepo and will be archived shortly. All new development happens there.
If this PR is still relevant, please recreate it against the monorepo. The code now lives under site/. Full commit history was preserved, so your base should be findable.
Apologies for the disruption, and thank you for contributing!