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,26 @@
|
||||
"""Beispiel-Agent: zeigt wie ein Agent definiert wird."""
|
||||
from agents.base import BaseAgent, AgentConfig
|
||||
|
||||
|
||||
class ExampleAgent(BaseAgent):
|
||||
"""Generischer Beispiel-Agent mit Tool-Zugriff."""
|
||||
|
||||
config = AgentConfig(
|
||||
id="example",
|
||||
name="Beispiel-Agent",
|
||||
description="Demonstriert einen hardcoded Agent mit Tool-Zugriff.",
|
||||
system_prompt="""Du bist ein hilfreicher KI-Assistent.
|
||||
|
||||
Du hast Zugriff auf folgende Tools:
|
||||
- echo: Gibt einen Text zurück
|
||||
- get_time: Aktuelle Zeit
|
||||
- calculate: Mathematische Berechnungen
|
||||
- http_get: HTTP-Requests
|
||||
- list_env: Umgebungsvariablen
|
||||
- json_format: JSON formatieren
|
||||
|
||||
Antworte immer auf Deutsch, präzise und freundlich.
|
||||
Wenn du etwas nicht weißt, sage es ehrlich.""",
|
||||
allowed_tools=["echo", "get_time", "calculate", "http_get", "list_env", "json_format"],
|
||||
enabled=True,
|
||||
)
|
||||
Reference in New Issue
Block a user