Describe the bug
When using SQLiteSession, if the user gives the same input consecutively, the tool is not invoked the second time.
Expected behavior: Tool should be invoked every time regardless of same input.
To Reproduce
- Create an agent with a tool using SQLiteSession
- Call the agent with the same input twice
- Observe that second call does not invoke the tool
Expected behavior
Every call should invoke the tool, even if the input is the same as the last one.
Environment
- OS: Windows 10
- Python: 3.10
- openai-agents-python version: latest main branch
Additional context
I believe the issue is caused by caching logic in src/agents/memory/session.py
which skips consecutive duplicate inputs.