{% extends "base.html" %} {% block title %}Agents - Memorizz{% endblock %} {% block content %}
Create Agent
{% if agents %}
{% for agent in agents %} {% set agent_id_value = agent.agent_id|string %} {% set agent_display_name = agent.name if agent.name else (agent.persona.name if agent.persona and agent.persona.name else 'Agent') %} {% set agent_is_favorite = agent.is_favorite if agent and agent.is_favorite is not none else false %} {% set thread_rows = agent_threads.get(agent_id_value, []) %} {% set selected_memory_id = agent_default_memory_ids.get(agent_id_value, '') %}

{{ agent_display_name }}

{{ agent_id_value[:12] }}...
Mode: {{ agent.application_mode or 'assistant' }}
{% if agent.memory_ids %}
Memories: {{ agent.memory_ids|length }}
{% endif %} {% if agent.persona and agent.persona.role %}
Role: {{ agent.persona.role }}
{% endif %} {% if agent.max_steps %}
Max Tool Iterations: {{ agent.max_steps }}
{% endif %}
Tools: {{ agent_tool_counts.get(agent_id_value, (agent.tools or [])|length) }}
{% if agent.instruction %}

{{ agent.instruction[:150] }}{% if agent.instruction|length > 150 %}...{% endif %}

{% endif %}
{% if thread_rows|length > 1 %} {% elif selected_memory_id %} Latest thread {% endif %}
{% set recent = agent_recent_messages.get(agent_id_value, []) %} {% if recent %} {% for msg in recent %}
{{ msg.content or msg.get('text', '') }}
{% endfor %} {% else %}
Send a message to start chatting…
{% endif %}
{% endfor %}
{% else %}

No Agents Found

There are no agents stored in this memory provider.

{% endif %} {% endblock %}