mbxai 0.6.23__tar.gz → 0.6.24__tar.gz
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.
- {mbxai-0.6.23 → mbxai-0.6.24}/PKG-INFO +1 -1
- {mbxai-0.6.23 → mbxai-0.6.24}/pyproject.toml +1 -1
- {mbxai-0.6.23 → mbxai-0.6.24}/setup.py +1 -1
- {mbxai-0.6.23 → mbxai-0.6.24}/src/mbxai/__init__.py +1 -1
- {mbxai-0.6.23 → mbxai-0.6.24}/src/mbxai/mcp/server.py +1 -1
- {mbxai-0.6.23 → mbxai-0.6.24}/src/mbxai/tools/types.py +3 -18
- {mbxai-0.6.23 → mbxai-0.6.24}/uv.lock +1 -1
- {mbxai-0.6.23 → mbxai-0.6.24}/.gitignore +0 -0
- {mbxai-0.6.23 → mbxai-0.6.24}/LICENSE +0 -0
- {mbxai-0.6.23 → mbxai-0.6.24}/README.md +0 -0
- {mbxai-0.6.23 → mbxai-0.6.24}/src/mbxai/core.py +0 -0
- {mbxai-0.6.23 → mbxai-0.6.24}/src/mbxai/mcp/__init__.py +0 -0
- {mbxai-0.6.23 → mbxai-0.6.24}/src/mbxai/mcp/client.py +0 -0
- {mbxai-0.6.23 → mbxai-0.6.24}/src/mbxai/mcp/example.py +0 -0
- {mbxai-0.6.23 → mbxai-0.6.24}/src/mbxai/openrouter/__init__.py +0 -0
- {mbxai-0.6.23 → mbxai-0.6.24}/src/mbxai/openrouter/client.py +0 -0
- {mbxai-0.6.23 → mbxai-0.6.24}/src/mbxai/openrouter/config.py +0 -0
- {mbxai-0.6.23 → mbxai-0.6.24}/src/mbxai/openrouter/models.py +0 -0
- {mbxai-0.6.23 → mbxai-0.6.24}/src/mbxai/tools/__init__.py +0 -0
- {mbxai-0.6.23 → mbxai-0.6.24}/src/mbxai/tools/client.py +0 -0
- {mbxai-0.6.23 → mbxai-0.6.24}/src/mbxai/tools/example.py +0 -0
- {mbxai-0.6.23 → mbxai-0.6.24}/tests/test_core.py +0 -0
- {mbxai-0.6.23 → mbxai-0.6.24}/tests/test_mcp.py +0 -0
- {mbxai-0.6.23 → mbxai-0.6.24}/tests/test_openrouter.py +0 -0
- {mbxai-0.6.23 → mbxai-0.6.24}/tests/test_tools.py +0 -0
@@ -63,17 +63,12 @@ def convert_to_strict_schema(schema: dict[str, Any], strict: bool = True, keep_i
|
|
63
63
|
# Copy over input properties
|
64
64
|
if "properties" in input_schema:
|
65
65
|
for prop_name, prop in input_schema["properties"].items():
|
66
|
-
# Create a new property object with
|
66
|
+
# Create a new property object with only allowed fields
|
67
67
|
new_prop = {
|
68
68
|
"type": prop.get("type", "string"),
|
69
69
|
"description": prop.get("description", f"The {prop_name} parameter")
|
70
70
|
}
|
71
71
|
|
72
|
-
# Copy over any additional fields that might be useful
|
73
|
-
for key, value in prop.items():
|
74
|
-
if key not in new_prop:
|
75
|
-
new_prop[key] = value
|
76
|
-
|
77
72
|
input_prop_schema["properties"][prop_name] = new_prop
|
78
73
|
logger.info(f"Added property {prop_name}: {json.dumps(new_prop, indent=2)}")
|
79
74
|
|
@@ -93,17 +88,12 @@ def convert_to_strict_schema(schema: dict[str, Any], strict: bool = True, keep_i
|
|
93
88
|
# If not keeping input wrapper, use input schema directly
|
94
89
|
if "properties" in input_schema:
|
95
90
|
for prop_name, prop in input_schema["properties"].items():
|
96
|
-
# Create a new property object with
|
91
|
+
# Create a new property object with only allowed fields
|
97
92
|
new_prop = {
|
98
93
|
"type": prop.get("type", "string"),
|
99
94
|
"description": prop.get("description", f"The {prop_name} parameter")
|
100
95
|
}
|
101
96
|
|
102
|
-
# Copy over any additional fields that might be useful
|
103
|
-
for key, value in prop.items():
|
104
|
-
if key not in new_prop:
|
105
|
-
new_prop[key] = value
|
106
|
-
|
107
97
|
strict_schema["properties"][prop_name] = new_prop
|
108
98
|
logger.info(f"Added property {prop_name}: {json.dumps(new_prop, indent=2)}")
|
109
99
|
|
@@ -115,17 +105,12 @@ def convert_to_strict_schema(schema: dict[str, Any], strict: bool = True, keep_i
|
|
115
105
|
# If no input wrapper, use the schema as is
|
116
106
|
if "properties" in schema:
|
117
107
|
for prop_name, prop in schema["properties"].items():
|
118
|
-
# Create a new property object with
|
108
|
+
# Create a new property object with only allowed fields
|
119
109
|
new_prop = {
|
120
110
|
"type": prop.get("type", "string"),
|
121
111
|
"description": prop.get("description", f"The {prop_name} parameter")
|
122
112
|
}
|
123
113
|
|
124
|
-
# Copy over any additional fields that might be useful
|
125
|
-
for key, value in prop.items():
|
126
|
-
if key not in new_prop:
|
127
|
-
new_prop[key] = value
|
128
|
-
|
129
114
|
strict_schema["properties"][prop_name] = new_prop
|
130
115
|
logger.info(f"Added property {prop_name}: {json.dumps(new_prop, indent=2)}")
|
131
116
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|