{% extends "base.html" %} {% load json_filters %} {% block title %}{% if agent %}Edit {{ agent.name }}{% else %}New Agent{% endif %} — SimpleAudit{% endblock %} {% block content %}

{% if agent %}Edit Agent{% else %}New Agent{% endif %}

← Back to agents
{% csrf_token %}
Identity
{% if agent and chat_enabled %}
Chat availability Test in Chat {% if agent.external_id %} {% if openwebui_live %}

● Synced as model {{ openwebui_live.model_id }} {% if openwebui_live.base_model_id %} inheriting {{ openwebui_live.base_model_id }}{% endif %} {% if openwebui_live.knowledge %} · {{ openwebui_live.knowledge|length }} knowledge base{{ openwebui_live.knowledge|length|pluralize }} {% endif %}

{% else %}

⚠ Registered in Studio as {{ agent.external_id }}, but the chat entry is not reachable right now. Save the agent to retry the sync.

{% endif %} {% else %}

Not available in chat yet — saving this agent will publish it there.

{% endif %}
{% endif %}
Base Model
Instructions
Knowledge Bases {% if chat_enabled %} + New {% endif %}
{% if knowledge_bases %}
{% for kb in knowledge_bases %} {% endfor %}
{% else %}

No knowledge bases yet. Click Sync to pull the latest resources.

{% endif %}
{% if openwebui_rag %}
Global retrieval configuration

Configured by a platform admin. These values apply to all agents; this page does not edit them.

Embedding
{{ openwebui_rag.embedding_engine|default:"local" }} · {{ openwebui_rag.embedding_model|default:"default" }}
Splitter
{{ openwebui_rag.text_splitter|default:"default" }}
Chunks
{{ openwebui_rag.chunk_size|default:"—" }} / {{ openwebui_rag.chunk_overlap|default:"—" }}
Top K
{{ openwebui_rag.top_k|default:"—" }}
Hybrid search
{% if openwebui_rag.hybrid_search %}On{% else %}Off{% endif %}
Reranking
{{ openwebui_rag.reranking_model|default:"Off" }}
Full context
{% if openwebui_rag.full_context %}On{% else %}Off{% endif %}
Extraction
{{ openwebui_rag.content_extraction_engine|default:"default" }}
{% endif %}
Retrieval

These query-time settings apply only to this agent. Embedding and chunking remain platform-wide.

Tools {% if chat_enabled %} + New {% endif %}
{% if tools %}
{% for tool in tools %} {% endfor %}
{% else %}

No tools yet. Click Sync to pull the latest resources.

{% endif %}
Model capabilities

Controls available on this agent's chat model. Knowledge bases and custom tools are selected above.

{% for cap in capability_options %} {% endfor %}
Builtin tools

Controls which platform tools this agent may use. Availability also depends on platform settings and user permissions.

{% for tool in builtin_tool_options %} {% endfor %}
{% endblock %}