Skip to content

fix: unify memory optional dependency import errors#3389

Merged
seratch merged 1 commit into
mainfrom
fix/memory-optional-import-errors
May 13, 2026
Merged

fix: unify memory optional dependency import errors#3389
seratch merged 1 commit into
mainfrom
fix/memory-optional-import-errors

Conversation

@seratch
Copy link
Copy Markdown
Member

@seratch seratch commented May 13, 2026

This pull request fixes optional dependency import errors for memory extension backends so package-level imports and direct submodule imports both point users to the correct openai-agents[...] extra.

It centralizes memory optional dependency error construction in src/agents/extensions/memory/_optional_imports.py, updates Redis, Dapr, and MongoDB sessions to use that shared helper, and simplifies agents.extensions.memory.__getattr__ so it only fills in missing-dependency hints when the backing module does not already provide one. It also adds import-path regression coverage for both package lazy exports and direct module imports.

@seratch seratch added this to the 0.17.x milestone May 13, 2026
@seratch seratch merged commit ec016cd into main May 13, 2026
10 checks passed
@seratch seratch deleted the fix/memory-optional-import-errors branch May 13, 2026 02:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant