stop • AI Agent SDK

stop: Signal the inbound loop to stop and tear down the connection.

stop

Async

Method

</div>

This is a method of the BasePlatformAdapter class in the base module.

Signal the inbound loop to stop and tear down the connection.

Default releases the default :meth:start wait, then delegates to :meth:disconnect. Adapters with their own run loop override this to unblock it first.

Signature

python
async def stop() -> None

Uses

  • disconnect

Source

View on GitHub

praisonaiagents/bots/base.py at line 590