@staticmethod def get_ask_user_tool() -> FunctionTool: """ Retourne un outil permettant au modèle de poser une question à l'utilisateur. """ def ask_user(question: str) -> str: """Ask the user a question and wait for their answer; use this when information is missing to proceed. Example: Thought: I need the user's client number to proceed. Action: ask_user Action Input: "Quel est votre numéro de client ?" """ return f"[USER_INPUT_REQUIRED] {question}" ask_user_tool = FunctionTool.from_defaults( fn=ask_user, name="ask_user", description= "Ask the user with a question and wait for their answer.", return_direct=True, ) return ask_user_tool