composio-pydanticai 0.7.11__py3-none-any.whl → 0.7.13__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.
@@ -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(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,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: composio_pydanticai
3
- Version: 0.7.11
3
+ Version: 0.7.13
4
4
  Summary: Use Composio to get array of strongly typed tools for Pydantic AI
5
5
  Home-page: https://github.com/ComposioHQ/composio
6
6
  Author: Siddharth
@@ -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.13.dist-info/METADATA,sha256=l6bNe-egnUXAYyQXY2H-WXmkLKRxL8DAw9V0FZI6DnU,4821
4
+ composio_pydanticai-0.7.13.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
5
+ composio_pydanticai-0.7.13.dist-info/top_level.txt,sha256=w5yw2VXoYyhN0vFzDfJAK91LjNwHHSwkIBV0TbQZHcw,20
6
+ composio_pydanticai-0.7.13.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (78.0.2)
2
+ Generator: setuptools (78.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -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.11.dist-info/METADATA,sha256=v7I51dSZq44kFaXgR8-EYWuVeb9CAsFt2wzuZUdAkC8,4821
4
- composio_pydanticai-0.7.11.dist-info/WHEEL,sha256=DK49LOLCYiurdXXOXwGJm6U4DkHkg4lcxjhqwRa0CP4,91
5
- composio_pydanticai-0.7.11.dist-info/top_level.txt,sha256=w5yw2VXoYyhN0vFzDfJAK91LjNwHHSwkIBV0TbQZHcw,20
6
- composio_pydanticai-0.7.11.dist-info/RECORD,,