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
def reset_session() -> NoneSource
View on GitHubpraisonaiagents/agent/protocols.py at line 398