rough-hairdresser-81331
07/25/2025, 8:34 PMtall-airline-16756
07/25/2025, 8:34 PMtall-airline-16756
07/25/2025, 11:35 PMdamp-waiter-77572
08/13/2025, 4:24 PMtall-airline-16756
08/13/2025, 4:25 PMfrom livekit import function_tool
class TriageAgent:
@function_tool
async def transfer_to_support(self, context):
await self.session.say("I'll transfer you to our Patient Support team...")
return await self._transfer_to_agent("support", context)
@function_tool
async def transfer_to_billing(self, context):
await self.session.say("I'll transfer you to our Medical Billing department...")
return await self._transfer_to_agent("billing", context)
In this example, the LLM uses function tools to figure out whether to connect the user with support or billing, depending on the conversation.
If you'd like a different example or want me to walk you through it in more detail, just let me know—I’m here to help!