composio-gemini 0.7.12__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.
- composio_gemini/toolset.py +8 -6
- {composio_gemini-0.7.12.dist-info → composio_gemini-0.7.13.dist-info}/METADATA +1 -1
- composio_gemini-0.7.13.dist-info/RECORD +6 -0
- composio_gemini-0.7.12.dist-info/RECORD +0 -6
- {composio_gemini-0.7.12.dist-info → composio_gemini-0.7.13.dist-info}/WHEEL +0 -0
- {composio_gemini-0.7.12.dist-info → composio_gemini-0.7.13.dist-info}/top_level.txt +0 -0
composio_gemini/toolset.py
CHANGED
@@ -5,7 +5,7 @@ from inspect import Signature
|
|
5
5
|
from composio import ActionType, AppType, TagType
|
6
6
|
from composio.client.collections import ActionModel
|
7
7
|
from composio.tools import ComposioToolSet as BaseComposioToolSet
|
8
|
-
from composio.utils.
|
8
|
+
from composio.utils.openapi import function_signature_from_jsonschema
|
9
9
|
|
10
10
|
|
11
11
|
class ComposioToolSet(
|
@@ -52,6 +52,7 @@ class ComposioToolSet(
|
|
52
52
|
self,
|
53
53
|
schema: ActionModel,
|
54
54
|
entity_id: t.Optional[str] = None,
|
55
|
+
skip_default: bool = False,
|
55
56
|
) -> t.Callable:
|
56
57
|
"""Wraps composio tool as Google Genai SDK compatible function calling object."""
|
57
58
|
|
@@ -77,10 +78,9 @@ class ComposioToolSet(
|
|
77
78
|
globals=globals(),
|
78
79
|
closure=_execute.__closure__,
|
79
80
|
)
|
80
|
-
parameters =
|
81
|
-
|
82
|
-
|
83
|
-
),
|
81
|
+
parameters = function_signature_from_jsonschema(
|
82
|
+
schema=schema.parameters.model_dump(exclude_none=True),
|
83
|
+
skip_default=skip_default,
|
84
84
|
)
|
85
85
|
setattr(function, "__signature__", Signature(parameters=parameters))
|
86
86
|
setattr(
|
@@ -96,7 +96,9 @@ class ComposioToolSet(
|
|
96
96
|
actions: t.Optional[t.Sequence[ActionType]] = None,
|
97
97
|
apps: t.Optional[t.Sequence[AppType]] = None,
|
98
98
|
tags: t.Optional[t.List[TagType]] = None,
|
99
|
+
*,
|
99
100
|
entity_id: t.Optional[str] = None,
|
101
|
+
skip_default: bool = False,
|
100
102
|
check_connected_accounts: bool = True,
|
101
103
|
) -> t.List[t.Callable]:
|
102
104
|
"""
|
@@ -111,7 +113,7 @@ class ComposioToolSet(
|
|
111
113
|
"""
|
112
114
|
self.validate_tools(apps=apps, actions=actions, tags=tags)
|
113
115
|
return [
|
114
|
-
self._wrap_tool(schema=tool, entity_id=entity_id)
|
116
|
+
self._wrap_tool(schema=tool, entity_id=entity_id, skip_default=skip_default)
|
115
117
|
for tool in self.get_action_schemas(
|
116
118
|
actions=actions,
|
117
119
|
apps=apps,
|
@@ -0,0 +1,6 @@
|
|
1
|
+
composio_gemini/__init__.py,sha256=6sKzEl6ZrosTaUQ3SiE0qioM2gD2izRvjU4DerbuAN8,233
|
2
|
+
composio_gemini/toolset.py,sha256=QxkIiJtKjcPAZV6siCGhGVhEahzkmjRn88DIav8dPXg,4041
|
3
|
+
composio_gemini-0.7.13.dist-info/METADATA,sha256=QP_cqxc_uh6dwpfVmFRiHBk_Fhfk1-I_C6XJU1Ucnkk,2693
|
4
|
+
composio_gemini-0.7.13.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
5
|
+
composio_gemini-0.7.13.dist-info/top_level.txt,sha256=OXlT1cwZ_H8zLnD-WjZOokKdqRgsq5cqhx0uCnxCikk,16
|
6
|
+
composio_gemini-0.7.13.dist-info/RECORD,,
|
@@ -1,6 +0,0 @@
|
|
1
|
-
composio_gemini/__init__.py,sha256=6sKzEl6ZrosTaUQ3SiE0qioM2gD2izRvjU4DerbuAN8,233
|
2
|
-
composio_gemini/toolset.py,sha256=GatnCWLKL6b9qEH-lug_DJ6ybHGwJruaqDPRgNDwklA,3939
|
3
|
-
composio_gemini-0.7.12.dist-info/METADATA,sha256=WQfPR6HMPY6GmLdKChD8-RCg7bJwOs9wZw9EPAT2PJQ,2693
|
4
|
-
composio_gemini-0.7.12.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
5
|
-
composio_gemini-0.7.12.dist-info/top_level.txt,sha256=OXlT1cwZ_H8zLnD-WjZOokKdqRgsq5cqhx0uCnxCikk,16
|
6
|
-
composio_gemini-0.7.12.dist-info/RECORD,,
|
File without changes
|
File without changes
|