Backup #1121
| ID | 1121 |
| Dateipfad | /var/www/dev.campus.systemische-tools.de/src/Domain/Repository/ChatMessageRepositoryInterface.php |
| Version | 2 |
| Typ |
modified |
| Größe | 1.3 KB |
| Hash | c263f552557c246bd8d90c83ed9489d44541ca85831346b31e80e1e5efbe6dfe |
| Datum | 2025-12-25 09:36:38 |
| Geändert von | claude-code-hook |
| Grund | Claude Code Pre-Hook Backup vor Edit-Operation |
| Datei existiert |
Ja
|
Dateiinhalt
<?php
declare(strict_types=1);
namespace Domain\Repository;
// @responsibility: Vertrag für Chat-Nachrichten-Persistenz
interface ChatMessageRepositoryInterface
{
/**
* Find messages by session ID.
*
* @return array<int, array<string, mixed>>
*/
public function findBySessionId(int $sessionId): array;
/**
* Save a message.
*
* @param array<string>|null $sources
*/
public function save(
int $sessionId,
string $role,
string $content,
string $model,
?int $tokensInput = null,
?int $tokensOutput = null,
?array $sources = null,
?float $startMicrotime = null,
?float $endMicrotime = null,
?int $authorProfileId = null,
?int $systemPromptId = null,
?string $collectionsJson = null,
?int $contextLimit = null
): int;
/**
* Delete message by ID.
*/
public function delete(int $id): void;
/**
* Delete all messages for a session.
*/
public function deleteBySessionId(int $sessionId): void;
/**
* Get message statistics for a session.
*
* @return array{message_count: int, total_input_tokens: int, total_output_tokens: int, total_duration: float}
*/
public function getSessionStats(int $sessionId): array;
}
Vollständig herunterladen
Aktionen
Andere Versionen dieser Datei
| ID |
Version |
Typ |
Größe |
Datum |
| 2098 |
4 |
modified |
1.6 KB |
2025-12-29 08:44 |
| 2022 |
3 |
modified |
1.5 KB |
2025-12-28 23:20 |
| 1121 |
2 |
modified |
1.3 KB |
2025-12-25 09:36 |
| 800 |
1 |
modified |
1.3 KB |
2025-12-23 08:07 |
← Zurück zur Übersicht