Files
zyt/server/app/common/service/ClinicalKnowledgeReference.php
T
2026-10-08 18:03:11 +08:00

29 lines
851 B
PHP

<?php
declare(strict_types=1);
namespace app\common\service;
/** Single entry point for references attached to clinical model requests. */
final class ClinicalKnowledgeReference
{
public static function augmentQuery(string $query): string
{
return TcmAncientBooksReference::augmentQuery(NihaixiaClinicalSkill::augmentQuery($query));
}
/** @param array<int,array<string,mixed>> $messages
* @return array<int,array<string,mixed>>
*/
public static function augmentMessages(array $messages): array
{
return TcmAncientBooksReference::augmentMessages(NihaixiaClinicalSkill::augmentMessages($messages));
}
/** @return list<array<string,mixed>> */
public static function ancientBookSources(string $query): array
{
return TcmAncientBooksReference::sourcesForText($query);
}
}