@devries-cameron20 / composio Mirror · read-only / commits / 0c0d53527
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

fix(python): use generated custom tool preload types

Dhawal Upadhyay committed May 7, 2026 at 16:09 UTC 0c0d535275afde51291c5d2bf9b8e907e83d9ab0
1 file changed +3 -22
python/composio/core/models/custom_tool_types.py
+3 -22
@@ -110,28 +110,9 @@ class CustomTool:
110 preload: t.Optional[bool] = None
111
112
113 -class CustomToolWireDefinition(
114 - session_create_params.ExperimentalCustomTool,
115 - total=False,
116 -):
117 - preload: bool
118 -
119 -
120 -class CustomToolkitToolWireDefinition(
121 - session_create_params.ExperimentalCustomToolkitTool,
122 - total=False,
123 -):
124 - preload: bool
125 -
126 -
127 -class CustomToolkitWireDefinition(te.TypedDict, total=False):
128 - # Stainless 1.37.0 lacks the input-only SDK preload hint on custom
129 - # toolkits, so this mirrors the generated shape and adds that single field.
130 - description: te.Required[str]
131 - name: te.Required[str]
132 - slug: te.Required[str]
133 - tools: te.Required[t.Iterable[CustomToolkitToolWireDefinition]]
134 - preload: bool
113 +CustomToolWireDefinition = session_create_params.ExperimentalCustomTool
114 +CustomToolkitToolWireDefinition = session_create_params.ExperimentalCustomToolkitTool
115 +CustomToolkitWireDefinition = session_create_params.ExperimentalCustomToolkit
116
117
118 class InlineCustomToolsWirePayload(te.TypedDict, total=False):