@@ -654,7 +654,9 @@ class ToolListChangedNotification(Notification):
654
654
params : NotificationParams | None = None
655
655
656
656
657
- LoggingLevel = Literal ["debug" , "info" , "notice" , "warning" , "error" , "critical" , "alert" , "emergency" ]
657
+ LoggingLevel = Literal [
658
+ "debug" , "info" , "notice" , "warning" , "error" , "critical" , "alert" , "emergency"
659
+ ]
658
660
659
661
660
662
class SetLevelRequestParams (RequestParams ):
@@ -708,7 +710,8 @@ class ModelHint(BaseModel):
708
710
709
711
class ModelPreferences (BaseModel ):
710
712
"""
711
- The server's preferences for model selection, requested of the client during sampling.
713
+ The server's preferences for model selection, requested of the client during
714
+ sampling.
712
715
713
716
Because LLMs can vary along multiple dimensions, choosing the "best" model is
714
717
rarely straightforward. Different models excel in different areas—some are
@@ -761,7 +764,10 @@ class CreateMessageRequestParams(RequestParams):
761
764
762
765
messages : list [SamplingMessage ]
763
766
modelPreferences : ModelPreferences | None = None
764
- """The server's preferences for which model to select. The client MAY ignore these preferences."""
767
+ """
768
+ The server's preferences for which model to select. The client MAY ignore
769
+ these preferences.
770
+ """
765
771
systemPrompt : str | None = None
766
772
"""An optional system prompt the server wants to use for sampling."""
767
773
includeContext : IncludeContext | None = None
@@ -911,9 +917,12 @@ class ListRootsResult(Result):
911
917
912
918
class RootsListChangedNotification (Notification ):
913
919
"""
914
- A notification from the client to the server, informing it that the list of roots has changed.
915
- This notification should be sent whenever the client adds, removes, or modifies any root.
916
- The server should then request an updated list of roots using the ListRootsRequest.
920
+ A notification from the client to the server, informing it that the list of
921
+ roots has changed.
922
+
923
+ This notification should be sent whenever the client adds, removes, or
924
+ modifies any root. The server should then request an updated list of roots
925
+ using the ListRootsRequest.
917
926
"""
918
927
919
928
method : Literal ["notifications/roots/list_changed" ]
@@ -940,7 +949,11 @@ class ClientRequest(
940
949
pass
941
950
942
951
943
- class ClientNotification (RootModel [ProgressNotification | InitializedNotification | RootsListChangedNotification ]):
952
+ class ClientNotification (
953
+ RootModel [
954
+ ProgressNotification | InitializedNotification | RootsListChangedNotification
955
+ ]
956
+ ):
944
957
pass
945
958
946
959
0 commit comments