@@ -654,7 +654,9 @@ class ToolListChangedNotification(Notification):
654654 params : NotificationParams | None = None
655655
656656
657- LoggingLevel = Literal ["debug" , "info" , "notice" , "warning" , "error" , "critical" , "alert" , "emergency" ]
657+ LoggingLevel = Literal [
658+ "debug" , "info" , "notice" , "warning" , "error" , "critical" , "alert" , "emergency"
659+ ]
658660
659661
660662class SetLevelRequestParams (RequestParams ):
@@ -708,7 +710,8 @@ class ModelHint(BaseModel):
708710
709711class ModelPreferences (BaseModel ):
710712 """
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.
712715
713716 Because LLMs can vary along multiple dimensions, choosing the "best" model is
714717 rarely straightforward. Different models excel in different areas—some are
@@ -761,7 +764,10 @@ class CreateMessageRequestParams(RequestParams):
761764
762765 messages : list [SamplingMessage ]
763766 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+ """
765771 systemPrompt : str | None = None
766772 """An optional system prompt the server wants to use for sampling."""
767773 includeContext : IncludeContext | None = None
@@ -911,9 +917,12 @@ class ListRootsResult(Result):
911917
912918class RootsListChangedNotification (Notification ):
913919 """
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.
917926 """
918927
919928 method : Literal ["notifications/roots/list_changed" ]
@@ -940,7 +949,11 @@ class ClientRequest(
940949 pass
941950
942951
943- class ClientNotification (RootModel [ProgressNotification | InitializedNotification | RootsListChangedNotification ]):
952+ class ClientNotification (
953+ RootModel [
954+ ProgressNotification | InitializedNotification | RootsListChangedNotification
955+ ]
956+ ):
944957 pass
945958
946959
0 commit comments