Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: livekit-examples/python-agents-examples
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: livekit-examples/python-agents-examples
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: tina/update-gh-button-xai
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 3 commits
  • 3 files changed
  • 2 contributors

Commits on Aug 25, 2026

  1. Link the GitHub button to the example source

    The showcase renders a GitHub button in two places -- "Clone agent" on the
    agent card and in the conversation header -- but both are gated on
    `agent.repoUrl`, which the patient intake entry never set, so neither
    button appeared.
    
    Points it at the example directory on main, which is where the merged
    example now lives. The tree URL covers both halves (worker and frontend)
    rather than deep-linking to either one, since the button offers the whole
    agent to clone.
    
    Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
    tinalenguyen and claude committed Aug 25, 2026
    Configuration menu
    Copy the full SHA
    24f3929 View commit details
    Browse the repository at this point in the history
  2. Stop the front desk repeating its acknowledgements

    A console session opened two consecutive turns with "Of course." -- once
    into "have you been seen here before?", then again into the name and date
    of birth question. Two turns in, the caller is talking to a script.
    
    Two halves to the fix. The reception prompt suggested one of those lines
    verbatim ("A natural next line is simply: 'Of course. What's your full
    name and date of birth?'"), which is where the second one came from; the
    surrounding paragraph already says what the turn has to accomplish, so
    the example only served to seed a stock phrase. The expressive prompt now
    states the rule directly, next to the base template's matching rule for
    non-verbal sounds ("never the same one twice in a row").
    
    Deployed to demo-agents as Y6audAqmA3av to hear it on a live call.
    
    Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
    tinalenguyen and claude committed Aug 25, 2026
    Configuration menu
    Copy the full SHA
    4b284c8 View commit details
    Browse the repository at this point in the history
  3. Say "you" to the caller, and stop thanking them every turn

    Two complaints from live calls, one root cause each.
    
    The agent kept saying "the patient" to a caller who had just said they
    were the patient. The instructions taught it that: the reception prompt
    said "ask for the patient's full name and date of birth", "ask for the
    patient's last name", "know whether the patient has been here before",
    "get the patient's full first and last name" -- four operative lines in
    the third person against a single counter-rule in the voice prompt. A
    prompt leaks its own register, so those lines are rewritten to say
    "their", and the voice rule is now a stance held for the whole call
    rather than a naming convention for one question. The reception prompt
    also only said to *remember* who the patient is; it now says to let that
    show in the next thing you say.
    
    The agent also opened nearly every turn with "thanks". Nothing seeded the
    word -- it is just the default receipt token, and the previous rule
    ("never open two turns in a row with the same acknowledgement") mandated
    variety without ever making an acknowledgement optional, so the model
    rotated politely through synonyms forever. Intake is a long series of
    fact receipts, which is why it was audible on every turn. The rule now
    starts from silence: most turns need none, and the no-repeat rule applies
    only where one is earned.
    
    The rule moves from the expressive prompt to the voice prompt. It governs
    word choice in the reply, not delivery of it, so it belongs in the agent
    instructions -- and it stays in force regardless of how expressive is
    configured.
    
    Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
    tinalenguyen and claude committed Aug 25, 2026
    Configuration menu
    Copy the full SHA
    c39212a View commit details
    Browse the repository at this point in the history
Loading