composio-pydanticai 0.7.12__py3-none-any.whl → 0.7.14__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- composio_pydanticai/toolset.py +9 -2
- {composio_pydanticai-0.7.12.dist-info → composio_pydanticai-0.7.14.dist-info}/METADATA +1 -1
- composio_pydanticai-0.7.14.dist-info/RECORD +6 -0
- composio_pydanticai-0.7.12.dist-info/RECORD +0 -6
- {composio_pydanticai-0.7.12.dist-info → composio_pydanticai-0.7.14.dist-info}/WHEEL +0 -0
- {composio_pydanticai-0.7.12.dist-info → composio_pydanticai-0.7.14.dist-info}/top_level.txt +0 -0
composio_pydanticai/toolset.py
CHANGED
@@ -70,6 +70,7 @@ class ComposioToolSet(
|
|
70
70
|
action: str,
|
71
71
|
description: str,
|
72
72
|
schema_params: t.Dict[str, t.Any],
|
73
|
+
skip_default: bool = False,
|
73
74
|
entity_id: t.Optional[str] = None,
|
74
75
|
):
|
75
76
|
"""Create a wrapper function for the Composio action."""
|
@@ -100,7 +101,10 @@ class ComposioToolSet(
|
|
100
101
|
)
|
101
102
|
|
102
103
|
# Get parameters using shared utility
|
103
|
-
parameters = get_signature_format_from_schema_params(
|
104
|
+
parameters = get_signature_format_from_schema_params(
|
105
|
+
schema_params=schema_params,
|
106
|
+
skip_default=skip_default,
|
107
|
+
)
|
104
108
|
|
105
109
|
# Add type hints
|
106
110
|
params = {param.name: param.annotation for param in parameters}
|
@@ -126,6 +130,7 @@ class ComposioToolSet(
|
|
126
130
|
schema: t.Dict[str, t.Any],
|
127
131
|
entity_id: t.Optional[str] = None,
|
128
132
|
max_retries: t.Optional[int] = None,
|
133
|
+
skip_default: bool = False,
|
129
134
|
) -> Tool:
|
130
135
|
"""Wraps composio tool as Pydantic-AI Tool object."""
|
131
136
|
action = schema["name"]
|
@@ -137,6 +142,7 @@ class ComposioToolSet(
|
|
137
142
|
action=action,
|
138
143
|
description=description,
|
139
144
|
schema_params=parameters,
|
145
|
+
skip_default=skip_default,
|
140
146
|
entity_id=entity_id,
|
141
147
|
)
|
142
148
|
|
@@ -159,6 +165,7 @@ class ComposioToolSet(
|
|
159
165
|
max_retries: t.Optional[t.Dict[Action, int]] = None,
|
160
166
|
default_max_retries: int = 3,
|
161
167
|
processors: t.Optional[ProcessorsType] = None,
|
168
|
+
skip_default: bool = False,
|
162
169
|
check_connected_accounts: bool = True,
|
163
170
|
) -> t.Sequence[Tool]:
|
164
171
|
"""
|
@@ -182,12 +189,12 @@ class ComposioToolSet(
|
|
182
189
|
self._processor_helpers.merge_processors(processors)
|
183
190
|
|
184
191
|
max_retries = max_retries or {}
|
185
|
-
|
186
192
|
return [
|
187
193
|
self._wrap_tool(
|
188
194
|
schema=tool.model_dump(exclude_none=True),
|
189
195
|
entity_id=entity_id or self.entity_id,
|
190
196
|
max_retries=max_retries.get(Action(tool.name), default_max_retries),
|
197
|
+
skip_default=skip_default,
|
191
198
|
)
|
192
199
|
for tool in self.get_action_schemas(
|
193
200
|
actions=actions,
|
@@ -0,0 +1,6 @@
|
|
1
|
+
composio_pydanticai/__init__.py,sha256=SrZ3LdmHzr9G_LHUkm2kCGa3IV-L7egPURdHSna60zA,252
|
2
|
+
composio_pydanticai/toolset.py,sha256=0DFKfoRNA8PIwYDbDTC7HLart6GuP33eT5eFGPFAMLQ,6917
|
3
|
+
composio_pydanticai-0.7.14.dist-info/METADATA,sha256=C9YFBpqmqewhGz3CozDH4U8LEJUsz9l67xkqXfRO9so,4821
|
4
|
+
composio_pydanticai-0.7.14.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
5
|
+
composio_pydanticai-0.7.14.dist-info/top_level.txt,sha256=w5yw2VXoYyhN0vFzDfJAK91LjNwHHSwkIBV0TbQZHcw,20
|
6
|
+
composio_pydanticai-0.7.14.dist-info/RECORD,,
|
@@ -1,6 +0,0 @@
|
|
1
|
-
composio_pydanticai/__init__.py,sha256=SrZ3LdmHzr9G_LHUkm2kCGa3IV-L7egPURdHSna60zA,252
|
2
|
-
composio_pydanticai/toolset.py,sha256=_CVKK6YF7-IRbC6ftFN9--7MDn1LqfhkMEEudSwcZXE,6652
|
3
|
-
composio_pydanticai-0.7.12.dist-info/METADATA,sha256=j_W_MM6omiGvufWsycPZabdmggPPRkmfAmDrqIuitL0,4821
|
4
|
-
composio_pydanticai-0.7.12.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
5
|
-
composio_pydanticai-0.7.12.dist-info/top_level.txt,sha256=w5yw2VXoYyhN0vFzDfJAK91LjNwHHSwkIBV0TbQZHcw,20
|
6
|
-
composio_pydanticai-0.7.12.dist-info/RECORD,,
|
File without changes
|
File without changes
|