is there a command line tool for agent remote test...
# ask-ai
h
is there a command line tool for agent remote test, because the current python agent.py is only for local test, but I want remote test
t
Thanks for reaching out, YUNYI. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Yes, there is a command line tool for remote testing of agents. You can use the LiveKit CLI for this purpose. Specifically, the
lk dispatch create
command allows you to create a dispatch that connects an agent to a phone call. Here is an example:
Copy code
lk dispatch create \
--new-room \
--agent-name outbound-caller \
--metadata '+15105550100'
This command creates a new room, specifies the agent name, and provides metadata (such as a phone number to call). Please ensure you are using version 2.3.0 or later of the LiveKit CLI to access dispatch commands. Sources: Making calls using SIP | LiveKit Docs | Making calls using SIP | LiveKit Docs
h
I want to test agent, not a phone call...
t
Hey there! Want an easy way to test your LiveKit agent without making an actual phone call? I've got just the trick for you. Just pop open your terminal and run this simple command:
Copy code
python myagent.py console
This neat little terminal mode lets you test your agent locally with audio input and output, right from your computer. No need to set up complicated servers or worry about extra dependencies. It's basically a quick and stress-free way to make sure your agent is working exactly how you want. Pretty handy, right? Sources: GitHub::livekit::agents | examples/voice_agents/silent_function_call.py
h
I want to use online mode
t
Hey there! Want an easy way to test out your LiveKit agent? The Agents Playground is like your personal testing playground that makes checking out your multimodal AI super simple. No complicated UI development needed - how cool is that? 😊 1. First things first, make sure your agent is running in
dev
or
start
mode. 2. Then just hop over to the Agents Playground - it's your new best friend for testing! Trust me, this playground is awesome. You can test audio (microphone and speakers), text (live transcription and chat), and even video with your webcam. It's especially great if you want to see how your agent handles visual tasks. Think of it like a playground where your AI can show off its skills! 🚀 Sources: Agents playground | LiveKit Docs