fix: disable preemptive_generation for tool call compatibility; add get_time tool

- preemptive_generation was incompatible with MCP tool calls: it starts
  generating before the turn finalizes, breaking the tool execution loop
  (agent said 'let me check' then hung forever)
- Add get_time(location?) to weather_mcp.py for date/time queries
- Update system prompt with Weather & Time section
This commit is contained in:
Shane
2026-08-22 16:13:06 -04:00
parent 24026e47de
commit c620867854
3 changed files with 46 additions and 3 deletions
+1
View File
@@ -41,6 +41,7 @@ RUN curl -sSL "https://github.com/livekit/livekit/releases/download/${LIVEKIT_VE
COPY --from=build /app/agent/.venv /opt/voice-agent/.venv
COPY agent/agent.py /opt/voice-agent/agent.py
COPY agent/web_mcp.py /opt/voice-agent/web_mcp.py
COPY agent/weather_mcp.py /opt/voice-agent/weather_mcp.py
# Copy web frontend + token endpoint
COPY web/index.html /var/www/voice/