Skip to content
Open
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
6 changes: 3 additions & 3 deletions scenarios.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ scenarios:
1. After the assistant replies, ask: "What can you help me with?"
2. Once it answers, say thanks and end the conversation.
agent_expectations: >
Greets the user in a friendly manner and offers to help. Replies are
brief, one to three sentences, in plain spoken prose with no lists,
markdown, or emojis.
Opens the conversation by enthusiastically greeting the user and offering
to help. Replies are brief, one to three sentences, in plain spoken prose
with no lists, markdown, or emojis.
tags:
feature: greeting

Expand Down
5 changes: 5 additions & 0 deletions src/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,11 @@ async def my_agent(ctx: JobContext):
# Join the room and connect to the user
await ctx.connect()

# Speak first: greet the user before they say anything
await session.generate_reply(
instructions="Enthusiastically greet the user and offer to help."
)


if __name__ == "__main__":
cli.run_app(server)
Loading