feat: send_to_session tool – agent-to-agent messaging
- Neues Tool send_to_session: Agent kann Nachrichten in andere Sessions schicken - Ziel-Session per ID oder Name (case-insensitive) auffindbar - User-Message wird nicht in DB gespeichert (wie Cronjob) – keine Bubble im Frontend - Nachricht wird als '[Nachricht von Agent "X"]' kontextualisiert injiziert - Sicherheitscheck: Ziel-Session muss demselben User gehören, keine eigene Session - Zirkuläre Abhängigkeit ChatService ↔ AnthropicService via SetChatService() gelöst - tool-ui.js: Display-Name für send_to_session
This commit is contained in:
1 parent
20d891c9ef
commit
c18b94cd4e
5 files changed
+99
-11
No files matched your search
+6
-2
@@ -57,12 +57,16 @@ var anthropicToken = builder.Configuration["AnthropicToken"] ?? "";
|
||||
var payloadLogging = builder.Configuration.GetValue<bool>("PayloadLogging", false);
|
||||
var payloadLoggingGzip = builder.Configuration.GetValue<bool>("PayloadLoggingGzip", false);
|
||||
builder.Services.AddSingleton<AnthropicService>(sp =>
|
||||
new AnthropicService(
|
||||
{
|
||||
var svc = new AnthropicService(
|
||||
sp.GetRequiredService<IHttpClientFactory>(),
|
||||
anthropicToken, toolService, dbService, memoryService,
|
||||
payloadLogging, payloadLoggingGzip,
|
||||
vectorSearch: vectorSearchService,
|
||||
embeddingBg: embeddingBgService));
|
||||
embeddingBg: embeddingBgService);
|
||||
svc.SetChatService(chatService);
|
||||
return svc;
|
||||
});
|
||||
|
||||
// Telegram Bot (pro Session – Token aus Session-Config)
|
||||
var maxIterations = builder.Configuration.GetValue<int>("MaxIterations", 100);
|
||||
|
||||
Reference in new issue
Block a user