Create soul.html template
This commit is contained in:
45
src/dashboard/templates/soul.html
Normal file
45
src/dashboard/templates/soul.html
Normal file
@@ -0,0 +1,45 @@
|
||||
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Soul Management - Timmy Dashboard{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="container py-4">
|
||||
<div class="d-flex justify-content-between align-items-center mb-4">
|
||||
<div>
|
||||
<h1 class="h3 mb-0">Soul Management</h1>
|
||||
<p class="text-muted">Define the core identity, values, and personality of your agent.</p>
|
||||
</div>
|
||||
<a href="/" class="btn btn-outline-secondary btn-sm">Back to Dashboard</a>
|
||||
</div>
|
||||
|
||||
<div class="card shadow-sm">
|
||||
<div class="card-header bg-white py-3">
|
||||
<h5 class="card-title mb-0">Core Identity (soul.md)</h5>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<form hx-post="/system/soul/update" hx-swap="none" hx-on::after-request="if(event.detail.successful) alert('Soul updated successfully!')">
|
||||
<div class="mb-3">
|
||||
<label for="soulContent" class="form-label">Soul Content (Markdown)</label>
|
||||
<textarea class="form-control font-monospace" id="soulContent" name="content" rows="20" placeholder="# Agent Identity..." style="font-size: 0.9rem;">{{ soul_content }}</textarea>
|
||||
<div class="form-text">This content is injected into the agent's system prompt to define its core persona.</div>
|
||||
</div>
|
||||
<div class="d-flex justify-content-end">
|
||||
<button type="submit" class="btn btn-primary">Save Changes</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mt-4">
|
||||
<div class="alert alert-info">
|
||||
<h6 class="alert-heading">What is the Soul?</h6>
|
||||
<p class="mb-0 small">
|
||||
The Soul (<code>soul.md</code>) is the most fundamental layer of the agent's memory.
|
||||
Unlike episodic memories or facts, the Soul defines <strong>who</strong> the agent is, its primary mission,
|
||||
and its ethical boundaries. It is always prioritized in the agent's thinking process.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user