unique_orchestrator 1.2.2__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.

@@ -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=True,
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
- return self._tool_manager.does_a_tool_take_control(tool_calls)
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
@@ -155,7 +155,10 @@ def build_unique_ai(
155
155
  )
156
156
  )
157
157
 
158
- if config.agent.services.follow_up_questions_config:
158
+ if (
159
+ config.agent.services.follow_up_questions_config
160
+ and config.agent.services.follow_up_questions_config.number_of_questions > 0
161
+ ):
159
162
  postprocessor_manager.add_postprocessor(
160
163
  FollowUpPostprocessor(
161
164
  logger=logger,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: unique_orchestrator
3
- Version: 1.2.2
3
+ Version: 1.2.4
4
4
  Summary:
5
5
  License: Proprietary
6
6
  Author: Andreas Hauri
@@ -33,6 +33,12 @@ 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
+
39
+ ## [1.2.3] - 2025-10-13
40
+ - Fix bug where follow-up questions were being generated even if the number of questions is set to 0 in the config.
41
+
36
42
  ## [1.2.2] - 2025-10-09
37
43
  - update loading path of `DEFAULT_GPT_4o` from `unique_toolkit`
38
44
 
@@ -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=8sBD5P16XcJ_3BXywBuZRRa4h89ANAi8h3VA4V2G_sI,16471
7
- unique_orchestrator/unique_ai_builder.py,sha256=m9-k9oVY7RR9ntrWEzBs0gcycNk4JcbqNfqW-DlJXrc,7507
8
- unique_orchestrator-1.2.2.dist-info/LICENSE,sha256=GlN8wHNdh53xwOPg44URnwag6TEolCjoq3YD_KrWgss,193
9
- unique_orchestrator-1.2.2.dist-info/METADATA,sha256=XIbO6S33sxXWD5OiMNCfzLsK7x2EYXVg5RdR0LzgMfE,2245
10
- unique_orchestrator-1.2.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
11
- unique_orchestrator-1.2.2.dist-info/RECORD,,
6
+ unique_orchestrator/unique_ai.py,sha256=CBOd1eQuasvt-A1azsGZJbHlExm9UGsgy19_l613PoQ,16798
7
+ unique_orchestrator/unique_ai_builder.py,sha256=FUIJAVv0lPTWDgWeMx-KuCyrIc8w8lWyEciFs3_7a3Q,7608
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,,