red-dentist-96118
06/26/2025, 10:20 PMtall-airline-16756
06/26/2025, 10:20 PMtall-airline-16756
06/26/2025, 10:20 PMred-dentist-96118
06/26/2025, 10:20 PMtall-airline-16756
06/26/2025, 10:21 PM<thinking>
and </thinking>
tags and just quietly ignore them. Pretty smart, right?
Curious about how this might work for your specific project? I'm all ears! Feel free to share more details, and we can chat through it together. Sources: GitHub::livekit::agents | livekit-agents/livekit/agents/llm/llm.pyred-dentist-96118
06/26/2025, 10:21 PMtall-airline-16756
06/26/2025, 10:21 PMred-dentist-96118
06/26/2025, 10:22 PMtall-airline-16756
06/26/2025, 10:22 PM<think>...</think>
tags, like showing its mental work.
• The llm_node
method catches these output tags and does some neat processing.
• For instance, it can remove <think>
tags and replace them with something like an "Okay, I'm ready to respond" message.
• This means you get to see the behind-the-scenes thinking while keeping the final response super clean!
Wanna set this up? You can create a Chain of Thought agent that customizes the llm_node method to handle the LLM output just how you want. Need a hand getting started? I'm totally here to help! 🌟 Sources: Modifying LLM output before TTS | LiveKit Docs