auto deployment und tests

This commit is contained in:
Christoph K.
2026-03-20 07:07:38 +01:00
parent 0e7aa3e7f2
commit 8163f906cc
12 changed files with 500 additions and 66 deletions

View File

@@ -1,18 +1,26 @@
// agent.go Gemeinsames Interface für alle Agenten
package agents
// HistoryMessage repräsentiert eine vorherige Konversationsnachricht.
type HistoryMessage struct {
Role string // "user" oder "assistant"
Content string
}
// Request enthält die Eingabe für einen Agenten.
type Request struct {
Action string // z.B. "store", "list", "done", "summary"
Args []string // Argumente für die Aktion
Author string // Discord-Username (für Kontext)
Source string // Herkunft (z.B. "discord/#channelID")
Action string // z.B. "store", "list", "done", "summary"
Args []string // Argumente für die Aktion
Author string // Discord-Username (für Kontext)
Source string // Herkunft (z.B. "discord/#channelID")
History []HistoryMessage // Konversationsverlauf (für Chat-Gedächtnis)
}
// Response enthält die Ausgabe eines Agenten.
type Response struct {
Text string // Formattierte Antwort
Error error // Fehler, falls aufgetreten
Text string // Formattierte Antwort
Error error // Fehler, falls aufgetreten
RawAnswer string // Unformatierte LLM-Antwort (für Konversationsverlauf)
}
// Agent ist das gemeinsame Interface für alle Agenten.