<@U084APK40NS> I am getting this error again nd ag...
# ask-ai
m
@millions-hair-24956 I am getting this error again nd again : Traceback (most recent call last): File "D:\Sawt\sawt-agent-backend\AGENT_internal_web.py", line 5, in <module> from livekit.agents.llm import ai_function ImportError: cannot import name 'ai_function' from 'livekit.agents.llm' is : https://github.com/livekit/agents/blob/dev-1.0/examples/minimal_worker.py not available to use right now ?
g
It seems likely that the
ai_function
import error is due to a version mismatch or an incorrect installation of the LiveKit package. The
ai_function
is not explicitly mentioned in the provided data sources, which suggests it might not be available or has been deprecated in the current version of LiveKit you are using. To resolve this, you might want to check if you have the latest version of LiveKit installed. According to the LiveKit Slack discussion, updating to the latest version of LiveKit and its plugins can often resolve such import issues. Would you like more detailed guidance on how to update your LiveKit installation or troubleshoot this further? Sources: - LiveKit Slack discussion 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.