You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(beeai): handle removal of experimental features
Adds TYPE_CHECKING guards and try/except ImportError handling to gracefully
handle beeai-framework versions that removed experimental.agent and
experimental.requirements modules. This follows the existing pattern in
beeai's ProcessorLocator which uses contextlib.suppress(ImportError) to
handle optional framework components.
Unlike ProcessorLocator's optional registration pattern, these processors
require fallback values (None) when experimental features are unavailable,
making try/except more appropriate than contextlib.suppress.
Fixes mypy attr-defined errors in py311-ci-beeai and py311-ci-beeai-latest.
Signed-off-by: Adrian Cole <[email protected]>
Copy file name to clipboardExpand all lines: python/instrumentation/openinference-instrumentation-beeai/src/openinference/instrumentation/beeai/processors/agents/requirement_agent.py
Copy file name to clipboardExpand all lines: python/instrumentation/openinference-instrumentation-beeai/src/openinference/instrumentation/beeai/processors/locator.py
Copy file name to clipboardExpand all lines: python/instrumentation/openinference-instrumentation-beeai/src/openinference/instrumentation/beeai/processors/requirement.py
0 commit comments