Skip to content

MAINT: Remove deprecated RealtimeTarget.cleanup_conversation_async - #4425

Merged
Roman Lutz (romanlutz) merged 2 commits into
microsoft:mainfrom
khushi-git-7:maint/4395-realtime-cleanup
Nov 22, 2026
Merged

Roman Lutz (romanlutz) merged 2 commits into
microsoft:mainfrom
khushi-git-7:maint/4395-realtime-cleanup

Conversation

@khushi-git-7

Copy link
Copy Markdown
Contributor

Description

Removes the deprecated RealtimeTarget.cleanup_conversation_async wrapper, due in 1.3.0. Closes #4395.

Copilot AI balanced review requested due to automatic review settings November 19, 2026 15:27

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are reported for the deprecated API removal.

No open issues 🎉

What changed in this PR

Removes the deprecated RealtimeTarget.cleanup_conversation_async API ahead of version 1.3.0, addressing #4395 while preserving reset_conversation_async.

Changes:

  • Removes the deprecated wrapper and its unused deprecation-helper import.
  • Removes the wrapper-specific test.
  • Leaves WebsocketTarget unchanged for the separate work tracked in #4396.
File Description
tests/​unit/​prompt_target/​target/​test_realtime_target.py Removes the deprecated wrapper’s warning-and-delegation test.
pyrit/​prompt_target/​openai/​openai_realtime_target.py Removes cleanup_conversation_async and its unused import.

Review effort: Balanced

@romanlutz
Roman Lutz (romanlutz) added this pull request to the merge queue Nov 22, 2026
Merged via the queue into microsoft:main with commit eea52db Nov 22, 2026
66 checks passed
@khushi-git-7

Copy link
Copy Markdown
Contributor Author

Thanks for the review and the merge, Roman Lutz (@romanlutz).

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.

MAINT: Remove deprecated RealtimeTarget.cleanup_conversation_async (due in 1.3.0)

3 participants