Program ID: {{ program_data.id }}
- Checkpoint: {{checkpoint_dir}}
- Island: {{ program_data.island }}
- Generation: {{ program_data.generation }}
- Parent ID: {{ program_data.parent_id or 'None' }}
- Metrics:
{% for key, value in program_data.metrics.items() %}
- {{ key }}: {{ value }}
{% endfor %}
Code:
{{ program_data.code }}
Prompts:
{#-- recursive “display” macro --#}
{% macro display(val) %}
{% if val is mapping %}
{% for k, v in val.items() %}
-
{{ k|e }}:
{{ display(v) }}
{% endfor %}
{% elif val is sequence and not val is string %}
{% for item in val %}
- {{ display(item) }}
{% endfor %}
{% else %}
{{ val|e }}
{% endif %}
{% endmacro %}
{#-- loop over every prompts --#}
{% for key, value in program_data.prompts.items() %}
{{ key|title }}
{{ display(value) }}
{% endfor %}
{% if artifacts_json %}
Artifacts:
{{ artifacts_json }}
{% endif %}