Skip to content

Conversation

@tconley1428
Copy link
Contributor

What was changed

Changed the agent conversion logic to keep "to be replaced" agents in memory so they can be replaced in looping handoffs

Why?

Without this, when a handoff loops back to an earlier agent, it will not have had its model replaced, resulting in an attempt to use a standard model rather than the temporal wrapper

Checklist

  1. Closes

  2. How was this tested:
    New end to end scenario on customer service and unit test of conversion.

  3. Any docs updates needed?

@tconley1428 tconley1428 requested a review from a team as a code owner September 25, 2025 17:17
Copy link
Contributor

@dandavison dandavison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, approved but I do think the instances should be used directly in the hash table lookup unless there's a reason not to.

@tconley1428 tconley1428 merged commit fd51efa into main Sep 25, 2025
27 of 28 checks passed
@tconley1428 tconley1428 deleted the openai/fix_handoff_loops branch September 25, 2025 20:14
robholland added a commit to robholland/oai-temporal-wealth-management that referenced this pull request Sep 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants