[FEATURE] Enable resuming agent execution without requiring initial prompt
Problem Statement
Resuming an agent currently requires providing an initial prompt. This makes it difficult to seamlessly resume agent execution from a pause point (e.g., after a tool call or model invocation) without injecting artificial prompts or modifying conversation history.
Proposed Solution
Enable continuing the agentic loop from a tool use or model call without requiring user input. This could be:
- An agent.resume() method that continues from the last execution point
- A flag on agent.prompt() to indicate continuation mode
- Support for empty/null prompts when resuming
Use Case
When implementing pause/resume functionality:
- Agent pauses mid-execution (e.g., waiting for human approval)
- Approval is granted asynchronously
- Agent should resume exactly where it left off, continuing with the tool result or next model call
- No artificial "continue" prompt should be needed
Alternatives Solutions
We currently inject synthetic prompts like "continue" which pollutes conversation history and can confuse the model.
Additional Context
No response
Interrupts is our solution to this - https://strandsagents.com/docs/user-guide/concepts/interrupts/ does that work your purposes?
This issue has been automatically closed as it was marked for auto-closure by the team and no additional responses was received within 7 days.
@zastrowm Issue with interrupts is its available only for BeforeToolCallEvent, if we can open this up to any of the hooks that would be more useful so we can dynamically control & modify the agent's behavior.