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({
791
791
} ) ;
792
792
793
793
/* 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
+
794
804
/**
795
805
* The server's preferences for model selection, requested of the client during sampling.
796
806
*/
797
807
export const ModelPreferencesSchema = z
798
808
. object ( {
799
809
/**
800
- * Optional string hints to use for model selection.
810
+ * Optional hints to use for model selection.
801
811
*/
802
- hints : z . optional ( z . array ( z . record ( z . string ( ) ) ) ) ,
812
+ hints : z . optional ( z . array ( ModelHintSchema ) ) ,
803
813
/**
804
814
* How much to prioritize cost when selecting a model.
805
815
*/
You can’t perform that action at this time.
0 commit comments