Is there a way to add/pass arguments to `python ma...
# ask-ai
w
Is there a way to add/pass arguments to
python main.py console
?
t
Thanks for reaching out, Alex. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
You can pass arguments to
python main.py console
to customize its behavior. Here are some options you can use: • `--url`: Specify the LiveKit server or Cloud project’s websocket URL (e.g.,
--url <livekit_url>
). • `--api-key`: Provide your LiveKit API key (e.g.,
--api-key <livekit_api_key>
). • `--api-secret`: Provide your LiveKit API secret (e.g.,
--api-secret <livekit_api_secret>
). • `--record`: Enable recording of the conversation (e.g.,
--record
). For example, you can run:
Copy code
python main.py console --url <livekit_url> --api-key <livekit_api_key> --api-secret <livekit_api_secret> --record
To see all available options, use
python main.py console --help
. Let me know if you need help with a specific configuration! Sources: livekit-agents/livekit/agents/cli/proto.py
w
Is there any way to provide call metadata via the console command?
t
Hey there! Could you help me understand a bit better what kind of call metadata you’re hoping to provide through the console command? Like, are you thinking about participant details, room settings, or something else? That way, I can give you the best guidance possible.
w
I want to provide arbitrary key/value pairs in the job metadata when using python main.py console so i can test behavior that happens in a real call, when job metadata dictates a lot of different behaviors
t
I don't have the answer you're looking for. You could also try asking your question: • in one of the other Slack channels or • to https://deepwiki.com/livekit/livekit_composite which is trained on all LiveKit source code If you find the answer, please post it here to help others!