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

python
def interrupt() -> None

Source

View on GitHub

praisonaiagents/agent/protocols.py at line 425