AI agent instructions
AI agent instructions
Create NotteFunction
Use NotteClient.NotteFunction to create this object from your configured client.FunctionConstructor
required
Related types
Usage
- createRun: Create a cloud run record without starting execution. Optional: use this only when you need the ID before execution, then pass it to run(variables, { functionRunId }). run() otherwise creates a new run.
- run: Stream logs and wait for the final result by default. Pass { stream: false } to receive the backend’s JSON response without live logs. Disabling streaming does not make standard-runtime execution non-blocking. Pass functionRunId to execute a record returned by createRun().
- getRun: Get metadata for a specific function run
- download: Download the function code as a python file. Returns the code, and writes it to
pathwhen one is provided. - getUrl: Get the download URL of the function code, decrypting it when the API returns an encrypted one (Notte managed functions).
- runs: List the runs of this function.
Direct constructor reference
Direct constructor reference