File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -791,15 +791,25 @@ export const LoggingMessageNotificationSchema = NotificationSchema.extend({
791791} ) ;
792792
793793/* Sampling */
794+ /**
795+ * Hints to use for model selection.
796+ */
797+ export const ModelHintSchema = z . object ( {
798+ /**
799+ * A hint for a model name.
800+ */
801+ name : z . string ( ) . optional ( ) ,
802+ } ) . passthrough ( ) ;
803+
794804/**
795805 * The server's preferences for model selection, requested of the client during sampling.
796806 */
797807export const ModelPreferencesSchema = z
798808 . object ( {
799809 /**
800- * Optional string hints to use for model selection.
810+ * Optional hints to use for model selection.
801811 */
802- hints : z . optional ( z . array ( z . record ( z . string ( ) ) ) ) ,
812+ hints : z . optional ( z . array ( ModelHintSchema ) ) ,
803813 /**
804814 * How much to prioritize cost when selecting a model.
805815 */
You can’t perform that action at this time.
0 commit comments