Skip to content

AsyncConfig import problem #2216

Description

@JoeMountWSWS

Describe the bug
Import errors with AsyncConfig due to unfamiliar module structure.

To Reproduce

This works:

>>> from deepeval.evaluate.configs import AsyncConfig
>>> AsyncConfig()
AsyncConfig(run_async=True, throttle_value=0, max_concurrent=20)

This errors:

>>> import deepeval.evaluate.configs
>>> deepeval.evaluate.configs.AsyncConfig()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'function' object has no attribute 'configs'

Expected behavior

>>> import deepeval.evaluate.configs
>>> deepeval.evaluate.configs.AsyncConfig()
AsyncConfig(run_async=True, throttle_value=0, max_concurrent=20)

Desktop (please complete the following information):

  • OS: Windows 10
  • Deepeval 3.4.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions