Examples
Add Comments
How to use Cloud Code SDK to automatically add comments to functions in a file.
This example demonstrates how to use the Cloud Code SDK to automatically add comments to each function in a Python file. This is useful for improving code readability and documentation with the help of AI.
Example: add_comments.py
Note:
- This example uses architect mode to leverage both a planner and an editor model for the task.
- Make sure to set your
CLOUD_CODE_API_KEY
environment variable before running.