unique_orchestrator 1.2.3__py3-none-any.whl → 1.2.4__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.
Potentially problematic release.
This version of unique_orchestrator might be problematic. Click here for more details.
- unique_orchestrator/unique_ai.py +9 -2
- {unique_orchestrator-1.2.3.dist-info → unique_orchestrator-1.2.4.dist-info}/METADATA +4 -1
- {unique_orchestrator-1.2.3.dist-info → unique_orchestrator-1.2.4.dist-info}/RECORD +5 -5
- {unique_orchestrator-1.2.3.dist-info → unique_orchestrator-1.2.4.dist-info}/LICENSE +0 -0
- {unique_orchestrator-1.2.3.dist-info → unique_orchestrator-1.2.4.dist-info}/WHEEL +0 -0
unique_orchestrator/unique_ai.py
CHANGED
|
@@ -71,6 +71,9 @@ class UniqueAI:
|
|
|
71
71
|
self._latest_assistant_id: str = event.payload.assistant_message.id
|
|
72
72
|
self._mcp_servers = mcp_servers
|
|
73
73
|
|
|
74
|
+
# Helper variable to support control loop
|
|
75
|
+
self._tool_took_control = False
|
|
76
|
+
|
|
74
77
|
############################################################
|
|
75
78
|
# Override of base methods
|
|
76
79
|
############################################################
|
|
@@ -125,8 +128,9 @@ class UniqueAI:
|
|
|
125
128
|
loop_response
|
|
126
129
|
)
|
|
127
130
|
|
|
131
|
+
# Only set completed_at if no tool took control. Tools that take control will set the message state to completed themselves.
|
|
128
132
|
await self._chat_service.modify_assistant_message_async(
|
|
129
|
-
set_completed_at=
|
|
133
|
+
set_completed_at=not self._tool_took_control,
|
|
130
134
|
)
|
|
131
135
|
|
|
132
136
|
# @track()
|
|
@@ -352,7 +356,10 @@ class UniqueAI:
|
|
|
352
356
|
self._reference_manager.extract_referenceable_chunks(tool_call_responses)
|
|
353
357
|
self._debug_info_manager.extract_tool_debug_info(tool_call_responses)
|
|
354
358
|
|
|
355
|
-
|
|
359
|
+
self._tool_took_control = self._tool_manager.does_a_tool_take_control(
|
|
360
|
+
tool_calls
|
|
361
|
+
)
|
|
362
|
+
return self._tool_took_control
|
|
356
363
|
|
|
357
364
|
async def _create_new_assistant_message_if_loop_response_contains_content(
|
|
358
365
|
self, loop_response: LanguageModelStreamResponse
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: unique_orchestrator
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.4
|
|
4
4
|
Summary:
|
|
5
5
|
License: Proprietary
|
|
6
6
|
Author: Andreas Hauri
|
|
@@ -33,6 +33,9 @@ All notable changes to this project will be documented in this file.
|
|
|
33
33
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
34
34
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
35
35
|
|
|
36
|
+
## [1.2.4] - 2025-10-14
|
|
37
|
+
- Let control taking tool itself set the message state to completed
|
|
38
|
+
|
|
36
39
|
## [1.2.3] - 2025-10-13
|
|
37
40
|
- Fix bug where follow-up questions were being generated even if the number of questions is set to 0 in the config.
|
|
38
41
|
|
|
@@ -3,9 +3,9 @@ unique_orchestrator/prompts/generic_reference_prompt.jinja2,sha256=fYPaiE-N1gSoO
|
|
|
3
3
|
unique_orchestrator/prompts/system_prompt.jinja2,sha256=YXFdx3PG2p4TKfjEpz7guIw2GaKoY-4zRMEzXaKhHXE,7213
|
|
4
4
|
unique_orchestrator/prompts/user_message_prompt.jinja2,sha256=BQokpBh3H2J-rFk8i-PRph3jy4T1gAJPPb1mxxRWNuM,878
|
|
5
5
|
unique_orchestrator/tests/test_unique_ai_reference_order.py,sha256=8mZeVP1k8neH4qrFW3oa3zwIdaq2c7R1VvurC7kjBU8,4445
|
|
6
|
-
unique_orchestrator/unique_ai.py,sha256=
|
|
6
|
+
unique_orchestrator/unique_ai.py,sha256=CBOd1eQuasvt-A1azsGZJbHlExm9UGsgy19_l613PoQ,16798
|
|
7
7
|
unique_orchestrator/unique_ai_builder.py,sha256=FUIJAVv0lPTWDgWeMx-KuCyrIc8w8lWyEciFs3_7a3Q,7608
|
|
8
|
-
unique_orchestrator-1.2.
|
|
9
|
-
unique_orchestrator-1.2.
|
|
10
|
-
unique_orchestrator-1.2.
|
|
11
|
-
unique_orchestrator-1.2.
|
|
8
|
+
unique_orchestrator-1.2.4.dist-info/LICENSE,sha256=GlN8wHNdh53xwOPg44URnwag6TEolCjoq3YD_KrWgss,193
|
|
9
|
+
unique_orchestrator-1.2.4.dist-info/METADATA,sha256=QkwdL4PgwDsEX2c-rSanDPDoN9AaIV11FVnmEkacK50,2479
|
|
10
|
+
unique_orchestrator-1.2.4.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
11
|
+
unique_orchestrator-1.2.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|