wahts the diff of python agent.py dev vs start? in...
# ask-ai
p
wahts the diff of python agent.py dev vs start? in practice. also if i deployed an agent and want to run dev , i got cahcing issues running the hsoted in the paground isntead fo my one running in dev
t
Thanks for reaching out, Minas. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks for sharing your concerns! To better assist you with the caching issues you're facing, could you please help me understand a few things: • Are both the hosted and local development agents connecting to the same LiveKit instance, or are they set up in different environments? • What kind of caching behaviors or errors have you noticed when running the hosted agent alongside the local development agent? • Have you observed any specific symptoms or conflicts when switching between these two modes? Sources: README.md | Worker options | LiveKit Docs | Voice AI quickstart | LiveKit Docs | Deploying to custom environments | LiveKit Docs | test/agents.go
I'm glad you asked about the difference between
python agent.py dev
and
python agent.py start
! Here’s a friendly breakdown to help you out: • Development Mode (
dev
):
This mode is great for when you're testing and debugging. It enables hot reloading, so your code updates automatically, and it uses a "DEBUG" log level to give you detailed insights. • Production Mode (
start
):
This one is designed for running smoothly in a live environment. It focuses on performance, uses an "INFO" log level, and provides structured logs that are perfect for monitoring. Hot reloading is turned off here. About the caching issues you mentioned when running a hosted agent alongside a local development agent, I’ve reached out to get more details so I can offer you the best possible advice. If you have any extra info or specifics, please feel free to share—I’m here to help! Sources: README.md | Worker options | LiveKit Docs | Voice AI quickstart | LiveKit Docs | Deploying to custom environments | LiveKit Docs | test/agents.go