composio-pydanticai 0.7.7__py3-none-any.whl → 0.7.9__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 +3 -3
- {composio_pydanticai-0.7.7.dist-info → composio_pydanticai-0.7.9.dist-info}/METADATA +2 -2
- composio_pydanticai-0.7.9.dist-info/RECORD +6 -0
- composio_pydanticai-0.7.7.dist-info/RECORD +0 -6
- {composio_pydanticai-0.7.7.dist-info → composio_pydanticai-0.7.9.dist-info}/WHEEL +0 -0
- {composio_pydanticai-0.7.7.dist-info → composio_pydanticai-0.7.9.dist-info}/top_level.txt +0 -0
composio_pydanticai/toolset.py
CHANGED
@@ -3,7 +3,7 @@ import typing as t
|
|
3
3
|
from inspect import Parameter, Signature
|
4
4
|
|
5
5
|
from pydantic import ValidationError
|
6
|
-
from pydantic_ai.tools import Tool
|
6
|
+
from pydantic_ai.tools import RunContext, Tool
|
7
7
|
|
8
8
|
from composio import Action, ActionType, AppType, TagType
|
9
9
|
from composio.tools import ComposioToolSet as BaseComposioToolSet
|
@@ -105,7 +105,7 @@ class ComposioToolSet(
|
|
105
105
|
# Add type hints
|
106
106
|
params = {param.name: param.annotation for param in parameters}
|
107
107
|
action_func.__annotations__ = {
|
108
|
-
"ctx":
|
108
|
+
"ctx": RunContext[None],
|
109
109
|
"return": t.Dict,
|
110
110
|
**params,
|
111
111
|
}
|
@@ -114,7 +114,7 @@ class ComposioToolSet(
|
|
114
114
|
ctx_param = Parameter(
|
115
115
|
name="ctx",
|
116
116
|
kind=Parameter.POSITIONAL_OR_KEYWORD,
|
117
|
-
annotation=
|
117
|
+
annotation=RunContext[None],
|
118
118
|
)
|
119
119
|
action_func.__signature__ = Signature(parameters=[ctx_param] + parameters) # type: ignore
|
120
120
|
action_func.__doc__ = description
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: composio_pydanticai
|
3
|
-
Version: 0.7.
|
3
|
+
Version: 0.7.9
|
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
|
@@ -11,7 +11,7 @@ Classifier: Operating System :: OS Independent
|
|
11
11
|
Requires-Python: >=3.9,<4
|
12
12
|
Description-Content-Type: text/markdown
|
13
13
|
Requires-Dist: composio_core<0.8.0,>=0.7.0
|
14
|
-
Requires-Dist: pydantic-ai
|
14
|
+
Requires-Dist: pydantic-ai>=0.0.36
|
15
15
|
Dynamic: author
|
16
16
|
Dynamic: author-email
|
17
17
|
Dynamic: classifier
|
@@ -0,0 +1,6 @@
|
|
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.9.dist-info/METADATA,sha256=nxL4PQHVrHvDEc2z-Pw_YypYMlyPXdw_abJoZolegKw,4820
|
4
|
+
composio_pydanticai-0.7.9.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
|
5
|
+
composio_pydanticai-0.7.9.dist-info/top_level.txt,sha256=w5yw2VXoYyhN0vFzDfJAK91LjNwHHSwkIBV0TbQZHcw,20
|
6
|
+
composio_pydanticai-0.7.9.dist-info/RECORD,,
|
@@ -1,6 +0,0 @@
|
|
1
|
-
composio_pydanticai/__init__.py,sha256=SrZ3LdmHzr9G_LHUkm2kCGa3IV-L7egPURdHSna60zA,252
|
2
|
-
composio_pydanticai/toolset.py,sha256=tgXhPMLW5QTiKDHQQ4B7QQ-frfINC0MO4Bhf9w95z8o,6644
|
3
|
-
composio_pydanticai-0.7.7.dist-info/METADATA,sha256=x_qnrrpee1jUK1Thp3g-qDYtpe55IhiIzqfAwBYU82k,4812
|
4
|
-
composio_pydanticai-0.7.7.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
|
5
|
-
composio_pydanticai-0.7.7.dist-info/top_level.txt,sha256=w5yw2VXoYyhN0vFzDfJAK91LjNwHHSwkIBV0TbQZHcw,20
|
6
|
-
composio_pydanticai-0.7.7.dist-info/RECORD,,
|
File without changes
|
File without changes
|