interrupt • AI Agent SDK
interrupt: Send a user interrupt to the active session.
interrupt
Method
</div>
This is a method of the ManagedBackendProtocol class in the protocols module.
Send a user interrupt to the active session.
Signals the managed agent to stop its current work (equivalent to `user.interrupt` event in the Anthropic API).
Signature
def interrupt() -> NoneSource
View on GitHubpraisonaiagents/agent/protocols.py at line 425