{% 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
{% if not chat_enabled %}
Chat is not enabled on this server, so agents cannot be managed here. Enable it with SIMPLEAUDIT_CHAT=embedded.
{% else %}
{% csrf_token %}
Identity
{% if agent and chat_enabled %}
Chat availability {% if agent.external_id %} {% endif %} 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 {% if system_prompts %}
System Prompt

Pick one prompt to fill the box below; open Versions to choose an older one. Type your own to override.

{% for sp in system_prompts %}{% if sp.version_list %}
{% for v in sp.version_list %}
View ↗
{% endfor %}
{% endif %}{% endfor %}
{% endif %}
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 %}
{% endif %}
{% if agent and chat_enabled and agent.external_id %}

Expose via API

Point any OpenAI-compatible client at this endpoint with your personal API key. The key acts as you — it can only call agents you can see.

Endpoint base URL

Model ID

Personal API key

—

Example (Python)


    
{% endif %} {% endblock %}