unique_toolkit 1.38.2__py3-none-any.whl → 1.38.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.
@@ -2,15 +2,15 @@ import asyncio
2
2
  from abc import ABC
3
3
  from logging import Logger
4
4
 
5
+ from unique_toolkit._common.execution import (
6
+ Result,
7
+ SafeTaskExecutor,
8
+ )
5
9
  from unique_toolkit.agentic.evaluation.schemas import (
6
10
  EvaluationAssessmentMessage,
7
11
  EvaluationMetricName,
8
12
  EvaluationMetricResult,
9
13
  )
10
- from unique_toolkit.agentic.tools.utils.execution.execution import (
11
- Result,
12
- SafeTaskExecutor,
13
- )
14
14
  from unique_toolkit.chat.schemas import (
15
15
  ChatMessageAssessmentStatus,
16
16
  ChatMessageAssessmentType,
@@ -5,6 +5,7 @@ from typing import Unpack
5
5
  from pydantic import BaseModel, Field
6
6
 
7
7
  from unique_toolkit import LanguageModelService
8
+ from unique_toolkit._common.execution import failsafe_async
8
9
  from unique_toolkit._common.pydantic_helpers import get_configuration_dict
9
10
  from unique_toolkit.agentic.history_manager.history_manager import HistoryManager
10
11
  from unique_toolkit.agentic.loop_runner.base import (
@@ -15,7 +16,6 @@ from unique_toolkit.agentic.loop_runner.middleware.planning.schema import (
15
16
  PlanningSchemaConfig,
16
17
  get_planning_schema,
17
18
  )
18
- from unique_toolkit.agentic.tools.utils import failsafe_async
19
19
  from unique_toolkit.chat.service import LanguageModelStreamResponse
20
20
  from unique_toolkit.language_model import (
21
21
  LanguageModelAssistantMessage,
@@ -2,7 +2,7 @@ import asyncio
2
2
  from abc import ABC
3
3
  from logging import Logger
4
4
 
5
- from unique_toolkit.agentic.tools.utils.execution.execution import SafeTaskExecutor
5
+ from unique_toolkit._common.execution import SafeTaskExecutor
6
6
  from unique_toolkit.chat.service import ChatService
7
7
  from unique_toolkit.language_model.schemas import (
8
8
  LanguageModelStreamResponse,
@@ -9,6 +9,7 @@ from openai.types.responses.response_output_text import AnnotationContainerFileC
9
9
  from pydantic import BaseModel, Field, RootModel
10
10
 
11
11
  from unique_toolkit import ChatService
12
+ from unique_toolkit._common.execution import failsafe_async
12
13
  from unique_toolkit.agentic.postprocessor.postprocessor_manager import (
13
14
  ResponsesApiPostprocessor,
14
15
  )
@@ -16,7 +17,6 @@ from unique_toolkit.agentic.short_term_memory_manager.persistent_short_term_memo
16
17
  PersistentShortMemoryManager,
17
18
  )
18
19
  from unique_toolkit.agentic.tools.config import get_configuration_dict
19
- from unique_toolkit.agentic.tools.utils import failsafe_async
20
20
  from unique_toolkit.content.schemas import ContentReference
21
21
  from unique_toolkit.content.service import ContentService
22
22
  from unique_toolkit.language_model.schemas import ResponsesLanguageModelStreamResponse
@@ -5,7 +5,7 @@ from typing import Generic, Type, TypeVar
5
5
 
6
6
  from pydantic import BaseModel
7
7
 
8
- from unique_toolkit.agentic.tools.utils.execution.execution import SafeTaskExecutor
8
+ from unique_toolkit._common.execution import SafeTaskExecutor
9
9
  from unique_toolkit.short_term_memory.schemas import ShortTermMemory
10
10
  from unique_toolkit.short_term_memory.service import ShortTermMemoryService
11
11
 
@@ -5,6 +5,7 @@ import unique_sdk
5
5
  from jinja2 import Template
6
6
  from pydantic import BaseModel
7
7
 
8
+ from unique_toolkit._common.execution import failsafe
8
9
  from unique_toolkit.agentic.evaluation.evaluation_manager import Evaluation
9
10
  from unique_toolkit.agentic.evaluation.schemas import (
10
11
  EvaluationAssessmentMessage,
@@ -24,7 +25,6 @@ from unique_toolkit.agentic.tools.a2a.response_watcher import (
24
25
  SubAgentResponse,
25
26
  SubAgentResponseWatcher,
26
27
  )
27
- from unique_toolkit.agentic.tools.utils import failsafe
28
28
  from unique_toolkit.chat.schemas import (
29
29
  ChatMessageAssessmentLabel,
30
30
  ChatMessageAssessmentStatus,
@@ -11,6 +11,10 @@ from openai.types.responses import (
11
11
  )
12
12
  from pydantic import BaseModel, Field
13
13
 
14
+ from unique_toolkit._common.execution import (
15
+ Result,
16
+ SafeTaskExecutor,
17
+ )
14
18
  from unique_toolkit.agentic.evaluation.schemas import EvaluationMetricName
15
19
  from unique_toolkit.agentic.tools.a2a import A2AManager, SubAgentTool
16
20
  from unique_toolkit.agentic.tools.config import ToolBuildConfig
@@ -24,10 +28,6 @@ from unique_toolkit.agentic.tools.openai_builtin.manager import OpenAIBuiltInToo
24
28
  from unique_toolkit.agentic.tools.schemas import ToolCallResponse, ToolPrompts
25
29
  from unique_toolkit.agentic.tools.tool import Tool
26
30
  from unique_toolkit.agentic.tools.tool_progress_reporter import ToolProgressReporter
27
- from unique_toolkit.agentic.tools.utils.execution.execution import (
28
- Result,
29
- SafeTaskExecutor,
30
- )
31
31
  from unique_toolkit.app.schemas import ChatEvent
32
32
  from unique_toolkit.language_model.schemas import (
33
33
  LanguageModelFunction,
@@ -1,19 +0,0 @@
1
- """Utilities for tools."""
2
-
3
- from unique_toolkit.agentic.tools.utils.execution.execution import (
4
- Result,
5
- SafeTaskExecutor,
6
- failsafe,
7
- failsafe_async,
8
- safe_execute,
9
- safe_execute_async,
10
- )
11
-
12
- __all__ = [
13
- "failsafe",
14
- "failsafe_async",
15
- "safe_execute",
16
- "safe_execute_async",
17
- "SafeTaskExecutor",
18
- "Result",
19
- ]
@@ -14,7 +14,7 @@ from openai.types.responses import (
14
14
  from openai.types.shared_params import Metadata, Reasoning
15
15
  from pydantic import BaseModel, TypeAdapter, ValidationError
16
16
 
17
- from unique_toolkit.agentic.tools.utils.execution.execution import (
17
+ from unique_toolkit._common.execution import (
18
18
  failsafe,
19
19
  )
20
20
  from unique_toolkit.content.schemas import ContentChunk
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: unique_toolkit
3
- Version: 1.38.2
3
+ Version: 1.38.3
4
4
  Summary:
5
5
  License: Proprietary
6
6
  Author: Cedric Klinkert
@@ -121,6 +121,9 @@ All notable changes to this project will be documented in this file.
121
121
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
122
122
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
123
123
 
124
+ ## [1.38.3] - 2025-12-17
125
+ - Move the failsafe exception to root folder of unique_toolkit from agentic tools
126
+
124
127
  ## [1.38.2] - 2025-12-17
125
128
  - Fixing bug that language model infos were not loaded correctly
126
129
 
@@ -17,6 +17,7 @@ unique_toolkit/_common/docx_generator/template/Doc Template.docx,sha256=USnCg8h6
17
17
  unique_toolkit/_common/endpoint_builder.py,sha256=pEDwgeDzt67qbyaM98u8X7UAy29mQIw9Qufjz2bxgEA,11410
18
18
  unique_toolkit/_common/endpoint_requestor.py,sha256=TBLYUVpfdYIPpeKfEVYfH8BrNxnn4yAcSUjfdVDkT78,15443
19
19
  unique_toolkit/_common/exception.py,sha256=ho0uBcPeZXU2w15IrSBhO5w7KUgxp1HcKAQrf2uin-w,1243
20
+ unique_toolkit/_common/execution.py,sha256=ocPGGfUwa851207HNTLYiBJ1pNzJp4VhMZ49OPP33gU,8022
20
21
  unique_toolkit/_common/experimental/endpoint_builder.py,sha256=pEDwgeDzt67qbyaM98u8X7UAy29mQIw9Qufjz2bxgEA,11410
21
22
  unique_toolkit/_common/experimental/endpoint_requestor.py,sha256=YnDr8wASAEjZjLAeBmOWuFn4wUIZslTHBN_aApWeJBA,16079
22
23
  unique_toolkit/_common/feature_flags/schema.py,sha256=X32VqH4VMK7bhEfSd8Wbddl8FVs7Gh7ucuIEbmqc4Kw,268
@@ -47,7 +48,7 @@ unique_toolkit/agentic/evaluation/config.py,sha256=zcW7m63Yt5G39hN2If8slBl6Eu3jT
47
48
  unique_toolkit/agentic/evaluation/context_relevancy/prompts.py,sha256=EdHFUOB581yVxcOL8482KUv_LzaRjuiem71EF8udYMc,1331
48
49
  unique_toolkit/agentic/evaluation/context_relevancy/schema.py,sha256=lZd0TPzH43ifgWWGg3WO6b1AQX8aK2R9y51yH0d1DHM,2919
49
50
  unique_toolkit/agentic/evaluation/context_relevancy/service.py,sha256=2NM1_PCP6fXsRm0r-MGrUg5Z3WO00FBCqmiU8f5Kagg,9661
50
- unique_toolkit/agentic/evaluation/evaluation_manager.py,sha256=IPx4BVUgkjFOP1BGLi0BlB6UujpXlZ0KGuSXDRemQhY,8143
51
+ unique_toolkit/agentic/evaluation/evaluation_manager.py,sha256=wDN_Uuut9kEGek8JY3QeInKpF-ukbvOSKOVd7DHFT3Q,8121
51
52
  unique_toolkit/agentic/evaluation/exception.py,sha256=7lcVbCyoN4Md1chNJDFxpUYyWbVrcr9dcc3TxWykJTc,115
52
53
  unique_toolkit/agentic/evaluation/hallucination/constants.py,sha256=SoGmoYti2J33tSmmOC1BSF6Pkh8DQvbQAU9xIZFQZRs,2070
53
54
  unique_toolkit/agentic/evaluation/hallucination/hallucination_evaluation.py,sha256=x5ta2Fum4fE5ySgIXPKlnbTtmV140z0IazSATd0-REg,4092
@@ -67,7 +68,7 @@ unique_toolkit/agentic/loop_runner/_stream_handler_utils.py,sha256=FTGc5y8wkDnwn
67
68
  unique_toolkit/agentic/loop_runner/base.py,sha256=3g4PalzV00o8kcRwHds2c2rtxW4idD7_7vS2Z7GkMvQ,1370
68
69
  unique_toolkit/agentic/loop_runner/middleware/__init__.py,sha256=r9c_Ml2g7obglnEC7gDihSTUrZ6s1sNGCMuMXR0Yl90,520
69
70
  unique_toolkit/agentic/loop_runner/middleware/planning/__init__.py,sha256=Y9MlihNA8suNREixW98RF45bj0EMtD_tQuDrO2MEML4,304
70
- unique_toolkit/agentic/loop_runner/middleware/planning/planning.py,sha256=5d8kyipuFyI_1SQG49f165eOwSHeSG1qjbJQ7laeTsk,3218
71
+ unique_toolkit/agentic/loop_runner/middleware/planning/planning.py,sha256=s6SAP3BCCExgwnyRj_bZTaWgTOiNVju5qcJA0WFUUoE,3216
71
72
  unique_toolkit/agentic/loop_runner/middleware/planning/schema.py,sha256=76C36CWCLfDAYYqtaQlhXsmkWM1fCqf8j-l5afQREKA,2869
72
73
  unique_toolkit/agentic/loop_runner/middleware/qwen_forced_tool_call/__init__.py,sha256=lP8N8XLvV1irvGC6Q0FedAlBx-T2UPKotDRwkdx7neA,417
73
74
  unique_toolkit/agentic/loop_runner/middleware/qwen_forced_tool_call/helpers.py,sha256=DGKW9i7mCXNTejO2fotCmqSzI2b5k89ybkJA0QQ75qU,1234
@@ -76,13 +77,13 @@ unique_toolkit/agentic/loop_runner/runners/__init__.py,sha256=raaNpHcTfXkYURy0ys
76
77
  unique_toolkit/agentic/loop_runner/runners/basic.py,sha256=SQzwkLEiraU8neXvPEc_uOBzC17PkCpOEsFrZ79YGCY,3379
77
78
  unique_toolkit/agentic/message_log_manager/__init__.py,sha256=3-KY_sGkPbNoSnrzwPY0FQIJNnsz4NHXvocXgGRUeuE,169
78
79
  unique_toolkit/agentic/message_log_manager/service.py,sha256=AiuIq2dKQg9Y8bEYgGcve1X8-WRRdqPZXaZXXLJxfFM,3057
79
- unique_toolkit/agentic/postprocessor/postprocessor_manager.py,sha256=s6HFhA61TE05aAay15NFTWI1JvdSlxmGpEVfpBbGFyM,7684
80
+ unique_toolkit/agentic/postprocessor/postprocessor_manager.py,sha256=CoKzVFeLIr1eRP3ZLnmUJ8KNsFLyvK5iuvUilbcGAm0,7662
80
81
  unique_toolkit/agentic/reference_manager/reference_manager.py,sha256=x51CT0D8HHu2LzgXdHGy0leOYpjnsxVbPZ2nc28G9mA,4005
81
82
  unique_toolkit/agentic/responses_api/__init__.py,sha256=9WTO-ef7fGE9Y1QtZJFm8Q_jkwK8Srtl-HWvpAD2Wxs,668
82
83
  unique_toolkit/agentic/responses_api/postprocessors/code_display.py,sha256=h6ZqPR0kPQnxM0ynshYQTa1BrcN8XGbUz9p03m8rOj0,2339
83
- unique_toolkit/agentic/responses_api/postprocessors/generated_files.py,sha256=ZdxJQQlD5K2Arn_NJVQNzIUwp-q5SmIE17o-UquTa0A,11691
84
+ unique_toolkit/agentic/responses_api/postprocessors/generated_files.py,sha256=Bywzf0SVwdzvWbNJbsMU4T43IclIqlUO_adCo7xaU7U,11689
84
85
  unique_toolkit/agentic/responses_api/stream_handler.py,sha256=Y1IM0uiPBdlab5UuOTCsHTaVX-fd9MxfS3xkwhdFie4,647
85
- unique_toolkit/agentic/short_term_memory_manager/persistent_short_term_memory_manager.py,sha256=uF3HSoZF0hBfuNhIE9N8KRtuwDfpoeXUFVrv_cyZ3Sw,5839
86
+ unique_toolkit/agentic/short_term_memory_manager/persistent_short_term_memory_manager.py,sha256=g8I64dKkpwWIXfwpxD1-rLte00hh_PoQ9-fXUAcNQCo,5817
86
87
  unique_toolkit/agentic/thinking_manager/thinking_manager.py,sha256=41QWFsdRrbWlQHBfYCFv726UDom4WbcvaRfjCmoUOQI,4183
87
88
  unique_toolkit/agentic/tools/__init__.py,sha256=-ToY9-Xiz0K7qCUydH1h1yG6n4h1hQS8sBuSVPNEq2Y,43
88
89
  unique_toolkit/agentic/tools/a2a/__init__.py,sha256=41DntFL-YKOQFBxObfrhlKmMj2BD0Zx611U1qSSyL9E,1329
@@ -90,7 +91,7 @@ unique_toolkit/agentic/tools/a2a/config.py,sha256=6diTTSiS2prY294LfYozB-db2wmJ6j
90
91
  unique_toolkit/agentic/tools/a2a/evaluation/__init__.py,sha256=Efso468EQ4UANv140qcrRPCdX98-OQJfnrLqhgJ9pfE,412
91
92
  unique_toolkit/agentic/tools/a2a/evaluation/_utils.py,sha256=FO5_us6mC4t_X4OVtNei1Ife4SjMjCiFOsPhUHUsY-s,1878
92
93
  unique_toolkit/agentic/tools/a2a/evaluation/config.py,sha256=Ra5rzJArS3r8C7RTmzKB8cLEYh4w-u3pe_XLgul3GOA,2355
93
- unique_toolkit/agentic/tools/a2a/evaluation/evaluator.py,sha256=AJvXu0UJKHe72nRmFZQjmBqxglSNDpYk_Tup3jJ8irg,9388
94
+ unique_toolkit/agentic/tools/a2a/evaluation/evaluator.py,sha256=74ceLV-2zye0MANxhsEt7oG8KSxYT1_HMnlwUAi7tXw,9386
94
95
  unique_toolkit/agentic/tools/a2a/evaluation/summarization_user_message.j2,sha256=acP1YqD_sCy6DT0V2EIfhQTmaUKeqpeWNJ7RGgceo8I,271
95
96
  unique_toolkit/agentic/tools/a2a/manager.py,sha256=pk06UUXKQdIUY-PyykYiItubBjmIydOaqWvBBDwhMN4,1939
96
97
  unique_toolkit/agentic/tools/a2a/postprocessing/__init__.py,sha256=aVtUBPN7kDrqA6Bze34AbqQpcBBqpvfyJG-xF65w7R0,659
@@ -128,11 +129,9 @@ unique_toolkit/agentic/tools/schemas.py,sha256=TXshRvivr2hD-McXHumO0bp-Z0mz_GnAm
128
129
  unique_toolkit/agentic/tools/test/test_mcp_manager.py,sha256=VpB4k4Dh0lQWakilJMQSzO8sBXapuEC26cub_lorl-M,19221
129
130
  unique_toolkit/agentic/tools/test/test_tool_progress_reporter.py,sha256=XHNezB8itj9KzpQgD0cwRtp2AgRUfUkQsHc3bTyPj6c,15801
130
131
  unique_toolkit/agentic/tools/tool.py,sha256=YmhGZ-NkPlgQ4X1hA6IVod10LNM5YErzbd0Zn6ANA98,6529
131
- unique_toolkit/agentic/tools/tool_manager.py,sha256=ZwzCcjzHYZgB1FxrpKRmarepfaZknIhLilxeyKoe4BY,17541
132
+ unique_toolkit/agentic/tools/tool_manager.py,sha256=zwpIxPUl1SamqGUUwgl0X4H-IR0ZpGjaqvszDLYy7ig,17519
132
133
  unique_toolkit/agentic/tools/tool_progress_reporter.py,sha256=GaR0oqDUJZvBB9WCUVYYh0Zvs6U-LMygJCCrqPlitgA,10296
133
- unique_toolkit/agentic/tools/utils/__init__.py,sha256=s75sjY5nrJchjLGs3MwSIqhDW08fFXIaX7eRQjFIA4s,346
134
- unique_toolkit/agentic/tools/utils/execution/__init__.py,sha256=OHiKpqBnfhBiEQagKVWJsZlHv8smPp5OI4dFIexzibw,37
135
- unique_toolkit/agentic/tools/utils/execution/execution.py,sha256=ocPGGfUwa851207HNTLYiBJ1pNzJp4VhMZ49OPP33gU,8022
134
+ unique_toolkit/agentic/tools/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
136
135
  unique_toolkit/agentic/tools/utils/source_handling/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
137
136
  unique_toolkit/agentic/tools/utils/source_handling/schema.py,sha256=iHBKuks6tUy8tvian4Pd0B6_-8__SehVVNcxIUAUjEA,882
138
137
  unique_toolkit/agentic/tools/utils/source_handling/source_formatting.py,sha256=uZ0QXqrPWgId3ZA67dvjHQ6xrW491LK1xxx_sVJmFHg,9160
@@ -153,7 +152,7 @@ unique_toolkit/chat/constants.py,sha256=05kq6zjqUVB2d6_P7s-90nbljpB3ryxwCI-CAz0r
153
152
  unique_toolkit/chat/deprecated/service.py,sha256=CYwzXi7OB0RjHd73CO2jq8SlpdBmDYLatzPFkb5sA0k,6529
154
153
  unique_toolkit/chat/functions.py,sha256=VdehD26NnsEhBsV5tD0tgUFD4LuEqIYgz8wWSsxYFgA,46078
155
154
  unique_toolkit/chat/rendering.py,sha256=c8YiV9oADRrJQ5A_QBJ4_UFc0NZ-2vVaa7tupoMusso,880
156
- unique_toolkit/chat/responses_api.py,sha256=MCI1MR_4wlo9xY1ifH2daNz4JvjX18uPdryQlemaeLw,14488
155
+ unique_toolkit/chat/responses_api.py,sha256=K_3lY8PUmey2io_enx_WY3hxE7TmMZueeIBG2hYa8KY,14466
157
156
  unique_toolkit/chat/schemas.py,sha256=Zh903Xt9PhugvwzoC_k5KXQWAqllWHvj9DmqDVom2yk,6890
158
157
  unique_toolkit/chat/service.py,sha256=6D00OL4QrGafbOhTaC5zNXaNgg7gS5W_2ePVa4LhqpE,4439
159
158
  unique_toolkit/chat/state.py,sha256=Cjgwv_2vhDFbV69xxsn7SefhaoIAEqLx3ferdVFCnOg,1445
@@ -212,7 +211,7 @@ unique_toolkit/short_term_memory/service.py,sha256=5PeVBu1ZCAfyDb2HLVvlmqSbyzBBu
212
211
  unique_toolkit/smart_rules/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
213
212
  unique_toolkit/smart_rules/compile.py,sha256=Ozhh70qCn2yOzRWr9d8WmJeTo7AQurwd3tStgBMPFLA,1246
214
213
  unique_toolkit/test_utilities/events.py,sha256=_mwV2bs5iLjxS1ynDCjaIq-gjjKhXYCK-iy3dRfvO3g,6410
215
- unique_toolkit-1.38.2.dist-info/LICENSE,sha256=GlN8wHNdh53xwOPg44URnwag6TEolCjoq3YD_KrWgss,193
216
- unique_toolkit-1.38.2.dist-info/METADATA,sha256=2ZglK0rXlPIPEkPJIOui1aQlBND2oCzd-C72_7z1gN0,46611
217
- unique_toolkit-1.38.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
218
- unique_toolkit-1.38.2.dist-info/RECORD,,
214
+ unique_toolkit-1.38.3.dist-info/LICENSE,sha256=GlN8wHNdh53xwOPg44URnwag6TEolCjoq3YD_KrWgss,193
215
+ unique_toolkit-1.38.3.dist-info/METADATA,sha256=j1ShZRPTiF_uFVPMgzoTwok8oHJ4XGuJVcwe5R7N6us,46719
216
+ unique_toolkit-1.38.3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
217
+ unique_toolkit-1.38.3.dist-info/RECORD,,
@@ -1 +0,0 @@
1
- """Execution utilities for tools."""