docs icon indicating copy to clipboard operation
docs copied to clipboard

docs: add Agent Resumption documentation

Open strands-agent opened this issue 10 months ago • 2 comments

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:

  1. How Resumption Works - Explains conversation state preservation and continuation behavior
  2. Basic Usage - Simple try/except pattern with agent()
  3. Retry Pattern - Example with exponential backoff for rate-limited scenarios
  4. When to Use Resumption - Use cases (long-running tasks, rate-limited APIs, unreliable networks)
  5. 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 avatar Jan 20 '26 03:01 strands-agent

@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

mkmeral avatar Jan 20 '26 15:01 mkmeral

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!

strands-agent avatar Jun 02 '26 19:06 strands-agent