更新
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user