Skip to content

Commit bf6a5c3

Browse files
committed
Merge remote-tracking branch 'origin/main' into claude/update-starter-system-prompt-KxEmw
2 parents b4237b9 + f661b57 commit bf6a5c3

2 files changed

Lines changed: 16 additions & 8 deletions

File tree

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ FROM ghcr.io/astral-sh/uv:python${PYTHON_VERSION}-bookworm-slim AS base
1010
# the application crashes without emitting any logs due to buffering.
1111
ENV PYTHONUNBUFFERED=1
1212

13+
# Compile Python source to bytecode (.pyc) during install so the first import
14+
# doesn't pay the compilation cost. This reduces agent cold-start time at the
15+
# expense of a slightly longer build.
16+
ENV UV_COMPILE_BYTECODE=1
17+
1318
# --- Build stage ---
1419
# Install dependencies, build native extensions, and prepare the application
1520
FROM base AS build

src/agent.py

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,6 @@ async def my_agent(ctx: JobContext):
127127
# llm=openai.realtime.RealtimeModel(voice="marin")
128128
# )
129129

130-
# # Add a virtual avatar to the session, if desired
131-
# # For other providers, see https://docs.livekit.io/agents/models/avatar/
132-
# avatar = hedra.AvatarSession(
133-
# avatar_id="...", # See https://docs.livekit.io/agents/models/avatar/plugins/hedra
134-
# )
135-
# # Start the avatar and wait for it to join
136-
# await avatar.start(session, room=ctx.room)
137-
138130
# Start the session, which initializes the voice pipeline and warms up the models
139131
await session.start(
140132
agent=Assistant(),
@@ -148,6 +140,17 @@ async def my_agent(ctx: JobContext):
148140
),
149141
)
150142

143+
# # Add a virtual avatar to the session, if desired
144+
# # For other providers, see https://docs.livekit.io/agents/models/avatar/
145+
# avatar = anam.AvatarSession(
146+
# persona_config=anam.PersonaConfig(
147+
# name="...",
148+
# avatarId="...", # See https://docs.livekit.io/agents/models/avatar/plugins/anam
149+
# ),
150+
# )
151+
# # Start the avatar and wait for it to join
152+
# await avatar.start(session, room=ctx.room)
153+
151154
# Join the room and connect to the user
152155
await ctx.connect()
153156

0 commit comments

Comments
 (0)