Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/other/elevenlab_scribe_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ async def entrypoint(ctx: JobContext):
agent=Agent(instructions="You are a somewhat helpful assistant."), room=ctx.room
)

await session.say("Hello, how can I help you?")
await session.say("Hello, how can I help you?", allow_interruptions=False)


def prewarm(proc: JobProcess):
Expand Down
3 changes: 2 additions & 1 deletion examples/voice_agents/basic_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ def __init__(self) -> None:
async def on_enter(self):
# when the agent is added to the session, it'll generate a reply
# according to its instructions
self.session.generate_reply()
# Keep it uninterruptible so the client has time to calibrate AEC (Acoustic Echo Cancellation).
self.session.generate_reply(allow_interruptions=False)

# all functions annotated with @function_tool will be passed to the LLM when this
# agent is active
Expand Down
2 changes: 1 addition & 1 deletion examples/voice_agents/llamaindex-rag/chat_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ async def entrypoint(ctx: JobContext):
session = AgentSession()
await session.start(agent=agent, room=ctx.room)

await session.say("Hey, how can I help you today?", allow_interruptions=True)
await session.say("Hey, how can I help you today?", allow_interruptions=False)


if __name__ == "__main__":
Expand Down
2 changes: 1 addition & 1 deletion examples/voice_agents/llamaindex-rag/query_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ async def entrypoint(ctx: JobContext):
session = AgentSession()
await session.start(agent=agent, room=ctx.room)

await session.say("Hey, how can I help you today?", allow_interruptions=True)
await session.say("Hey, how can I help you today?", allow_interruptions=False)


if __name__ == "__main__":
Expand Down
2 changes: 1 addition & 1 deletion examples/voice_agents/llamaindex-rag/retrieval.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ async def entrypoint(ctx: JobContext):
session = AgentSession()
await session.start(agent=agent, room=ctx.room)

await session.say("Hey, how can I help you today?", allow_interruptions=True)
await session.say("Hey, how can I help you today?", allow_interruptions=False)


if __name__ == "__main__":
Expand Down