Repository navigation
Conversation
The agent now speaks first, introducing itself as the user's helpful assistant and asking how it can help. The greeting scenario checks for the introduction.
Match livekit-examples/agent-starter-python#116: greet the user enthusiastically and offer to help, and align the greeting scenario with it. Co-Authored-By: Claude <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The agent already greets the user when the session starts, with
session.generateReply(). This changes that greeting's instructions to "Enthusiastically greet the user and offer to help." Because it still usesgenerateReply(), the LLM writes the line in the agent's own voice. This matches livekit-examples/agent-starter-python#116.The greeting scenario in
scenarios.yamlnow expects the agent to open by enthusiastically greeting the user and offering to help.Testing:
lk agent simulate text --scenarios scenarios.yaml: 3 of 3 passed. The agent opened with "Hello there! I am so excited to help you today. What can I do for you?"pnpm format:check,pnpm lint, andpnpm typecheckpass.src/agent.test.tshas no active tests, sopnpm testreports "No test suite found", as it does onmain.