mbxai 0.7.1__py3-none-any.whl → 0.7.3__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.7.1"
5
+ __version__ = "0.7.3"
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.7.1",
34
+ version="0.7.3",
35
35
  )
36
36
 
37
37
  # Initialize MCP server
@@ -214,10 +214,12 @@ class OpenRouterClient:
214
214
 
215
215
  # Log response details
216
216
  logger.info("Received response from OpenRouter")
217
+ # Log the actual response content
218
+ logger.info(f"Response content: {response}")
217
219
  if hasattr(response, 'output'):
218
220
  logger.info(f"Response output length: {len(response.output) if response.output else 0}")
219
- if hasattr(response, 'tool_calls'):
220
- logger.info(f"Response includes {len(response.tool_calls)} tool calls")
221
+ if hasattr(response, 'output_text'):
222
+ logger.info(f"Response output_text length: {len(response.output_text) if response.output_text else 0}")
221
223
 
222
224
  return response
223
225
 
mbxai/tools/client.py CHANGED
@@ -224,7 +224,7 @@ class ToolClient:
224
224
  return response
225
225
 
226
226
  # Parse the response output
227
- output = response.output
227
+ output = response.output if response.output else response.output_text
228
228
 
229
229
  # Get all function calls from the output
230
230
  tool_calls = []
@@ -286,7 +286,7 @@ class ToolClient:
286
286
  # Continue the conversation after processing all calls
287
287
  continue
288
288
  else:
289
- logger.info("Added assistant response")
289
+ logger.info("Final response")
290
290
  return response
291
291
 
292
292
  async def parse(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mbxai
3
- Version: 0.7.1
3
+ Version: 0.7.3
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,18 +1,18 @@
1
- mbxai/__init__.py,sha256=b04ZHhDxHhRGITIm9P-7ipelT2KxZfA1ZiICj2ooHHE,47
1
+ mbxai/__init__.py,sha256=sflNtAa93bEQ3SPnfXQIWJWE5DYLm7A4NIYlBvuYHg4,47
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=m3FBMqewv6b8ZJ7V9TnHqHxJ3acHDQDHvbuYhweI9-g,5283
5
5
  mbxai/mcp/example.py,sha256=oaol7AvvZnX86JWNz64KvPjab5gg1VjVN3G8eFSzuaE,2350
6
- mbxai/mcp/server.py,sha256=dLvuETOxKlKIOISvsFqjZm7Gjui_yKsafJAjsoebrCo,3462
6
+ mbxai/mcp/server.py,sha256=ZbLit7PxFdO48Xm4KrIounXAV_ALf2Q5cJu3qurs5VY,3462
7
7
  mbxai/openrouter/__init__.py,sha256=Ito9Qp_B6q-RLGAQcYyTJVWwR2YAZvNqE-HIYXxhtD8,298
8
- mbxai/openrouter/client.py,sha256=w7m3txv1O0KcpzLZM54r8WiH9vkrtDSAP9j5Q2XjMbk,13712
8
+ mbxai/openrouter/client.py,sha256=OEGuD9k9dMglTaxV_pRrf_7RkEHeS_TjE7niVgXSiHY,13848
9
9
  mbxai/openrouter/config.py,sha256=Ia93s-auim9Sq71eunVDbn9ET5xX2zusXpV4JBdHAzs,3251
10
10
  mbxai/openrouter/models.py,sha256=b3IjjtZAjeGOf2rLsdnCD1HacjTnS8jmv_ZXorc-KJQ,2604
11
11
  mbxai/tools/__init__.py,sha256=ogxrHvgJ7OR62Lmd5x9Eh5d2C0jqWyQis7Zy3yKpZ78,218
12
- mbxai/tools/client.py,sha256=uubKrzz_T_EAwkCMh3jo8ylWYJ41_KdFhj3-Tyuvc3g,16006
12
+ mbxai/tools/client.py,sha256=KEFs-r97c4YD-DIZnJNUoSnIWQL-cwIZ4YUYqT6OIoo,16041
13
13
  mbxai/tools/example.py,sha256=1HgKK39zzUuwFbnp3f0ThyWVfA_8P28PZcTwaUw5K78,2232
14
14
  mbxai/tools/types.py,sha256=PEJ2AxBqywbJCp689QZhG87rDHWNuKGnmB5CCQsAMlw,5251
15
- mbxai-0.7.1.dist-info/METADATA,sha256=_zFLBe8WFVEyU_5JeHNrNzzDaA673EoxXtuRfUTkVJs,4147
16
- mbxai-0.7.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
17
- mbxai-0.7.1.dist-info/licenses/LICENSE,sha256=hEyhc4FxwYo3NQ40yNgZ7STqwVk-1_XcTXOnAPbGJAw,1069
18
- mbxai-0.7.1.dist-info/RECORD,,
15
+ mbxai-0.7.3.dist-info/METADATA,sha256=Wi6jbZUKDixNyKgYQ8tkPyQa11PApYt4lixf-d9ICOI,4147
16
+ mbxai-0.7.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
17
+ mbxai-0.7.3.dist-info/licenses/LICENSE,sha256=hEyhc4FxwYo3NQ40yNgZ7STqwVk-1_XcTXOnAPbGJAw,1069
18
+ mbxai-0.7.3.dist-info/RECORD,,
File without changes