@devries-cameron20 / composio Mirror · read-only / commits / 613d3804a
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 21, 21:00 UTC

docs(py): drop residual "at create time" wording in error class docstrings

Two more spots leaking the same immutability wording removed from the upstream API description: - ComposioAclOnlyForSharedError docstring said "sent on a PRIVATE connection — at create time or via PATCH" and the Fix suggested "set account_type='SHARED' at create time". Reworded to drop the "at create time" assertion. - ComposioSharedConnectionNotAccessibleError docstring said "caught at session-create time". Replaced the "caught" framing with "Raised at session-create time" — "session-create time" stays because it's user-facing (tells the SDK caller when the error is raised, i.e. during session.create() / session.patch(), not later during execution). Also tightened the surrounding wording — class doc cross-references the actual SDK method names (``tool_router.session.create()`` / ``session.patch()``) instead of abstract phrasing. No behaviour changes — docstring cleanup only. Verified: ruff check + format clean, nox -s chk clean, 49 tests pass. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

venkat82 committed May 12, 2026 at 01:28 UTC 613d3804afe0db2c5a9e213cf82937bde793934e
1 file changed +8 -9
python/composio/exceptions.py
+8 -9
@@ -333,12 +333,11 @@ class ComposioLegacyConnectedAccountsEndpointRetiredError(ConnectedAccountError)
333
334 class ComposioAclOnlyForSharedError(ConnectedAccountError):
335 """Raised when ACL fields (``allow_all_users``, ``allowed_user_ids``,
336 - ``not_allowed_user_ids``) are sent on a ``PRIVATE`` connection — at
337 - create time or via PATCH. ACL is only meaningful for ``SHARED``
338 - connections.
336 + ``not_allowed_user_ids``) are sent on a ``PRIVATE`` connection. ACL
337 + is only meaningful for ``SHARED`` connections.
338
340 - Fix: set ``account_type='SHARED'`` at create time, or omit the ACL
341 - fields when creating/updating a PRIVATE connection.
339 + Fix: use ``account_type='SHARED'``, or omit the ACL fields when
340 + creating/updating a PRIVATE connection.
341 """
342
343 pass
@@ -363,10 +362,10 @@ class ComposioSharedAccessDeniedError(ConnectedAccountError):
362
363
364 class ComposioSharedConnectionNotAccessibleError(ConnectedAccountError):
366 - """Raised by tool-router session create / PATCH when the session's
367 - ``user_id`` cannot use a pinned SHARED connection — caught at
368 - session-create time so the session never enters a state that fails
369 - mid-execution.
365 + """Raised by ``tool_router.session.create()`` / ``session.patch()``
366 + when the session's ``user_id`` cannot use a pinned SHARED connection.
367 + Raised at session-create time so the session never enters a state
368 + that fails mid-execution.
369
370 Fix: grant the session user access via
371 ``composio.connected_accounts.update_acl()`` on the pinned connection,