unique_toolkit 1.6.0__py3-none-any.whl → 1.8.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.
Files changed (27) hide show
  1. unique_toolkit/agentic/history_manager/history_manager.py +5 -2
  2. unique_toolkit/agentic/tools/a2a/__init__.py +19 -3
  3. unique_toolkit/agentic/tools/a2a/config.py +12 -52
  4. unique_toolkit/agentic/tools/a2a/evaluation/__init__.py +10 -3
  5. unique_toolkit/agentic/tools/a2a/evaluation/_utils.py +66 -0
  6. unique_toolkit/agentic/tools/a2a/evaluation/config.py +13 -2
  7. unique_toolkit/agentic/tools/a2a/evaluation/evaluator.py +82 -89
  8. unique_toolkit/agentic/tools/a2a/manager.py +2 -2
  9. unique_toolkit/agentic/tools/a2a/postprocessing/__init__.py +9 -1
  10. unique_toolkit/agentic/tools/a2a/postprocessing/{display.py → _display.py} +16 -7
  11. unique_toolkit/agentic/tools/a2a/postprocessing/_utils.py +19 -0
  12. unique_toolkit/agentic/tools/a2a/postprocessing/config.py +24 -0
  13. unique_toolkit/agentic/tools/a2a/postprocessing/postprocessor.py +109 -110
  14. unique_toolkit/agentic/tools/a2a/postprocessing/test/test_consolidate_references.py +665 -0
  15. unique_toolkit/agentic/tools/a2a/postprocessing/test/test_display.py +54 -75
  16. unique_toolkit/agentic/tools/a2a/postprocessing/test/test_postprocessor_reference_functions.py +53 -45
  17. unique_toolkit/agentic/tools/a2a/tool/__init__.py +4 -0
  18. unique_toolkit/agentic/tools/a2a/{memory.py → tool/_memory.py} +1 -1
  19. unique_toolkit/agentic/tools/a2a/{schema.py → tool/_schema.py} +0 -6
  20. unique_toolkit/agentic/tools/a2a/tool/config.py +63 -0
  21. unique_toolkit/agentic/tools/a2a/{service.py → tool/service.py} +108 -65
  22. unique_toolkit/agentic/tools/config.py +2 -2
  23. unique_toolkit/agentic/tools/tool_manager.py +1 -2
  24. {unique_toolkit-1.6.0.dist-info → unique_toolkit-1.8.0.dist-info}/METADATA +8 -1
  25. {unique_toolkit-1.6.0.dist-info → unique_toolkit-1.8.0.dist-info}/RECORD +27 -21
  26. {unique_toolkit-1.6.0.dist-info → unique_toolkit-1.8.0.dist-info}/LICENSE +0 -0
  27. {unique_toolkit-1.6.0.dist-info → unique_toolkit-1.8.0.dist-info}/WHEEL +0 -0
@@ -85,9 +85,9 @@ class ToolBuildConfig(BaseModel):
85
85
  configuration = value.get("configuration", {})
86
86
 
87
87
  if is_sub_agent_tool:
88
- from unique_toolkit.agentic.tools.a2a.config import SubAgentToolConfig
88
+ from unique_toolkit.agentic.tools.a2a import ExtendedSubAgentToolConfig
89
89
 
90
- config = SubAgentToolConfig.model_validate(configuration)
90
+ config = ExtendedSubAgentToolConfig.model_validate(configuration)
91
91
  elif isinstance(configuration, dict):
92
92
  # Local import to avoid circular import at module import time
93
93
  from unique_toolkit.agentic.tools.factory import ToolFactory
@@ -5,8 +5,7 @@ from typing import Any
5
5
  from pydantic import BaseModel, Field
6
6
 
7
7
  from unique_toolkit.agentic.evaluation.schemas import EvaluationMetricName
8
- from unique_toolkit.agentic.tools.a2a.manager import A2AManager
9
- from unique_toolkit.agentic.tools.a2a.service import SubAgentTool
8
+ from unique_toolkit.agentic.tools.a2a import A2AManager, SubAgentTool
10
9
  from unique_toolkit.agentic.tools.config import ToolBuildConfig
11
10
  from unique_toolkit.agentic.tools.factory import ToolFactory
12
11
  from unique_toolkit.agentic.tools.mcp.manager import MCPManager
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: unique_toolkit
3
- Version: 1.6.0
3
+ Version: 1.8.0
4
4
  Summary:
5
5
  License: Proprietary
6
6
  Author: Cedric Klinkert
@@ -118,6 +118,13 @@ All notable changes to this project will be documented in this file.
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
120
 
121
+ ## [1.8.0] - 2026-10-03
122
+ - Sub Agents now block when executing the same sub-agent multiple times with `reuse_chat` set to `True`.
123
+ - Sub Agents tool, evaluation and post-processing refactored and tests added.
124
+
125
+ ## [1.7.0] - 2025-10-01
126
+ - Add functionality to remove text in `get_user_visible_chat_history`
127
+
121
128
  ## [1.6.0] - 2025-10-01
122
129
  - revert and simplify 1.5.0
123
130
 
@@ -42,7 +42,7 @@ unique_toolkit/agentic/evaluation/schemas.py,sha256=m9JMCUmeqP8KhsJOVEzsz6dRXUe1
42
42
  unique_toolkit/agentic/evaluation/tests/test_context_relevancy_service.py,sha256=4tDxHTApbaTMxN1sNS8WCqj2BweRk6YqZ5_zHP45jto,7977
43
43
  unique_toolkit/agentic/evaluation/tests/test_output_parser.py,sha256=RN_HcBbU6qy_e_PoYyUFcjWnp3ymJ6-gLj6TgEOupAI,3107
44
44
  unique_toolkit/agentic/history_manager/history_construction_with_contents.py,sha256=c8Zy3erSbHGT8AdICRRlSK91T_FN6tNpTznvUzpLbWk,9023
45
- unique_toolkit/agentic/history_manager/history_manager.py,sha256=_pTo30ktqoAFZZqaqeqU5_lCxk2oRD6qMFNtu6MFhTE,9216
45
+ unique_toolkit/agentic/history_manager/history_manager.py,sha256=1MSFEQtw7jYrcFVEgnTIe6LrGo36WVlutzqTwcFJq5w,9449
46
46
  unique_toolkit/agentic/history_manager/loop_token_reducer.py,sha256=3QSDXZ9M12-cDhYr7-UgDYGEMySkXENt1OkfD0CruQ8,18538
47
47
  unique_toolkit/agentic/history_manager/utils.py,sha256=NDSSz0Jp3oVJU3iKlVScmM1AOe-6hTiVjLr16DUPsV0,5656
48
48
  unique_toolkit/agentic/postprocessor/postprocessor_manager.py,sha256=GDzJhaoOUwxZ37IINkQ7au4CHmAOFS5miP2lqv8ZwZA,4277
@@ -50,23 +50,29 @@ unique_toolkit/agentic/reference_manager/reference_manager.py,sha256=1GeoFX1-RLd
50
50
  unique_toolkit/agentic/short_term_memory_manager/persistent_short_term_memory_manager.py,sha256=uF3HSoZF0hBfuNhIE9N8KRtuwDfpoeXUFVrv_cyZ3Sw,5839
51
51
  unique_toolkit/agentic/thinking_manager/thinking_manager.py,sha256=41QWFsdRrbWlQHBfYCFv726UDom4WbcvaRfjCmoUOQI,4183
52
52
  unique_toolkit/agentic/tools/__init__.py,sha256=-ToY9-Xiz0K7qCUydH1h1yG6n4h1hQS8sBuSVPNEq2Y,43
53
- unique_toolkit/agentic/tools/a2a/__init__.py,sha256=NdY0J33b1G4sbx6UWwNS74JVSAeEtu8u_iEXOT64Uq0,187
54
- unique_toolkit/agentic/tools/a2a/config.py,sha256=3Rp5myYQgPwOq-qmM0OaZDFkovXh9a1YJc8TnieN-K0,1711
55
- unique_toolkit/agentic/tools/a2a/evaluation/__init__.py,sha256=H9YhT22w8EadV9b-6IDqYqKQa41qcA3m6ADzmP7g6Cc,246
56
- unique_toolkit/agentic/tools/a2a/evaluation/config.py,sha256=Is-5AfmxeJx3YejTQehBnN_C-akqA445DlB3yfPNPtE,1803
57
- unique_toolkit/agentic/tools/a2a/evaluation/evaluator.py,sha256=6_WjnmRwj_OFXSo_3SIoO8qC8xG5zHoF0vy9RGtk-fs,8062
53
+ unique_toolkit/agentic/tools/a2a/__init__.py,sha256=QG1fq2mXq8VViG9cV6KbSd9sS0Xqptz8Ji7rS3mhXVA,677
54
+ unique_toolkit/agentic/tools/a2a/config.py,sha256=6diTTSiS2prY294LfYozB-db2wmJ6jv1hAr2leRY-xk,768
55
+ unique_toolkit/agentic/tools/a2a/evaluation/__init__.py,sha256=_cR8uBwLbG7lyXoRskTpItzacgs4n23e2LeqClrytuc,354
56
+ unique_toolkit/agentic/tools/a2a/evaluation/_utils.py,sha256=GtcPAMWkwGwJ--hBxn35ow9jN0VKYx8h2qMUXR8DCho,1877
57
+ unique_toolkit/agentic/tools/a2a/evaluation/config.py,sha256=idOOFUOtxlgeJ3DjsNwvRHAKoB69Iu59z0X_DGfet0I,2159
58
+ unique_toolkit/agentic/tools/a2a/evaluation/evaluator.py,sha256=K4GkVOQwAUofjMF1-ofIGV3XPY1vOnOA8aw6CducRc0,7248
58
59
  unique_toolkit/agentic/tools/a2a/evaluation/summarization_user_message.j2,sha256=acP1YqD_sCy6DT0V2EIfhQTmaUKeqpeWNJ7RGgceo8I,271
59
- unique_toolkit/agentic/tools/a2a/manager.py,sha256=yuuQuBrAcsT3gAWEdxf6EvRnL_iWtvaK14lRs21w5PA,1665
60
- unique_toolkit/agentic/tools/a2a/memory.py,sha256=4VFBzITCv5E_8YCc4iF4Y6FhzplS2C-FZaZHdeC7DyA,1028
61
- unique_toolkit/agentic/tools/a2a/postprocessing/__init__.py,sha256=9M5RRSO4gmQVI1gfve6MGEfVktT9WcELQFZ8Sv6xu4Y,160
62
- unique_toolkit/agentic/tools/a2a/postprocessing/display.py,sha256=rlBWO2M8Lr5Kx-vmvwlV-vEu33BZE4votP-TMr3-3Dw,3366
63
- unique_toolkit/agentic/tools/a2a/postprocessing/postprocessor.py,sha256=-YRA9Ry-smGyDEy5WCbNBqB2jvlVITz5bX96kIIvYOA,8179
64
- unique_toolkit/agentic/tools/a2a/postprocessing/test/test_display.py,sha256=UVOd5tVTltngVfsdOn6cuyvG7QmRBkfgUj_SruTgmHI,15279
65
- unique_toolkit/agentic/tools/a2a/postprocessing/test/test_postprocessor_reference_functions.py,sha256=DgMAhXGYu0dQiTBmNGAAXD0__TR7KKe4RtaPLlnDnAk,11372
66
- unique_toolkit/agentic/tools/a2a/schema.py,sha256=T1l5z6trtPE5nhqPzt5tvfRNDhqL_ST1Wj7_lBWJ58g,304
67
- unique_toolkit/agentic/tools/a2a/service.py,sha256=ySgCZZ_3APPZ8j0sz-7_1CYxfFTvGCSpu0qsUG1YShQ,7916
60
+ unique_toolkit/agentic/tools/a2a/manager.py,sha256=FkO9jY7o8Td0t-HBkkatmxwhJGSJXmYkFYKFhPdbpMo,1674
61
+ unique_toolkit/agentic/tools/a2a/postprocessing/__init__.py,sha256=R90CSecxJrKH7TbwiMYPyTwsXUUmouL8fbEUlL4ee9Q,362
62
+ unique_toolkit/agentic/tools/a2a/postprocessing/_display.py,sha256=_cuQyhZYp10QDRTPjPs8FpAc0DP6q_ko0nrfGbbVeUo,3473
63
+ unique_toolkit/agentic/tools/a2a/postprocessing/_utils.py,sha256=JsWwylR2Ao_L0wk1UlhqeN2fTxPnrbhoi1klYHVBnLk,750
64
+ unique_toolkit/agentic/tools/a2a/postprocessing/config.py,sha256=pu3sCfcBmXD96WCHSUQvmYR9V9F3IH-e0YJg9--AgxM,732
65
+ unique_toolkit/agentic/tools/a2a/postprocessing/postprocessor.py,sha256=EM5AmJJep3Qqa_sM5XKLxUx4J0XxNx6qR0yGhAs0ARM,8286
66
+ unique_toolkit/agentic/tools/a2a/postprocessing/test/test_consolidate_references.py,sha256=0l0OEf2FqYhJvQsvpePJSb2Y8ABSUa3bR-y_zj5G4Vs,26400
67
+ unique_toolkit/agentic/tools/a2a/postprocessing/test/test_display.py,sha256=fly_C4_ykAL8WSAW4w0CGt2EB3eTwIPupKLTPg4lH8M,14240
68
+ unique_toolkit/agentic/tools/a2a/postprocessing/test/test_postprocessor_reference_functions.py,sha256=GxSkkY-Xgd61Bk8sIRfEtkT9hqL1VgPLWrq-6XoB0rA,11360
69
+ unique_toolkit/agentic/tools/a2a/tool/__init__.py,sha256=JIJKZBTLTA39OWhxoUd6uairxmqINur1Ex6iXDk9ef8,197
70
+ unique_toolkit/agentic/tools/a2a/tool/_memory.py,sha256=w8bxjokrqHQZgApd55b5rHXF-DpgJwaKTg4CvLBLamc,1034
71
+ unique_toolkit/agentic/tools/a2a/tool/_schema.py,sha256=wMwyunViTnxaURvenkATEvyfXn5LvLaP0HxbYqdZGls,158
72
+ unique_toolkit/agentic/tools/a2a/tool/config.py,sha256=O026WwKXxUvxR3L1_k7jI8lBScdy7zdeWCg61Ln91Ms,2504
73
+ unique_toolkit/agentic/tools/a2a/tool/service.py,sha256=_lFzRKJI_-A0RoXvvtNBDli71ZUdUsGZvMFlK7j2GgA,9428
68
74
  unique_toolkit/agentic/tools/agent_chunks_hanlder.py,sha256=x32Dp1Z8cVW5i-XzXbaMwX2KHPcNGmqEU-FB4AV9ZGo,1909
69
- unique_toolkit/agentic/tools/config.py,sha256=91Gw92YoTC6WeWa4lfOpXSvIYekCwELcVNkHZZEkW2o,4936
75
+ unique_toolkit/agentic/tools/config.py,sha256=FryDAaTICBcJbkBE7RgTmTA3Yc_4A3ekdVuiixgZ0VI,4945
70
76
  unique_toolkit/agentic/tools/factory.py,sha256=Wt0IGSbLg8ZTq5PU9p_JTW0LtNATWLpc3336irJKXlM,1277
71
77
  unique_toolkit/agentic/tools/mcp/__init__.py,sha256=RLF_p-LDRC7GhiB3fdCi4u3bh6V9PY_w26fg61BLyco,122
72
78
  unique_toolkit/agentic/tools/mcp/manager.py,sha256=DPYwwDe6RSZyuPaxn-je49fP_qOOs0ZV46EM6GZcV4c,2748
@@ -76,7 +82,7 @@ unique_toolkit/agentic/tools/schemas.py,sha256=0ZR8xCdGj1sEdPE0lfTIG2uSR5zqWoprU
76
82
  unique_toolkit/agentic/tools/test/test_mcp_manager.py,sha256=PVRvkK3M21rzONpy5VE_i3vEbAGIz1haW_VPVwiPDI0,15724
77
83
  unique_toolkit/agentic/tools/test/test_tool_progress_reporter.py,sha256=dod5QPqgGUInVAGXAbsAKNTEypIi6pUEWhDbJr9YfUU,6307
78
84
  unique_toolkit/agentic/tools/tool.py,sha256=m56VLxiHuKU2_J5foZp00xhm5lTxWEW7zRLGbIE9ssU,6744
79
- unique_toolkit/agentic/tools/tool_manager.py,sha256=Ct8AMtJNwVIY8CGz62R4_Dahc-6Op7tkLURkZMxKuqk,11072
85
+ unique_toolkit/agentic/tools/tool_manager.py,sha256=I7REeKGn_XbgQGelNPyzUMHnUlK_BgWf0LaLNZzAePA,11012
80
86
  unique_toolkit/agentic/tools/tool_progress_reporter.py,sha256=ixud9VoHey1vlU1t86cW0-WTvyTwMxNSWBon8I11SUk,7955
81
87
  unique_toolkit/agentic/tools/utils/__init__.py,sha256=iD1YYzf9LcJFv95Z8BqCAFSewNBabybZRZyvPKGfvro,27
82
88
  unique_toolkit/agentic/tools/utils/execution/__init__.py,sha256=OHiKpqBnfhBiEQagKVWJsZlHv8smPp5OI4dFIexzibw,37
@@ -138,7 +144,7 @@ unique_toolkit/short_term_memory/schemas.py,sha256=OhfcXyF6ACdwIXW45sKzjtZX_gkcJ
138
144
  unique_toolkit/short_term_memory/service.py,sha256=5PeVBu1ZCAfyDb2HLVvlmqSbyzBBuE9sI2o9Aajqjxg,8884
139
145
  unique_toolkit/smart_rules/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
140
146
  unique_toolkit/smart_rules/compile.py,sha256=cxWjb2dxEI2HGsakKdVCkSNi7VK9mr08w5sDcFCQyWI,9553
141
- unique_toolkit-1.6.0.dist-info/LICENSE,sha256=GlN8wHNdh53xwOPg44URnwag6TEolCjoq3YD_KrWgss,193
142
- unique_toolkit-1.6.0.dist-info/METADATA,sha256=35ET4vLnor1H1jw5K4u19CDHiTtihtW4nCBfcyg7dLA,34567
143
- unique_toolkit-1.6.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
144
- unique_toolkit-1.6.0.dist-info/RECORD,,
147
+ unique_toolkit-1.8.0.dist-info/LICENSE,sha256=GlN8wHNdh53xwOPg44URnwag6TEolCjoq3YD_KrWgss,193
148
+ unique_toolkit-1.8.0.dist-info/METADATA,sha256=wNOLxR-tQP2MU3oZHQlLpH97-wq5x0hDTp8MPsPCo2o,34870
149
+ unique_toolkit-1.8.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
150
+ unique_toolkit-1.8.0.dist-info/RECORD,,