Learn how to pause and resume ACP agent execution
Await
mechanism. This powerful feature enables agents to await external input, which could come from human users, other agents in multi-agent environments, or external systems. Leveraging Await
enhances flexibility, safety, and responsiveness in automated workflows.
Await
significantly enhances agent behavior:
Await
enables dynamic interactions with external entities (whether human or automated) providing intelligent agents with practical solutions for handling complex scenarios.
Agent Implementation
MessageAwaitRequest
. Once external input is received, the agent resumes execution and acknowledges the approval.Client Interaction
run.awaiting
event, the client responds with an MessageAwaitResume
to resume the agent’s execution.