Skip to content

Commit 748443b

Browse files
committed
Cleanup
1 parent 2420b92 commit 748443b

File tree

3 files changed

+7
-39
lines changed

3 files changed

+7
-39
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,13 @@ lk app env -w .env
4444

4545
## Run the agent
4646

47-
Run this command to speak to your agent directly in your terminal:
47+
Before your first run, you must download certain models such as [Silero VAD](https://docs.livekit.io/agents/build/turns/vad/) and the [LiveKit turn detector](https://docs.livekit.io/agents/build/turns/turn-detector/):
48+
49+
```console
50+
uv run python src/agent.py download-files
51+
```
52+
53+
Next, run this command to speak to your agent directly in your terminal:
4854

4955
```console
5056
uv run python src/agent.py console

pyproject.toml

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -21,27 +21,6 @@ dev = [
2121
"ruff",
2222
]
2323

24-
# TODO: Remove these once agents 1.2 is released
25-
# If you run into git lfs smudge issues when doing `uv sync`, do this:
26-
# ```
27-
# uv cache clean
28-
# UV_GIT_LFS=1 uv sync
29-
# ```
30-
[tool.uv.sources]
31-
# livekit-agents = { git = "https://github.com/livekit/agents.git", branch = "theo/agents1.2", subdirectory = "livekit-agents" }
32-
# livekit-plugins-openai = { git = "https://github.com/livekit/agents.git", branch = "theo/agents1.2", subdirectory = "livekit-plugins/livekit-plugins-openai" }
33-
# livekit-plugins-turn-detector = { git = "https://github.com/livekit/agents.git", branch = "theo/agents1.2", subdirectory = "livekit-plugins/livekit-plugins-turn-detector" }
34-
# livekit-plugins-silero = { git = "https://github.com/livekit/agents.git", branch = "theo/agents1.2", subdirectory = "livekit-plugins/livekit-plugins-silero" }
35-
# livekit-plugins-cartesia = { git = "https://github.com/livekit/agents.git", branch = "theo/agents1.2", subdirectory = "livekit-plugins/livekit-plugins-cartesia" }
36-
# livekit-plugins-deepgram = { git = "https://github.com/livekit/agents.git", branch = "theo/agents1.2", subdirectory = "livekit-plugins/livekit-plugins-deepgram" }
37-
livekit-agents = { path = "../../livekit/agents/livekit-agents" }
38-
livekit-plugins-openai = { path = "../../livekit/agents/livekit-plugins/livekit-plugins-openai" }
39-
livekit-plugins-turn-detector = { path = "../../livekit/agents/livekit-plugins/livekit-plugins-turn-detector" }
40-
livekit-plugins-silero = { path = "../../livekit/agents/livekit-plugins/livekit-plugins-silero" }
41-
livekit-plugins-cartesia = { path = "../../livekit/agents/livekit-plugins/livekit-plugins-cartesia" }
42-
livekit-plugins-deepgram = { path = "../../livekit/agents/livekit-plugins/livekit-plugins-deepgram" }
43-
44-
4524
[tool.setuptools.packages.find]
4625
where = ["src"]
4726

src/agent.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
WorkerOptions,
1414
cli,
1515
metrics,
16-
workflows,
1716
)
1817
from livekit.agents.llm import function_tool
1918
from livekit.agents.voice import MetricsCollectedEvent
@@ -50,22 +49,6 @@ async def lookup_weather(self, context: RunContext, location: str):
5049

5150
return "sunny with a temperature of 70 degrees."
5251

53-
@function_tool
54-
async def send_email(self, context: RunContext, subject: str, body: str):
55-
"""Use this tool to send an email on behalf of the user.
56-
57-
Args:
58-
subject: The subject of the email
59-
body: The body of the email
60-
"""
61-
62-
email_result = await workflows.GetEmailAgent(chat_ctx=self.chat_ctx)
63-
send_to_email_address = email_result.email_address
64-
65-
await asyncio.sleep(1) # simulate sending the email
66-
return "Email sent to " + send_to_email_address
67-
68-
6952
def prewarm(proc: JobProcess):
7053
proc.userdata["vad"] = silero.VAD.load()
7154

0 commit comments

Comments
 (0)