Skip to content

Commit 2c0b2ab

Browse files
committed
Final push
1 parent 96a8c56 commit 2c0b2ab

File tree

3 files changed

+311
-675
lines changed

3 files changed

+311
-675
lines changed

cli/agentic.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import speech_recognition as sr
1010
import json
1111

12+
1213
el_client = ElevenLabs(api_key="REPLACEME")
1314
out_stream = pyaudio.PyAudio().open(
1415
format=pyaudio.paInt16,
@@ -21,7 +22,6 @@
2122

2223
BEEP_SOUND = pathlib.Path("beep.wav").read_bytes()
2324
ALL_PATHWAYS = pathlib.Path("pathways(out).txt").read_text()
24-
ELEVENLABS_KEY = ""
2525

2626
MAIN_PROMPT = """
2727
You are an advanced medical assistant AI. Your primary function is to conduct an initial triage based on user-reported symptoms. Your responses must adhere strictly to the specified JSON format.
@@ -139,6 +139,7 @@ def get_agent(voice: bool = False):
139139
model=llm,
140140
prompt=MAIN_PROMPT,
141141
tools=[ask_user_voice if voice else ask_user],
142+
debug=True,
142143
)
143144
return agent
144145

@@ -169,7 +170,7 @@ def voice():
169170
"""
170171
Run the bot in text mode.
171172
"""
172-
agent = get_agent()
173+
agent = get_agent(voice=True)
173174

174175
for chunk in el_client.text_to_speech.convert_as_stream(
175176
voice_id="khYwAWwYSjlxlcrwGQ16",

0 commit comments

Comments
 (0)