feat: agent platform initial commit
- FastAPI + HTMX UI: dashboard, agents CRUD, chat, audit, tools - SQLite schema: agents, conversations, messages, audit, sessions - Code-agent sync (agents/*.py -> DB on startup) - MCP client with health check - Token auth (Bearer + session) - LiteLLM integration via llm.py - Docker Compose: agent-platform + mcp-tools services - Smoke tests pass: /health 200, /api/agents 200, / 401
This commit is contained in:
@@ -0,0 +1,69 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Dashboard – Agent Platform{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="page-header">
|
||||
<h1>Dashboard</h1>
|
||||
<p class="subtitle">Übersicht aller Agents und recent Aktivitäten</p>
|
||||
</div>
|
||||
|
||||
<section class="card">
|
||||
<h2>Agents ({{ agents|length }})</h2>
|
||||
{% if agents %}
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Name</th>
|
||||
<th>Beschreibung</th>
|
||||
<th>Status</th>
|
||||
<th>Aktion</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for agent in agents %}
|
||||
<tr>
|
||||
<td><code>{{ agent.id }}</code></td>
|
||||
<td>{{ agent.name }}</td>
|
||||
<td>{{ agent.description }}</td>
|
||||
<td>
|
||||
{% if agent.enabled %}
|
||||
<span class="badge badge-green">aktiv</span>
|
||||
{% else %}
|
||||
<span class="badge badge-red">inaktiv</span>
|
||||
{% endif %}
|
||||
</td>
|
||||
<td><a href="/agents/{{ agent.id }}" class="btn btn-sm">Details</a></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% else %}
|
||||
<div class="empty-state">
|
||||
<p>Noch keine Agents angelegt.</p>
|
||||
<a href="/agents" class="btn btn-primary">Ersten Agent erstellen</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
</section>
|
||||
|
||||
<section class="card">
|
||||
<h2>Schnellstart</h2>
|
||||
<form hx-post="/api/chat" hx-target="#chat-result" class="form">
|
||||
<div class="form-group">
|
||||
<label for="agent_id">Agent wählen</label>
|
||||
<select name="agent_id" id="agent_id" required>
|
||||
{% for agent in agents %}
|
||||
<option value="{{ agent.id }}">{{ agent.name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="message">Nachricht</label>
|
||||
<textarea name="message" id="message" rows="3" required placeholder="Deine Nachricht an den Agent..."></textarea>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary">Senden</button>
|
||||
</form>
|
||||
<div id="chat-result"></div>
|
||||
</section>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user