Files
archived-ai-generic-platform/ModelCatalog.php

33 lines
834 B
PHP

<?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\Platform\Bridge\Generic;
use Symfony\AI\Platform\Capability;
use Symfony\AI\Platform\ModelCatalog\AbstractModelCatalog;
/**
* Models need to be registered explicitly here to be routed to the correct ModelClient and ResultConverter
* implementations.
*
* @author Christopher Hertel <mail@christopher-hertel.de>
*/
final class ModelCatalog extends AbstractModelCatalog
{
/**
* @param array<string, array{class: class-string, capabilities: list<Capability>}> $models
*/
public function __construct(
protected array $models = [],
) {
}
}