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 +1 -1
- mbxai/mcp/server.py +1 -1
- mbxai/openrouter/client.py +6 -6
- mbxai/tools/client.py +2 -4
- {mbxai-1.1.0.dist-info → mbxai-1.2.0.dist-info}/METADATA +1 -1
- {mbxai-1.1.0.dist-info → mbxai-1.2.0.dist-info}/RECORD +8 -8
- {mbxai-1.1.0.dist-info → mbxai-1.2.0.dist-info}/WHEEL +0 -0
- {mbxai-1.1.0.dist-info → mbxai-1.2.0.dist-info}/licenses/LICENSE +0 -0
mbxai/__init__.py
CHANGED
mbxai/mcp/server.py
CHANGED
mbxai/openrouter/client.py
CHANGED
@@ -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.
|
238
|
-
logger.
|
239
|
-
logger.
|
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.
|
435
|
-
logger.
|
436
|
-
logger.
|
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"
|
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"
|
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,4 +1,4 @@
|
|
1
|
-
mbxai/__init__.py,sha256=
|
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=
|
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=
|
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=
|
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.
|
26
|
-
mbxai-1.
|
27
|
-
mbxai-1.
|
28
|
-
mbxai-1.
|
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
|
File without changes
|