awslabs / agent-evaluation

A generative AI-powered framework for testing virtual agents.
https://awslabs.github.io/agent-evaluation/
Apache License 2.0
118 stars 20 forks source link

Unable to import TargetResponse from 'agenteval.targets' #52

Closed tengfone closed 6 months ago

tengfone commented 6 months ago

Whenever I import the line from agenteval.targets import BaseTarget, TargetResponse , i get the error:

ImportError: cannot import name 'TargetResponse' from 'agenteval.targets' (/opt/conda/lib/python3.10/site-packages/agenteval/targets/__init__.py)

Upon checking the source file, the TargetResponse does not exist on the folder level, importing this way works:

from agenteval.targets import BaseTarget
from agenteval.target_response import TargetResponse

If possible please update the user guide here

tonykchen commented 6 months ago

@tengfone Thanks for raising this! We will work on the fix.