@pytest.mark.parametrize('test_file', ['data/test_yaml_stories/test_full_retrieval_intent_story.yml', 'data/test_yaml_stories/test_base_retrieval_intent_story.yml'])
async def test_retrieval_intent(response_selector_agent: Agent, test_file: Text):
    generator = (await _create_data_generator(test_file, response_selector_agent, use_e2e=True))
    test_stories = generator.generate_story_trackers()
    (story_evaluation, num_stories) = (await _collect_story_predictions(test_stories, response_selector_agent, use_e2e=True))
    assert (not story_evaluation.evaluation_store.has_prediction_target_mismatch())
@pytest.mark.parametrize('test_file', ['data/test_yaml_stories/test_full_retrieval_intent_story.yml', 'data/test_yaml_stories/test_base_retrieval_intent_story.yml'])
async def test_retrieval_intent(response_selector_agent: Agent, test_file: Text):
    generator = (await _create_data_generator(test_file, response_selector_agent, use_e2e=True))
    test_stories = generator.generate_story_trackers()
    (story_evaluation, num_stories) = (await _collect_story_predictions(test_stories, response_selector_agent, use_e2e=True))
    assert (not story_evaluation.evaluation_store.has_prediction_target_mismatch())