Question name: {{ question }}
{% for exception_message in exceptions %}
Exception: {{ exception_message.name }}
Interview ID (index in results) {{ index }}
Question name {{ question }}
Question type {{ exception_message.question_type }}
Human-readable question {{ interview.survey._get_question_by_name(question).html( scenario = interview.scenario, agent = interview.agent, answers = exception_message.answers ) }}
User Prompt
{{ exception_message.rendered_prompts['user_prompt'] }}
Scenario {{ interview.scenario.__repr__() }}
Agent {{ interview.agent.__repr__() }}
System Prompt
{{ exception_message.rendered_prompts['system_prompt'] }}
Inference service {{ interview.model._inference_service_ }}
Model name {{ interview.model.model }}
Model parameters {{ interview.model.__repr__() }}
Raw model response
{{ exception_message.raw_model_response }}
Generated token string (at {{ exception_message.key_sequence }}) in raw response
{{ exception_message.generated_token_string }}
Code likely to reproduce the error
{% if exception_message.exception.__class__.__name__ == 'QuestionAnswerValidationError' %}

Answer validation details

{% for field, (open_tag, close_tag, value) in exception_message.exception.to_html_dict().items() %} {% endfor %}
{{ field }} <{{ open_tag }}> {{ value | escape }} <{{ close_tag }}>
{% endif %}

Time: {{ exception_message.time }}
Traceback:
{{ exception_message.traceback }}
{% endfor %}