@@ -61,7 +61,11 @@ class GenerateCreateParams(TypedDict, total=False):
6161 """
6262
6363
64- class MessageContentFile (TypedDict , total = False , extra_items = object ): # type: ignore[call-arg]
64+ class MessageContentFile ( # type: ignore[call-arg]
65+ TypedDict ,
66+ total = False ,
67+ extra_items = object , # pyright: ignore[reportGeneralTypeIssues]
68+ ):
6569 url : Required [str ]
6670
6771 media_type : Annotated [str , PropertyInfo (alias = "mediaType" )]
@@ -78,11 +82,19 @@ class MessageContent(TypedDict, total=False):
7882 text : str
7983
8084
81- class MessageMetadataAction (TypedDict , total = False , extra_items = object ): # type: ignore[call-arg]
85+ class MessageMetadataAction ( # type: ignore[call-arg]
86+ TypedDict ,
87+ total = False ,
88+ extra_items = object , # pyright: ignore[reportGeneralTypeIssues]
89+ ):
8290 id : Required [str ]
8391
8492
85- class MessageMetadata (TypedDict , total = False , extra_items = object ): # type: ignore[call-arg]
93+ class MessageMetadata ( # type: ignore[call-arg]
94+ TypedDict ,
95+ total = False ,
96+ extra_items = object , # pyright: ignore[reportGeneralTypeIssues]
97+ ):
8698 action : MessageMetadataAction
8799
88100
@@ -102,21 +114,33 @@ class Output(TypedDict, total=False):
102114 schema_version : Annotated [int , PropertyInfo (alias = "schemaVersion" )]
103115
104116
105- class ContextCustomTool (TypedDict , total = False , extra_items = object ): # type: ignore[call-arg]
117+ class ContextCustomTool ( # type: ignore[call-arg]
118+ TypedDict ,
119+ total = False ,
120+ extra_items = object , # pyright: ignore[reportGeneralTypeIssues]
121+ ):
106122 options : Required [Dict [str , object ]]
107123
108124 slug : Required [str ]
109125
110126
111- class ContextSelection (TypedDict , total = False , extra_items = object ): # type: ignore[call-arg]
127+ class ContextSelection ( # type: ignore[call-arg]
128+ TypedDict ,
129+ total = False ,
130+ extra_items = object , # pyright: ignore[reportGeneralTypeIssues]
131+ ):
112132 id : Required [Union [str , float ]]
113133
114134 collection : Required [Literal ["pages" , "bodies" , "rows" , "columns" , "contents" , "headers" , "footers" ]]
115135
116136 value : str
117137
118138
119- class Context (TypedDict , total = False , extra_items = object ): # type: ignore[call-arg]
139+ class Context ( # type: ignore[call-arg]
140+ TypedDict ,
141+ total = False ,
142+ extra_items = object , # pyright: ignore[reportGeneralTypeIssues]
143+ ):
120144 available_tools : Annotated [SequenceNotStr [str ], PropertyInfo (alias = "availableTools" )]
121145
122146 custom_tools : Annotated [Iterable [ContextCustomTool ], PropertyInfo (alias = "customTools" )]
0 commit comments