Is it possible to create a text agent with the age...
# ask-ai
g
Is it possible to create a text agent with the agents framework that doesn't use an LLM at all - in order to perform utility functions? Or should the livekit python SDK be used directly for that?
t
Thanks for reaching out, Justyn. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Just to make sure I understand you correctly—are you looking to: • Use an LLM to generate responses but want to call utility functions without involving the LLM, or • Skip using an LLM altogether and stick with deterministic logic only? Knowing this will really help me suggest the best options for what you need. Sources: livekit-agents/livekit/agents/voice/agent.py | Large language model (LLM) integrations | LiveKit Docs | Tool definition and use | LiveKit Docs | basics/function_calling.py
g
The second option - skip using an LLM altogether and stick with deterministic logic only, for sending and receiving text-based messages
t
Absolutely! You can definitely use the LiveKit Python SDK directly for deterministic logic without needing an LLM. The SDK lets you handle real-time audio, video, and data streams with programmatic, rule-based processing. Here are a few cool things you can do: • Remote Procedure Calls (RPC): You can have participants in a room call functions directly—think math calculations or fetching data. For example, someone could set up an RPC method to calculate a square root and send back the result in a straightforward way. • Media Processing: You’re able to work with raw audio and video frames from participant tracks using your own custom logic, like filtering, transforming, or analyzing them. This comes in handy for things like noise cancellation or adding video overlays. • Server-Side Automation: The SDK’s API lets you programmatically manage rooms, sessions, and more—like creating rooms or dispatching agents—making automation smooth and easy. The SDK is really built to support deterministic, logic-driven apps without needing an LLM. If you want, I’d be happy to help you set up a specific kind of deterministic agent—whether that’s a calculator bot, a media filter, or a data router. Just let me know! Sources: Large language model (LLM) integrations | LiveKit Docs | LiveKit Docs | livekit-rtc/README.md | Processing raw media tracks | LiveKit Docs
g
Are you saying we should not use the agents framework for this task? We should use the Livekit Python SDK instead?
t
You're absolutely right! The Agents framework is built especially for LLM-based applications, where the LLM manages tasks and calls utility functions. Since you want to skip using an LLM altogether and stick with deterministic logic, the LiveKit Python SDK is definitely the way to go for your needs. The SDK gives you the flexibility to handle things like RPC, media processing, and server-side automation—all without needing any AI components. If you'd like, I’m here to help you get started with setting up your application using the SDK. Just let me know!
g
Is there an example of using the SDK to create a function that will connect to a specific room whenever it is launched, and monitor text messages sent between participants
t
Here’s a friendly example of how you can use the LiveKit Python SDK to connect to a specific room and keep an eye on text messages shared between participants: Sources: examples/rpc.py | examples/other/chat-stream-receiver.py