{% extends "base.html" %}
{% block title %}{{ form_title|capitalize }} - Memorizz{% endblock %}
{% block head %}
{% endblock %}
{% block content %}
{% macro section_summary(key, title, description) %}
{{ title }}{{ description }}
{% endmacro %}
{% from '_ui.html' import page_header, id_chip %}
{% set form_back = ('/agents/' ~ agent_id ~ '/playground', 'Agent playground') if is_edit else ('/agents', 'All agents') %}
{% if is_edit %}
{% call page_header(form_title|capitalize, 'Instructions, model, memory, tools and runtime. Every setting here has a Python SDK equivalent.', 'Agents', back=form_back) %}
Agent ID{{ id_chip(agent_id|string, 40) }}
{% endcall %}
{% else %}
{{ page_header(form_title|capitalize, 'Instructions, model, memory, tools and runtime. Every setting here has a Python SDK equivalent.', 'Agents', back=form_back) }}
{% endif %}
{% if error %}
! {{ error }}
{% endif %}
{% if template_notice %}
{{ template_notice }}
{% endif %}
{% if not is_edit and agent_templates %}
Start from a templateFills in the form below for you to review. Make your own with Save as template at the bottom.{{ agent_templates|length }} templates
{% for template in agent_templates %}
{% if template.builtin %}{{ template.category }}{% else %}Yours{% endif %}
{% if not template.builtin %}
{% endif %}
{{ template.title }}
{% if template.summary %}
{{ template.summary }}
{% endif %}
{% if template.chips or template.warning %}