fix: set agent_name via rtc_session decorator, revert CLI flag

AgentServer in livekit-agents 1.4.x does not support --agent-name CLI
flag. The agent_name must be set on @server.rtc_session() decorator.
Also reverts docker-compose.yml command back to plain python agent.py start.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Christian Gick
2026-02-15 17:25:34 +02:00
parent d5af90c7c7
commit 2917f6515a
2 changed files with 2 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
services:
agent:
build: .
command: python agent.py start --agent-name matrix-ai
command: python agent.py start
env_file: .env
restart: unless-stopped
network_mode: host