This commit is contained in:
Your Name
2026-10-08 18:03:11 +08:00
parent 4dac39c4c2
commit 19ea2dadeb
26 changed files with 1131 additions and 28 deletions
@@ -0,0 +1,28 @@
<?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);
}
}