mbxai 0.6.23__py3-none-any.whl → 0.6.24__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.
mbxai/__init__.py CHANGED
@@ -2,4 +2,4 @@
2
2
  MBX AI package.
3
3
  """
4
4
 
5
- __version__ = "0.6.23"
5
+ __version__ = "0.6.24"
mbxai/mcp/server.py CHANGED
@@ -31,7 +31,7 @@ class MCPServer:
31
31
  self.app = FastAPI(
32
32
  title=self.name,
33
33
  description=self.description,
34
- version="0.6.23",
34
+ version="0.6.24",
35
35
  )
36
36
 
37
37
  # Initialize MCP server
mbxai/tools/types.py CHANGED
@@ -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 required fields
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 required fields
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 required fields
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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mbxai
3
- Version: 0.6.23
3
+ Version: 0.6.24
4
4
  Summary: MBX AI SDK
5
5
  Project-URL: Homepage, https://www.mibexx.de
6
6
  Project-URL: Documentation, https://www.mibexx.de
@@ -1,9 +1,9 @@
1
- mbxai/__init__.py,sha256=sXELKJtZXTLn227-FJ-5b3CCiKmyNk74UWVjduIoeeE,48
1
+ mbxai/__init__.py,sha256=0Ot9ioJB-MPkuEkKuIsq66dI-9eofSMLmYCndf90ZTc,48
2
2
  mbxai/core.py,sha256=WMvmU9TTa7M_m-qWsUew4xH8Ul6xseCZ2iBCXJTW-Bs,196
3
3
  mbxai/mcp/__init__.py,sha256=_ek9iYdYqW5saKetj4qDci11jxesQDiHPJRpHMKkxgU,175
4
4
  mbxai/mcp/client.py,sha256=2aX5zMe0vSxZSdvfxoHDA5p_aQSqV1bhX_-QopG2uX8,8477
5
5
  mbxai/mcp/example.py,sha256=oaol7AvvZnX86JWNz64KvPjab5gg1VjVN3G8eFSzuaE,2350
6
- mbxai/mcp/server.py,sha256=2rQtXDie1hx9ofm5py779pjvdZXslY4bYcCXHfzFQ6E,3463
6
+ mbxai/mcp/server.py,sha256=KfhNlyeFx5nwQNc_w7ZWX3yqqHYbLanWTP4QJrNTMjg,3463
7
7
  mbxai/openrouter/__init__.py,sha256=Ito9Qp_B6q-RLGAQcYyTJVWwR2YAZvNqE-HIYXxhtD8,298
8
8
  mbxai/openrouter/client.py,sha256=nusxYObyLAMGQd6J9u2uLfkRXyE5kZmdIGdlU-76HPo,13529
9
9
  mbxai/openrouter/config.py,sha256=Ia93s-auim9Sq71eunVDbn9ET5xX2zusXpV4JBdHAzs,3251
@@ -11,8 +11,8 @@ mbxai/openrouter/models.py,sha256=b3IjjtZAjeGOf2rLsdnCD1HacjTnS8jmv_ZXorc-KJQ,26
11
11
  mbxai/tools/__init__.py,sha256=ogxrHvgJ7OR62Lmd5x9Eh5d2C0jqWyQis7Zy3yKpZ78,218
12
12
  mbxai/tools/client.py,sha256=qOf8MiQ8_flPUNiMioOyjeEaV8rN1EBWb98T8qTC3D4,17582
13
13
  mbxai/tools/example.py,sha256=1HgKK39zzUuwFbnp3f0ThyWVfA_8P28PZcTwaUw5K78,2232
14
- mbxai/tools/types.py,sha256=NA-9JvbKbNpg7LzUwuDlssBVfQoRI_5t8-UR4zGPqXM,6966
15
- mbxai-0.6.23.dist-info/METADATA,sha256=MdcRJaBfxIslGOWZvrUXe1HgrLxRUwb0jK9xQtAJBzo,4148
16
- mbxai-0.6.23.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
17
- mbxai-0.6.23.dist-info/licenses/LICENSE,sha256=hEyhc4FxwYo3NQ40yNgZ7STqwVk-1_XcTXOnAPbGJAw,1069
18
- mbxai-0.6.23.dist-info/RECORD,,
14
+ mbxai/tools/types.py,sha256=ISm4k2USFXq_cO3C6UHaa96l0_Qo_mryezOXZV30yVA,6260
15
+ mbxai-0.6.24.dist-info/METADATA,sha256=Lu3jCm2klY8uxSWnL05LHwHYX1Y7MKUK_nUZBWgtBJY,4148
16
+ mbxai-0.6.24.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
17
+ mbxai-0.6.24.dist-info/licenses/LICENSE,sha256=hEyhc4FxwYo3NQ40yNgZ7STqwVk-1_XcTXOnAPbGJAw,1069
18
+ mbxai-0.6.24.dist-info/RECORD,,
File without changes