-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Python: Allow hosted checkpoints to restore MessageRole #6049
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The four new tests exercise |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Worth pinning the resolved string in a test? At runtime this is
azure.ai.agentserver.responses.models._generated.sdk.models.models._enums:MessageRole. If the azure SDK ever re-homes the enum,__module__would silently change and the allowlist key would still match the new pickle GLOBAL, so this is robust today, but a one-lineassert _AZURE_RESPONSES_MESSAGE_ROLE_TYPE == "..."would catch the inverse case (re-export path stays the same but the canonical module moves and pickledmodule:qualnameshifts).