You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For developers building AI tools that need collaborative awareness, `jupyter_ai_tools` provides a `collaborative_tool` decorator that automatically enables real-time collaboration features:
40
40
41
+
This decorator enables other users in the same Jupyter environment to see when your AI tool is actively working on shared notebooks, improving the collaborative experience.
42
+
41
43
```python
42
44
from jupyter_ai_tools.utils import collaborative_tool
# For tools without user context, simply omit the user parameter
61
-
@collaborative_tool()
62
-
asyncdefmy_tool_no_user(file_path: str):
63
-
"""Tool without collaborative awareness"""
64
-
returnf"Processed {file_path}"
65
61
```
66
62
67
-
This decorator enables other users in the same Jupyter environment to see when your AI tool is actively working on shared notebooks, improving the collaborative experience.
0 commit comments