unique_orchestrator 1.7.0__py3-none-any.whl → 1.7.2__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.

@@ -10,6 +10,7 @@ from unique_follow_up_questions.config import FollowUpQuestionsConfig
10
10
  from unique_internal_search.config import InternalSearchConfig
11
11
  from unique_internal_search.service import InternalSearchTool
12
12
  from unique_stock_ticker.config import StockTickerConfig
13
+ from unique_swot import SwotAnalysisTool, SwotAnalysisToolConfig
13
14
  from unique_toolkit._common.validators import (
14
15
  LMI,
15
16
  ClipInt,
@@ -90,6 +91,10 @@ class SpaceConfigBase(BaseModel, Generic[T]):
90
91
  name=DeepResearchTool.name,
91
92
  configuration=DeepResearchToolConfig(),
92
93
  ),
94
+ ToolBuildConfig(
95
+ name=SwotAnalysisTool.name,
96
+ configuration=SwotAnalysisToolConfig(),
97
+ ),
93
98
  ],
94
99
  )
95
100
 
@@ -261,7 +261,10 @@ class UniqueAI:
261
261
  for prompts in self._tool_manager.get_tool_prompts()
262
262
  ]
263
263
 
264
- used_tools = [m.name for m in self._tool_manager.get_tools()]
264
+ used_tools = [t.name for t in self._history_manager.get_tool_calls()]
265
+ sub_agent_calls = self._tool_manager.filter_tool_calls(
266
+ self._history_manager.get_tool_calls(), ["subagent"]
267
+ )
265
268
 
266
269
  mcp_server_user_prompts = [
267
270
  mcp_server.user_prompt for mcp_server in self._mcp_servers
@@ -274,6 +277,7 @@ class UniqueAI:
274
277
  if (
275
278
  self._config.agent.experimental.sub_agents_config.referencing_config
276
279
  is not None
280
+ and len(sub_agent_calls) > 0
277
281
  ):
278
282
  use_sub_agent_references = True
279
283
  sub_agent_referencing_instructions = self._config.agent.experimental.sub_agents_config.referencing_config.referencing_instructions_for_user_prompt
@@ -298,7 +302,10 @@ class UniqueAI:
298
302
  # TODO: Collect tool information here and adapt to system prompt
299
303
  tool_descriptions = self._tool_manager.get_tool_prompts()
300
304
 
301
- used_tools = [m.name for m in self._tool_manager.get_tools()]
305
+ used_tools = [t.name for t in self._history_manager.get_tool_calls()]
306
+ sub_agent_calls = self._tool_manager.filter_tool_calls(
307
+ self._history_manager.get_tool_calls(), ["subagent"]
308
+ )
302
309
 
303
310
  system_prompt_template = jinja2.Template(
304
311
  self._config.agent.prompt_config.system_prompt_template
@@ -313,6 +320,7 @@ class UniqueAI:
313
320
  if (
314
321
  self._config.agent.experimental.sub_agents_config.referencing_config
315
322
  is not None
323
+ and len(sub_agent_calls) > 0
316
324
  ):
317
325
  use_sub_agent_references = True
318
326
  sub_agent_referencing_instructions = self._config.agent.experimental.sub_agents_config.referencing_config.referencing_instructions_for_system_prompt
@@ -382,6 +390,9 @@ class UniqueAI:
382
390
  # Append function calls to history
383
391
  self._history_manager._append_tool_calls_to_history(tool_calls)
384
392
 
393
+ for tool_call in tool_calls:
394
+ self._history_manager.add_tool_call(tool_call)
395
+
385
396
  # Execute tool calls
386
397
  tool_call_responses = await self._tool_manager.execute_selected_tools(
387
398
  tool_calls
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: unique_orchestrator
3
- Version: 1.7.0
3
+ Version: 1.7.2
4
4
  Summary:
5
5
  License: Proprietary
6
6
  Author: Andreas Hauri
@@ -17,9 +17,10 @@ Requires-Dist: typing-extensions (>=4.9.0,<5.0.0)
17
17
  Requires-Dist: unique-deep-research (>=3.0.0,<4.0.0)
18
18
  Requires-Dist: unique-follow-up-questions (>=1.1.2,<2.0.0)
19
19
  Requires-Dist: unique-internal-search (>=1.0.1,<2.0.0)
20
- Requires-Dist: unique-sdk (>=0.10.24,<0.11.0)
20
+ Requires-Dist: unique-sdk (>=0.10.34,<0.11.0)
21
21
  Requires-Dist: unique-stock-ticker (>=1.0.2,<2.0.0)
22
- Requires-Dist: unique-toolkit (>=1.18.0,<2.0.0)
22
+ Requires-Dist: unique-swot (>=0.1.0,<0.2.0)
23
+ Requires-Dist: unique-toolkit (>=1.22.1,<2.0.0)
23
24
  Requires-Dist: unique-web-search (>=1.3.1,<2.0.0)
24
25
  Description-Content-Type: text/markdown
25
26
 
@@ -33,6 +34,12 @@ All notable changes to this project will be documented in this file.
33
34
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
34
35
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
35
36
 
37
+ ## [1.7.2] - 2025-11-03
38
+ - Add Swot tool to the orchestrator
39
+
40
+ ## [1.7.1] - 2025-10-30
41
+ - Fixing that system format info is only appended to system prompt if tool is called
42
+
36
43
  ## [1.7.0] - 2025-10-30
37
44
  - Add option to customize the display of tool progress statuses.
38
45
  - Make follow-questions postprocessor run last to make sure the follow up questions are displayed last.
@@ -1,11 +1,11 @@
1
- unique_orchestrator/config.py,sha256=NNBPNiLWZN0pFemOtUSxVbEcCEFoUbmu1p8i-hbxlRY,11797
1
+ unique_orchestrator/config.py,sha256=fKjBYrkzgzxA0EH4hSQIkQ2sJz8_Au9Lsa3T4EXOEws,12006
2
2
  unique_orchestrator/prompts/generic_reference_prompt.jinja2,sha256=fYPaiE-N1gSoOqu85OeEBa_ttAim8grOhHuOHJjSHNU,2663
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=OO-85-Qvw5tf5A227_ur34p3qn8RKnU4EPJ21x7jdQE,19324
6
+ unique_orchestrator/unique_ai.py,sha256=lYwaAZtwlEc-ApzvU7xzJeOkCK557O4yam62BM5pB8o,19797
7
7
  unique_orchestrator/unique_ai_builder.py,sha256=p7cXCdXN36_CAgTiq-YXuPlaTjWI2D-QTwMSe0S7Chg,17877
8
- unique_orchestrator-1.7.0.dist-info/LICENSE,sha256=GlN8wHNdh53xwOPg44URnwag6TEolCjoq3YD_KrWgss,193
9
- unique_orchestrator-1.7.0.dist-info/METADATA,sha256=bZx2lv3lGnGuH5bSz-tFudCURZ_0519DBTeUxyKhGn4,3678
10
- unique_orchestrator-1.7.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
11
- unique_orchestrator-1.7.0.dist-info/RECORD,,
8
+ unique_orchestrator-1.7.2.dist-info/LICENSE,sha256=GlN8wHNdh53xwOPg44URnwag6TEolCjoq3YD_KrWgss,193
9
+ unique_orchestrator-1.7.2.dist-info/METADATA,sha256=OfSMpad8RPtQcTkOmzYUVvO-OaLvpnyEkNvE6U9uQzg,3893
10
+ unique_orchestrator-1.7.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
11
+ unique_orchestrator-1.7.2.dist-info/RECORD,,