<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\AI\McpSdk\Server;

use Symfony\AI\McpSdk\Exception\ExceptionInterface;
use Symfony\AI\McpSdk\Message\Notification;

/**
 * @author Christopher Hertel <mail@christopher-hertel.de>
 */
interface NotificationHandlerInterface
{
    public function supports(Notification $message): bool;

    /**
     * @throws ExceptionInterface When the handler encounters an error processing the notification
     */
    public function handle(Notification $notification): void;
}
