From c48c754a4d5bf5f53c21e76b38460f92cd979e17 Mon Sep 17 00:00:00 2001 From: Henrik Mathias Eiding <51706349+HMEiding@users.noreply.github.com> Date: Thu, 21 Sep 2023 11:10:22 +0200 Subject: [PATCH] [DEGR-2545] Improve Functions docs (#1375) --- cognite/client/_api/functions.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cognite/client/_api/functions.py b/cognite/client/_api/functions.py index 5b34a6eaa..7bdc3420d 100644 --- a/cognite/client/_api/functions.py +++ b/cognite/client/_api/functions.py @@ -112,6 +112,10 @@ def create( - If the user gives one or more secrets when creating the function, these are passed through the `secrets` argument. - Data about the function call can be accessed via the argument `function_call_info`, which is a dictionary with keys `function_id` and, if the call is scheduled, `schedule_id` and `scheduled_time`. + By default, the function is deployed with the latest version of cognite-sdk. If a specific version is desired, it can be specified either in a requirements.txt file when deploying via the `folder` argument or between `[requirements]` tags when deploying via the `function_handle` argument (see example below). + + For help with troubleshooting, please see `this page. `_ + Args: name (str): The name of the function. folder (str | None): Path to the folder where the function source code is located.