{% extends "base.html" %} {% block title %}Agent - Memorizz{% endblock %} {% block content %} {% if error %}
! {{ error }}
{% endif %} {% if agent %}
Agent

{% if agent.persona and agent.persona.name %} {{ agent.persona.name }} {% else %} Agent {% endif %}

{{ agent.application_mode or 'assistant' }} Max tool iterations: {{ agent.max_steps or 20 }} {% if agent.persona and agent.persona.role %} Role: {{ agent.persona.role }} {% endif %} {{ agent.agent_id }}
{{ context_window|length }} messages
{% if context_window %}
{% for msg in context_window %}
{% if msg.role == 'user' %}👤{% elif msg.role == 'assistant' %}🤖{% elif msg.role == 'tool' %}🔧{% else %}📝{% endif %}
{{ msg.role|default('Unknown')|title }} {% if msg.timestamp %} {{ msg.timestamp }} {% endif %}
{{ msg.content or msg.get('text', 'No content') }}
{% endfor %}
{% else %}
💬

No conversation history

Run a conversation with this agent to see messages here

{% endif %} {% if run_response %}
Latest response
{{ run_response }}
{% endif %}
{% if run_error %}
! {{ run_error }}
{% endif %}
{% else %}

Agent Not Found

The requested agent could not be found.

Back to Agents
{% endif %} {% endblock %}