aloof-scooter-47164
12/19/2025, 6:59 PMWARNING - unknown AI function `search`tall-airline-16756
12/19/2025, 6:59 PMtall-airline-16756
12/19/2025, 7:00 PMsearch
Acknowledging: that warning means the LLM tried to call a function named search that your agent hasn't registered.
What you can do (pick one):
• If you want a search tool: define and register it with your agent.
◦ Python example:
from livekit.agents import function_tool, Agent, RunContext
class MyAgent(Agent):
@function_tool()
async def search(self, context: RunContext, query: str) -> str:
# implement search logic
return f"Results for: {query}"
agent = MyAgent()
• If search should not be called: fix your tool descriptions / prompt so the model doesn't try to call it (remove ambiguous wording that implies a search capability).
• Monitoring: you cannot programmatically "catch" that internal warning — the agent logs it and ignores the unknown call. Use agent logs and your tools' logging to observe when the model attempts unintended calls.
Quick diagnostic questions to help further:
• Do you want to implement a search tool, or prevent the model from calling it?
• Which SDK are you using (Python or Node.js)? Sources: Tool definition and use | LiveKit docs | https://blog.livekit.io/streamline-troubleshooting-with-agent-observability/#/portal|aloof-scooter-47164
12/19/2025, 7:32 PMtall-airline-16756
12/19/2025, 7:32 PM