composio-gemini 0.8.19__py3-none-any.whl → 0.8.20__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/provider.py +4 -4
- {composio_gemini-0.8.19.dist-info → composio_gemini-0.8.20.dist-info}/METADATA +1 -1
- composio_gemini-0.8.20.dist-info/RECORD +7 -0
- composio_gemini-0.8.19.dist-info/RECORD +0 -7
- {composio_gemini-0.8.19.dist-info → composio_gemini-0.8.20.dist-info}/WHEEL +0 -0
- {composio_gemini-0.8.19.dist-info → composio_gemini-0.8.20.dist-info}/top_level.txt +0 -0
composio_gemini/provider.py
CHANGED
@@ -146,8 +146,9 @@ class GeminiProvider(AgenticProvider[t.Any, list[t.Any]], name="gemini"):
|
|
146
146
|
def _handle_object_schema(self, json_schema: dict) -> t.Any:
|
147
147
|
"""Handle object type schema conversion."""
|
148
148
|
properties = {
|
149
|
-
name:
|
149
|
+
name: schema_obj
|
150
150
|
for name, schema in json_schema.get("properties", {}).items()
|
151
|
+
if (schema_obj := self._json_to_genai_schema(schema)) is not None
|
151
152
|
}
|
152
153
|
return genai_types.Schema(
|
153
154
|
type=genai_types.Type.OBJECT,
|
@@ -157,10 +158,9 @@ class GeminiProvider(AgenticProvider[t.Any, list[t.Any]], name="gemini"):
|
|
157
158
|
|
158
159
|
def _handle_string_schema(self, json_schema: dict) -> t.Any:
|
159
160
|
"""Handle string type schema conversion."""
|
160
|
-
schema_dict = {"type": genai_types.Type.STRING}
|
161
161
|
if enum_values := json_schema.get("enum"):
|
162
|
-
|
163
|
-
return genai_types.Schema(
|
162
|
+
return genai_types.Schema(type=genai_types.Type.STRING, enum=enum_values)
|
163
|
+
return genai_types.Schema(type=genai_types.Type.STRING)
|
164
164
|
|
165
165
|
def _handle_enum_schema(self, json_schema: dict) -> t.Any:
|
166
166
|
"""Handle enum schema conversion (pattern from openapi.py)."""
|
@@ -0,0 +1,7 @@
|
|
1
|
+
composio_gemini/__init__.py,sha256=1E2vHF2vpRqgO9hEHJlgaePVhmlLSmNB6irwy2wh8hM,68
|
2
|
+
composio_gemini/provider.py,sha256=T7AYatxvGm6yIfaDBkaYK8vK7tmgEe-7fsidQPd2VT0,9798
|
3
|
+
composio_gemini/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
4
|
+
composio_gemini-0.8.20.dist-info/METADATA,sha256=inFJ8lSkWYU1BQVvX-p4kk_Gq0hXvTpcEW42y-ckJGI,2610
|
5
|
+
composio_gemini-0.8.20.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
6
|
+
composio_gemini-0.8.20.dist-info/top_level.txt,sha256=OXlT1cwZ_H8zLnD-WjZOokKdqRgsq5cqhx0uCnxCikk,16
|
7
|
+
composio_gemini-0.8.20.dist-info/RECORD,,
|
@@ -1,7 +0,0 @@
|
|
1
|
-
composio_gemini/__init__.py,sha256=1E2vHF2vpRqgO9hEHJlgaePVhmlLSmNB6irwy2wh8hM,68
|
2
|
-
composio_gemini/provider.py,sha256=mMnrGDRIsiRSJLHJjDFogp5q8GROxlrqektlwJxpFkk,9745
|
3
|
-
composio_gemini/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
4
|
-
composio_gemini-0.8.19.dist-info/METADATA,sha256=GdbTxp7s79Qx04TiO3eWxItw2A6SYZuewGEVEiV1V68,2610
|
5
|
-
composio_gemini-0.8.19.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
6
|
-
composio_gemini-0.8.19.dist-info/top_level.txt,sha256=OXlT1cwZ_H8zLnD-WjZOokKdqRgsq5cqhx0uCnxCikk,16
|
7
|
-
composio_gemini-0.8.19.dist-info/RECORD,,
|
File without changes
|
File without changes
|