python -c "
from praisonaiagents import Agent
import threading
agent = Agent(name='Test', instructions='You are a helpful assistant.')
# Verify locks exist
assert hasattr(agent, '_history_lock'), 'Missing history lock'
assert hasattr(agent, '_cache_lock'), 'Missing cache lock'
assert agent._history_lock.is_async_context() is False, 'Should be sync context'
print('Thread safety locks: OK')
"