Files
nc-talk-ai/lib/Webhook/IncomingTalkMessage.php
Pascal Kienast 0739d3da6a Initial open-source release of Talk AI
Talk AI is a multi-bot AI assistant manager for Nextcloud Talk:
per-bot prompts and models, agentic tool calling (MCP + built-in
tools), RAG over Nextcloud files, room-document search, vision and
speech-to-text attachments, persistent bot wikis, approval workflows,
rate limiting, and multi-provider LLM support (any OpenAI-compatible
endpoint).

Developed within EDUC - the European Digital UniverCity
(https://educalliance.eu), where it runs as the 'EDUC AI' assistant on
the alliance-wide Nextcloud portal. This public repository is the
upstream point of truth; deployment-specific tools plug in via the
tool-provider extension point (docs/TOOL_PROVIDERS.md).

License: AGPL-3.0-or-later.
2026-07-08 21:13:13 +02:00

62 lines
1.1 KiB
PHP

<?php
declare(strict_types=1);
namespace OCA\EducAI\Webhook;
class IncomingTalkMessage {
/**
* @param array<int,IncomingTalkAttachment> $attachments
*/
public function __construct(
private string $text,
private string $rawText,
private string $roomToken,
private string $actorId,
private int $messageId,
private ?int $inReplyTo = null,
private array $attachments = [],
private ?int $threadRootMessageId = null
) {
}
public function getText(): string {
return $this->text;
}
public function getRawText(): string {
return $this->rawText;
}
public function getRoomToken(): string {
return $this->roomToken;
}
public function getActorId(): string {
return $this->actorId;
}
public function getMessageId(): int {
return $this->messageId;
}
public function getInReplyTo(): ?int {
return $this->inReplyTo;
}
public function getThreadRootMessageId(): ?int {
return $this->threadRootMessageId;
}
/**
* @return array<int,IncomingTalkAttachment>
*/
public function getAttachments(): array {
return $this->attachments;
}
public function hasAttachments(): bool {
return $this->attachments !== [];
}
}