unique_toolkit 1.16.2__py3-none-any.whl → 1.16.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.
@@ -1,4 +1,5 @@
1
1
  import json
2
+ import logging
2
3
  from typing import Any, Dict
3
4
 
4
5
  import unique_sdk
@@ -19,6 +20,8 @@ from unique_toolkit.language_model.schemas import (
19
20
  LanguageModelToolDescription,
20
21
  )
21
22
 
23
+ logger = logging.getLogger(__name__)
24
+
22
25
 
23
26
  class MCPToolWrapper(Tool[MCPToolConfig]):
24
27
  """Wrapper class for MCP tools that implements the Tool interface"""
@@ -39,7 +42,15 @@ class MCPToolWrapper(Tool[MCPToolConfig]):
39
42
  def tool_description(self) -> LanguageModelToolDescription:
40
43
  """Convert MCP tool schema to LanguageModelToolDescription"""
41
44
  # Create a Pydantic model from the MCP tool's input schema
45
+ logger.info(
46
+ "MCP tool %s schema %s", self._mcp_tool.name, self._mcp_tool.input_schema
47
+ )
42
48
  parameters_model = self._create_parameters_model()
49
+ logger.info(
50
+ "MCP tool %s contructed params %s",
51
+ self._mcp_tool.name,
52
+ parameters_model.model_json_schema(),
53
+ )
43
54
 
44
55
  return LanguageModelToolDescription(
45
56
  name=self.name,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: unique_toolkit
3
- Version: 1.16.2
3
+ Version: 1.16.3
4
4
  Summary:
5
5
  License: Proprietary
6
6
  Author: Cedric Klinkert
@@ -117,6 +117,10 @@ All notable changes to this project will be documented in this file.
117
117
 
118
118
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
119
119
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
120
+
121
+ ## [1.16.3] - 2025-10-18
122
+ - Add logging of MCP tool schema and constructed parameters
123
+
120
124
  ## [1.16.2] - 2025-10-16
121
125
  - Reduce operation dependency on path instead of full url
122
126
 
@@ -84,7 +84,7 @@ unique_toolkit/agentic/tools/factory.py,sha256=A1Aliwx037UAk9ADiDsg0zjCWWnvzV_Px
84
84
  unique_toolkit/agentic/tools/mcp/__init__.py,sha256=RLF_p-LDRC7GhiB3fdCi4u3bh6V9PY_w26fg61BLyco,122
85
85
  unique_toolkit/agentic/tools/mcp/manager.py,sha256=DPYwwDe6RSZyuPaxn-je49fP_qOOs0ZV46EM6GZcV4c,2748
86
86
  unique_toolkit/agentic/tools/mcp/models.py,sha256=OyCCb7Vwv1ftzC_OCpFkf3TX9Aeb74ZZagG-qK5peIU,722
87
- unique_toolkit/agentic/tools/mcp/tool_wrapper.py,sha256=5UdtqFtZ0aqjae2eL3zVacDMfr1hu5KiQkaoI7VkhqA,9972
87
+ unique_toolkit/agentic/tools/mcp/tool_wrapper.py,sha256=Pjgzg_Ew20-82UCh6AqTQmPSKvalMDKJtV10mRQIHiA,10304
88
88
  unique_toolkit/agentic/tools/openai_builtin/__init__.py,sha256=NdVjkTa3LbW-JHhzPRjinTmgOCtEv090Zr9jGZXmgqs,345
89
89
  unique_toolkit/agentic/tools/openai_builtin/base.py,sha256=2Lw47XworwwkIQBQW5S1T6HS2mWqx13lx50moAMekRk,808
90
90
  unique_toolkit/agentic/tools/openai_builtin/code_interpreter/__init__.py,sha256=w2vONpnC6hKRPoJGwzDuRtNBsQd_o-gMUqArgIl_5KY,305
@@ -165,7 +165,7 @@ unique_toolkit/short_term_memory/service.py,sha256=5PeVBu1ZCAfyDb2HLVvlmqSbyzBBu
165
165
  unique_toolkit/smart_rules/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
166
166
  unique_toolkit/smart_rules/compile.py,sha256=Ozhh70qCn2yOzRWr9d8WmJeTo7AQurwd3tStgBMPFLA,1246
167
167
  unique_toolkit/test_utilities/events.py,sha256=_mwV2bs5iLjxS1ynDCjaIq-gjjKhXYCK-iy3dRfvO3g,6410
168
- unique_toolkit-1.16.2.dist-info/LICENSE,sha256=GlN8wHNdh53xwOPg44URnwag6TEolCjoq3YD_KrWgss,193
169
- unique_toolkit-1.16.2.dist-info/METADATA,sha256=x7WrizUo_LYUUzuW5XwaOATe89GBQpT0v2_KQUlAXAo,37600
170
- unique_toolkit-1.16.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
171
- unique_toolkit-1.16.2.dist-info/RECORD,,
168
+ unique_toolkit-1.16.3.dist-info/LICENSE,sha256=GlN8wHNdh53xwOPg44URnwag6TEolCjoq3YD_KrWgss,193
169
+ unique_toolkit-1.16.3.dist-info/METADATA,sha256=-cjUgbbqgO5hXcS_7rJZII5FJLfYjVBMW8BbTFmYGzo,37687
170
+ unique_toolkit-1.16.3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
171
+ unique_toolkit-1.16.3.dist-info/RECORD,,