mbxai 1.1.0__py3-none-any.whl → 1.2.0__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__ = "1.1.0"
5
+ __version__ = "1.2.0"
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="1.1.0",
34
+ version="1.2.0",
35
35
  )
36
36
 
37
37
  # Initialize MCP server
@@ -234,9 +234,9 @@ class OpenRouterClient:
234
234
  logger.error("Received None response from OpenRouter API")
235
235
  raise OpenRouterAPIError("Received None response from OpenRouter API")
236
236
 
237
- logger.info(f"Response type: {type(response)}")
238
- logger.info(f"Response attributes: {dir(response)}")
239
- logger.info(f"Received response from OpenRouter: {len(response.choices)} choices")
237
+ logger.debug(f"Response type: {type(response)}")
238
+ logger.debug(f"Response attributes: {dir(response)}")
239
+ logger.debug(f"Received response from OpenRouter: {len(response.choices)} choices")
240
240
 
241
241
  return response
242
242
 
@@ -431,9 +431,9 @@ class OpenRouterClient:
431
431
  logger.error("Received None response from OpenRouter API")
432
432
  raise OpenRouterAPIError("Received None response from OpenRouter API")
433
433
 
434
- logger.info(f"Response type: {type(response)}")
435
- logger.info(f"Response attributes: {dir(response)}")
436
- logger.info(f"Received response from OpenRouter: {len(response.choices)} choices")
434
+ logger.debug(f"Response type: {type(response)}")
435
+ logger.debug(f"Response attributes: {dir(response)}")
436
+ logger.debug(f"Received response from OpenRouter: {len(response.choices)} choices")
437
437
 
438
438
  return response
439
439
 
mbxai/tools/client.py CHANGED
@@ -232,10 +232,9 @@ class ToolClient:
232
232
 
233
233
  # Get all function calls from the output
234
234
  tool_calls = response.choices[0].message.tool_calls
235
- logger.info(f"Tool calls: {tool_calls}")
236
235
  # Process function calls if any
237
236
  if tool_calls:
238
- logger.info(f"Processing {len(tool_calls)} function calls")
237
+ logger.info(f"Tool calls: {len(tool_calls)} - Tools: {[tc.function.name for tc in tool_calls]}")
239
238
 
240
239
  # Process each function call
241
240
  for tool_call in tool_calls:
@@ -316,10 +315,9 @@ class ToolClient:
316
315
 
317
316
  # Get all function calls from the output
318
317
  tool_calls = response.choices[0].message.tool_calls
319
- logger.info(f"Tool calls: {tool_calls}")
320
318
  # Process function calls if any
321
319
  if tool_calls:
322
- logger.info(f"Processing {len(tool_calls)} function calls")
320
+ logger.info(f"Tool calls: {len(tool_calls)} - Tools: {[tc.function.name for tc in tool_calls]}")
323
321
 
324
322
  # Process each function call
325
323
  for tool_call in tool_calls:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mbxai
3
- Version: 1.1.0
3
+ Version: 1.2.0
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,4 +1,4 @@
1
- mbxai/__init__.py,sha256=_2qGr1Yic6rhVzF_j8_SfajJN6gzgVi6j6QA2iK59wQ,47
1
+ mbxai/__init__.py,sha256=JfbYRtbxrVf4tf03gAoAUdJuD9DAHhCaIHSgPc4Gnss,47
2
2
  mbxai/core.py,sha256=WMvmU9TTa7M_m-qWsUew4xH8Ul6xseCZ2iBCXJTW-Bs,196
3
3
  mbxai/examples/openrouter_example.py,sha256=-grXHKMmFLoh-yUIEMc31n8Gg1S7uSazBWCIOWxgbyQ,1317
4
4
  mbxai/examples/parse_example.py,sha256=eCKMJoOl6qwo8sDP6Trc6ncgjPlgTqi5tPE2kB5_P0k,3821
@@ -12,17 +12,17 @@ mbxai/examples/mcp/mcp_server_example.py,sha256=nFfg22Jnc6HMW_ezLO3So1xwDdx2_rIt
12
12
  mbxai/mcp/__init__.py,sha256=_ek9iYdYqW5saKetj4qDci11jxesQDiHPJRpHMKkxgU,175
13
13
  mbxai/mcp/client.py,sha256=eXIN2ebprNF5UgM1jb-4JkXmc-5toUhtlBNFKVU7FgY,5204
14
14
  mbxai/mcp/example.py,sha256=oaol7AvvZnX86JWNz64KvPjab5gg1VjVN3G8eFSzuaE,2350
15
- mbxai/mcp/server.py,sha256=V8yGrpOzLJgNzK9YhwhLN_ETAyP0SUpZvxENlcxlHiU,3454
15
+ mbxai/mcp/server.py,sha256=gB10CpbzibEt2XethhIyVLcfgu9GZXrSqKRcsjHfOug,3454
16
16
  mbxai/openrouter/__init__.py,sha256=Ito9Qp_B6q-RLGAQcYyTJVWwR2YAZvNqE-HIYXxhtD8,298
17
- mbxai/openrouter/client.py,sha256=zVibH-BoHsv92RAuwqmTeLUIlAPjEqu3mMNzsRzfCFU,19875
17
+ mbxai/openrouter/client.py,sha256=P_TBb980EgEORGUz9cMqNAAs3R18EHFYgcE92TNI2bo,19881
18
18
  mbxai/openrouter/config.py,sha256=Ia93s-auim9Sq71eunVDbn9ET5xX2zusXpV4JBdHAzs,3251
19
19
  mbxai/openrouter/models.py,sha256=b3IjjtZAjeGOf2rLsdnCD1HacjTnS8jmv_ZXorc-KJQ,2604
20
20
  mbxai/openrouter/schema.py,sha256=H_77ZrA9zmbX155bWpCJj1jehUyJPS0QybEW1IVAoe0,540
21
21
  mbxai/tools/__init__.py,sha256=ogxrHvgJ7OR62Lmd5x9Eh5d2C0jqWyQis7Zy3yKpZ78,218
22
- mbxai/tools/client.py,sha256=TS2ZYYbJPDmGQ1-1ikuDY0_LiwLPhOQ1cy4pIS2UeEA,14946
22
+ mbxai/tools/client.py,sha256=SxXSxvvglbzSaruqm_mebdky8RY2E3hW1VldQbfa0Cw,14914
23
23
  mbxai/tools/example.py,sha256=1HgKK39zzUuwFbnp3f0ThyWVfA_8P28PZcTwaUw5K78,2232
24
24
  mbxai/tools/types.py,sha256=pAoVuL7nKhvL3Iek0JheGfll4clsABFLl1CNjmiG3No,5866
25
- mbxai-1.1.0.dist-info/METADATA,sha256=cKWnzgZ223Q-xqZbw3Ra_outHqDwOWmr6B5K9C0ntK8,4147
26
- mbxai-1.1.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
27
- mbxai-1.1.0.dist-info/licenses/LICENSE,sha256=hEyhc4FxwYo3NQ40yNgZ7STqwVk-1_XcTXOnAPbGJAw,1069
28
- mbxai-1.1.0.dist-info/RECORD,,
25
+ mbxai-1.2.0.dist-info/METADATA,sha256=DFvNZD8bWCBKWSBm3H5wnT1bGnrJagJj9qfJfwgodtY,4147
26
+ mbxai-1.2.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
27
+ mbxai-1.2.0.dist-info/licenses/LICENSE,sha256=hEyhc4FxwYo3NQ40yNgZ7STqwVk-1_XcTXOnAPbGJAw,1069
28
+ mbxai-1.2.0.dist-info/RECORD,,
File without changes