@devries-cameron20 / composio-1 / commits / 07c413bc4
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.

fix(python): align custom_toolkits type annotation with ExperimentalToolkit union

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

Dhawal Upadhyay committed Mar 20, 2026 at 17:25 UTC 07c413bc4a731bc25c3eb00fa5eeb812e2475919
1 file changed +3 -1
python/composio/core/models/tool_router.py
+3 -1
@@ -712,7 +712,9 @@ class ToolRouter(Resource, t.Generic[TTool, TToolCollection]):
712 # Map SDK's experimental.assistive_prompt.user_timezone to API's
713 # experimental.assistive_prompt_config.user_timezone
714 custom_tools: t.Optional[t.List[CustomTool]] = None
715 - custom_toolkits: t.Optional[t.List[CustomToolkit]] = None
715 + custom_toolkits: t.Optional[
716 + t.List[t.Union[CustomToolkit, ExperimentalToolkit]]
717 + ] = None
718
719 if experimental is not None:
720 experimental_payload: t.Dict[str, t.Any] = {}