Skip to content

fix: absolute import AsyncConfig#2245

Open
JoeMountWSWS wants to merge 1 commit intoconfident-ai:mainfrom
JoeMountWSWS:fix/async-config-import
Open

fix: absolute import AsyncConfig#2245
JoeMountWSWS wants to merge 1 commit intoconfident-ai:mainfrom
JoeMountWSWS:fix/async-config-import

Conversation

@JoeMountWSWS
Copy link

@JoeMountWSWS JoeMountWSWS commented Oct 26, 2025

Proposed resolution for issue #2216

Export config classes from top-level deepeval package

Exposes AsyncConfig, DisplayConfig, CacheConfig, and ErrorConfig directly from the deepeval package for
easier imports, resolving confusion around module structure.

Changes

  • deepeval/init.py: Added config classes to public API and all exports
  • tests/test_core/test_imports.py: Added tests verifying new import patterns work correctly
  • docs/docs/evaluation-flags-and-configs.mdx: Updated documentation to use cleaner import syntax

Migration

Before:

from deepeval.evaluate.configs import AsyncConfig
from deepeval import evaluate

After (recommended):

from deepeval import AsyncConfig, evaluate

Notes

  • Both import patterns work and are fully backward compatible
  • No breaking changes to existing code
  • Follows Python best practices for package structure
  • All tests passing (11/11 import tests)

@vercel
Copy link

vercel bot commented Oct 26, 2025

@JoeMountWSWS is attempting to deploy a commit to the Confident AI Team on Vercel.

A member of the Team first needs to authorize it.

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.

1 participant