def get_parameters(self):
        """Return the automatically inferred parameters for the function using the dcstring of the function."""
        function_inferrer = FunctionInferrer.infer_from_function_reference(self.run)
        function_json = function_inferrer.to_json_schema()
        parameters = function_json.get("parameters")
        if not parameters:
            raise Exception(
                "Failed to infere parameters, please define JSON instead of using this automated util."
            )

        parameters["properties"].pop("args", None)
        parameters["properties"].pop("kwargs", None)

        if "required" in parameters:
            parameters["required"] = [
                param
                for param in parameters["required"]
                if param not in ["args", "kwargs"]
            ]

        return parameters
Return the automatically inferred parameters for the function using the dcstring of the function.
backend/director/agents/base.py