@@ -103,7 +103,7 @@ def __init__(
103103 super ().__init__ (model_name , model_params , rate_limit_handler )
104104
105105 # overloads for LLMInterface and LLMInterfaceV2 methods
106- @overload
106+ @overload # type: ignore[no-overload-impl]
107107 def invoke (
108108 self ,
109109 input : str ,
@@ -117,7 +117,7 @@ def invoke(
117117 input : List [LLMMessage ],
118118 ) -> LLMResponse : ...
119119
120- @overload
120+ @overload # type: ignore[no-overload-impl]
121121 async def ainvoke (
122122 self ,
123123 input : str ,
@@ -131,7 +131,7 @@ async def ainvoke(
131131 input : List [LLMMessage ],
132132 ) -> LLMResponse : ...
133133
134- @overload
134+ @overload # type: ignore[no-overload-impl]
135135 def invoke_with_tools (
136136 self ,
137137 input : str ,
@@ -147,7 +147,7 @@ def invoke_with_tools(
147147 tools : Sequence [Tool ], # Tools definition as a sequence of Tool objects
148148 ) -> ToolCallResponse : ...
149149
150- @overload
150+ @overload # type: ignore[no-overload-impl]
151151 async def ainvoke_with_tools (
152152 self ,
153153 input : str ,
@@ -164,7 +164,7 @@ async def ainvoke_with_tools(
164164 ) -> ToolCallResponse : ...
165165
166166 # switching logics to LLMInterface or LLMInterfaceV2
167- def invoke (
167+ def invoke ( # type: ignore[no-redef]
168168 self ,
169169 input : Union [str , List [LLMMessage ]],
170170 message_history : Optional [Union [List [LLMMessage ], MessageHistory ]] = None ,
@@ -177,7 +177,7 @@ def invoke(
177177 else :
178178 raise ValueError (f"Invalid input type for invoke method - { type (input )} " )
179179
180- async def ainvoke (
180+ async def ainvoke ( # type: ignore[no-redef]
181181 self ,
182182 input : Union [str , List [LLMMessage ]],
183183 message_history : Optional [Union [List [LLMMessage ], MessageHistory ]] = None ,
@@ -192,7 +192,7 @@ async def ainvoke(
192192 else :
193193 raise ValueError (f"Invalid input type for ainvoke method - { type (input )} " )
194194
195- def invoke_with_tools (
195+ def invoke_with_tools ( # type: ignore[no-redef]
196196 self ,
197197 input : Union [str , List [LLMMessage ]],
198198 tools : Sequence [Tool ], # Tools definition as a sequence of Tool objects
@@ -210,7 +210,7 @@ def invoke_with_tools(
210210 f"Invalid input type for invoke_with_tools method - { type (input )} "
211211 )
212212
213- async def ainvoke_with_tools (
213+ async def ainvoke_with_tools ( # type: ignore[no-redef]
214214 self ,
215215 input : Union [str , List [LLMMessage ]],
216216 tools : Sequence [Tool ],
0 commit comments