fierce-jordan-44682
08/28/2025, 6:29 AMtall-airline-16756
08/28/2025, 6:29 AMtall-airline-16756
08/28/2025, 6:29 AMsession.history, and you can access it anytime during your session. By default, it saves everything, and there isn’t a built-in way to automatically summarize the history before sending it to the LLM. But no worries—you can totally set up your own summarization using external tools or by managing the context yourself.
For instance, you might want to create a custom ChatContext that only includes the most important messages, or use some scripts to summarize longer histories. Also, if you want to keep things smooth between agents, just pass the chat_ctx parameter when you start an agent.
If you’d like, I’m here to help you figure out how to set up custom summarization or manage session memory—especially if you’re aiming to save on costs or speed things up. Just give me a shout!
Sources: Development Tools | livekit/livekit_composite | DeepWiki | livekit-agents/livekit/agents/voice/agent_session.py | complex-agents/role-playing/core/game_state.py | Sending text | LiveKit Docs | Sending text | LiveKit Docs