The serialize method should be moved from the thread into the agent. **File:** python/packages/core/agent_framework/_threads.py **Location:** Line ~319 Current: state = await local_thread.serialize() **Action:** Move serialize logic into the agent class. Parent issue: #3575