@@ -269,7 +269,7 @@ def chat( # noqa: D417
269269 stream : bool = False ,
270270 tools : Optional [Sequence [Union [LitTool , "StructuredTool" ]]] = None ,
271271 auto_call_tools : bool = False ,
272- reasoning_effort : Optional [Literal ["low" , "medium" , "high" ]] = None ,
272+ reasoning_effort : Optional [Literal ["none" , " low" , "medium" , "high" ]] = None ,
273273 ** kwargs : Any ,
274274 ) -> str :
275275 """Sends a message to the LLM and retrieves a response.
@@ -290,13 +290,14 @@ def chat( # noqa: D417
290290 categorized by conversation ID.
291291 full_response (bool): Whether the entire response should be returned from the chat.
292292 auto_call_tools (bool): Tools will be executed automatically whenever applicable. Defaults to False.
293- reasoning_effort (Optional[Literal["low", "medium", "high"]]): The level of reasoning effort for the model.
293+ reasoning_effort (Optional[Literal["none", "low", "medium", "high"]]):
294+ The level of reasoning effort for the model.
294295 **kwargs (Any): Additional keyword arguments
295296
296297 Returns:
297298 str: The response from the LLM.
298299 """
299- if reasoning_effort is not None and reasoning_effort not in ["low" , "medium" , "high" ]:
300+ if reasoning_effort is not None and reasoning_effort not in ["none" , " low" , "medium" , "high" ]:
300301 raise ValueError ("reasoning_effort must be 'low', 'medium', 'high', or None" )
301302 self ._wait_for_model ()
302303 lit_tools = LitTool .convert_tools (tools )
0 commit comments