Hi! My agent isn't retaining conversation history ...
# agents
f
Hi! My agent isn't retaining conversation history between turns. Each response seems to forget what was said before.Using manual turn detection with push-to-talk.
Copy code
session = AgentSession(
    stt=google.STT(),
    llm=openai.LLM(model="gpt-4o-mini"),
    tts=google.TTS(),
    turn_detection="manual"
)

await session.start(room=ctx.room, agent=agent)

# In end_turn handler:
session.input.set_audio_enabled(False)
session.generate_reply()
Issue: When the user says something, then says something else, the agent doesn't remember the first message. Is there a setting I'm missing to enable conversation history? Or do I need to manually manage the chat context?