Reset Session • AI Agent SDK

reset_session: Discard the cached session so the next execute() creates a fresh one.

reset_session

Method

</div>

This is a method of the ManagedBackendProtocol class in the protocols module.

Discard the cached session so the next execute() creates a fresh one.

The agent and environment remain cached for reuse.

Signature

python
def reset_session() -> None

Source

View on GitHub

praisonaiagents/agent/protocols.py at line 398


Related Documentation