Livekit agent에서 realtime model을 사용하고 있는데 특정 역할만 ll...
# ask-ai
l
Livekit agent에서 realtime model을 사용하고 있는데 특정 역할만 llm모델을 사용하여 sub agent로 연동해서 사용할수 있을까?
t
Thanks for reaching out, Dan(송희웅). I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Absolutely! LiveKit agents can definitely use a real-time model with specific roles connected to an LLM model acting as a sub-agent. This is made possible through the
llm.handoff
function, which lets an agent smoothly transfer control to another agent that's set up with particular real-time LLM settings. For instance, you can easily configure a sub-agent with a specific role by adjusting the
instructions
parameter in the real-time model. Plus, the
llm.handoff
function supports dynamic handoff to a sub-agent with configurations like STT, TTS, and different LLM options. If you'd like, I’m here to help walk you through the steps to set this up in detail—just let me know! Sources: examples/src/anam_realtime_agent.ts | Real-time AI Models & Streaming | livekit/livekit_composite | DeepWiki | agent/main.py | Realtime model plugins | LiveKit Docs
l
그리고 agent tool 에 대한 human-in-the-loop 개념을 구현할수 있어?
t
Absolutely, LiveKit does support the human-in-the-loop concept for agent tools, and I’m happy to walk you through how it works! One common way is through workflows like warm transfers, where an AI agent can smoothly escalate a conversation to a human supervisor. This involves placing the user on hold, connecting with the human supervisor, and then merging both participants into the same room so the interaction feels seamless and natural. There are also handy tools like
transfer_to_human
and
connect_to_customer
that help manage these transitions behind the scenes. They enable SIP-based calls to human agents and make sure the handoff happens without a hitch. If you’d like, I’d be more than happy to provide detailed guidance or examples to help you implement this. Just let me know, and we’ll get it sorted together! Sources: livekit-agents/livekit/agents/voice/agent_activity.py | telephony/warm_handoff.py | How to test your agent using another agent | docs/source/hilserl.mdx
l
아니 장소를 예약하는 도구가 있다고 할때, 예약 날짜에 대해서 confirm을 받는 HITL 을 라이브킷 음성 채팅에서 구현 가능해??
t
Absolutely! LiveKit can definitely help set up a human-in-the-loop (HITL) process to confirm reservation dates within a voice chat tool. Here’s how it typically works with a multi-agent setup: • An AI agent starts by gathering the initial reservation details like date, time, and customer info. • Then, the agent double-checks those details with the customer using handy tools like
confirm_reservation
. • If it looks like a human touch is needed, the conversation can smoothly transfer to a human agent via the
transfer_call
function. On top of that, LiveKit can integrate with your external booking systems to check real-time availability and keep everything updated. This way, both AI and human agents work together seamlessly. If you’d like, I’m more than happy to walk you through designing this workflow or help with integrating any specific systems. Just let me know! Sources: examples/voice_agents/README.md | agent.py | examples/src/frontdesk/frontdesk_agent.ts | External data and RAG | LiveKit Docs | Building the all-in-one platform for voice AI agents