<@U08CKJH7C12> is preemptive_generation feature re...
# agents
p
@refined-appointment-81829 is preemptive_generation feature removed from Livekit. We are using livekit-agents 1.1.7 and whenever we try to set premptive_generation flag it throws an error that the parameter doesnt exist in AgentSession. We looked it up in the AgentSession class too in the PythonSDK and couldn’t find it either. Here is the error: We are using livekit-agents 1.1.7. We are using it with AgentSession Trceback: 2025-10-13 134412,049 - ERROR livekit.agents - unhandled exception while running the job task Traceback (most recent call last): File “/home/abdullah/Desktop/voice-ai-multiagent-backend/app.py”, line 1241, in entrypoint session = AgentSession[UserData](**{**session_kwargs, “preemptive_generation”: True}) File “/home/abdullah/anaconda3/lib/python3.10/typing.py”, line 957, in call result = self.__origin__(*args, **kwargs) TypeError: AgentSession.__init__() got an unexpected keyword argument ‘preemptive_generation’ {“pid”: 74768, “job_id”: “AJ_mHnSYWzNcMwG”}
m
I believe
premptive_generation
was added in 1.2.0
✅ 1