unique_orchestrator 0.0.3__py3-none-any.whl → 0.0.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.
- unique_orchestrator/config.py +7 -5
- unique_orchestrator/unique_ai.py +11 -11
- unique_orchestrator/unique_ai_builder.py +16 -16
- {unique_orchestrator-0.0.3.dist-info → unique_orchestrator-0.0.4.dist-info}/METADATA +11 -9
- unique_orchestrator-0.0.4.dist-info/RECORD +11 -0
- unique_orchestrator/tests/test_config.py +0 -115
- unique_orchestrator-0.0.3.dist-info/RECORD +0 -12
- {unique_orchestrator-0.0.3.dist-info → unique_orchestrator-0.0.4.dist-info}/LICENSE +0 -0
- {unique_orchestrator-0.0.3.dist-info → unique_orchestrator-0.0.4.dist-info}/WHEEL +0 -0
unique_orchestrator/config.py
CHANGED
|
@@ -15,13 +15,15 @@ from unique_toolkit._common.validators import (
|
|
|
15
15
|
ClipInt,
|
|
16
16
|
get_LMI_default_field,
|
|
17
17
|
)
|
|
18
|
-
from unique_toolkit.
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
from unique_toolkit.agentic.evaluation.hallucination.constants import (
|
|
19
|
+
HallucinationConfig,
|
|
20
|
+
)
|
|
21
|
+
from unique_toolkit.agentic.evaluation.schemas import EvaluationMetricName
|
|
22
|
+
from unique_toolkit.agentic.history_manager.history_manager import (
|
|
21
23
|
UploadedContentConfig,
|
|
22
24
|
)
|
|
23
|
-
from unique_toolkit.tools.config import get_configuration_dict
|
|
24
|
-
from unique_toolkit.tools.tool import ToolBuildConfig
|
|
25
|
+
from unique_toolkit.agentic.tools.config import get_configuration_dict
|
|
26
|
+
from unique_toolkit.agentic.tools.tool import ToolBuildConfig
|
|
25
27
|
from unique_web_search.config import WebSearchConfig
|
|
26
28
|
from unique_web_search.service import WebSearchTool
|
|
27
29
|
|
unique_orchestrator/unique_ai.py
CHANGED
|
@@ -2,25 +2,25 @@ from datetime import datetime
|
|
|
2
2
|
from logging import Logger
|
|
3
3
|
|
|
4
4
|
import jinja2
|
|
5
|
+
from unique_toolkit.agentic.debug_info_manager.debug_info_manager import (
|
|
6
|
+
DebugInfoManager,
|
|
7
|
+
)
|
|
8
|
+
from unique_toolkit.agentic.evaluation.evaluation_manager import EvaluationManager
|
|
9
|
+
from unique_toolkit.agentic.history_manager.history_manager import HistoryManager
|
|
10
|
+
from unique_toolkit.agentic.postprocessor.postprocessor_manager import (
|
|
11
|
+
PostprocessorManager,
|
|
12
|
+
)
|
|
13
|
+
from unique_toolkit.agentic.reference_manager.reference_manager import ReferenceManager
|
|
14
|
+
from unique_toolkit.agentic.thinking_manager.thinking_manager import ThinkingManager
|
|
15
|
+
from unique_toolkit.agentic.tools.tool_manager import ToolManager
|
|
5
16
|
from unique_toolkit.app.schemas import ChatEvent, McpServer
|
|
6
17
|
from unique_toolkit.chat.service import ChatService
|
|
7
18
|
from unique_toolkit.content.service import ContentService
|
|
8
|
-
from unique_toolkit.debug_info_manager.debug_info_manager import (
|
|
9
|
-
DebugInfoManager,
|
|
10
|
-
)
|
|
11
|
-
from unique_toolkit.evals.evaluation_manager import EvaluationManager
|
|
12
|
-
from unique_toolkit.history_manager.history_manager import HistoryManager
|
|
13
19
|
from unique_toolkit.language_model.schemas import (
|
|
14
20
|
LanguageModelAssistantMessage,
|
|
15
21
|
LanguageModelMessages,
|
|
16
22
|
LanguageModelStreamResponse,
|
|
17
23
|
)
|
|
18
|
-
from unique_toolkit.postprocessor.postprocessor_manager import (
|
|
19
|
-
PostprocessorManager,
|
|
20
|
-
)
|
|
21
|
-
from unique_toolkit.reference_manager.reference_manager import ReferenceManager
|
|
22
|
-
from unique_toolkit.thinking_manager.thinking_manager import ThinkingManager
|
|
23
|
-
from unique_toolkit.tools.tool_manager import ToolManager
|
|
24
24
|
|
|
25
25
|
from unique_orchestrator.config import UniqueAIConfig
|
|
26
26
|
|
|
@@ -13,36 +13,36 @@ from unique_stock_ticker.stock_ticker_postprocessor import (
|
|
|
13
13
|
StockTickerPostprocessor,
|
|
14
14
|
)
|
|
15
15
|
from unique_toolkit import LanguageModelService
|
|
16
|
-
from unique_toolkit.
|
|
17
|
-
from unique_toolkit.chat.service import ChatService
|
|
18
|
-
from unique_toolkit.content.service import ContentService
|
|
19
|
-
from unique_toolkit.debug_info_manager.debug_info_manager import (
|
|
16
|
+
from unique_toolkit.agentic.debug_info_manager.debug_info_manager import (
|
|
20
17
|
DebugInfoManager,
|
|
21
18
|
)
|
|
22
|
-
from unique_toolkit.
|
|
23
|
-
from unique_toolkit.
|
|
19
|
+
from unique_toolkit.agentic.evaluation.evaluation_manager import EvaluationManager
|
|
20
|
+
from unique_toolkit.agentic.evaluation.hallucination.hallucination_evaluation import (
|
|
24
21
|
HallucinationEvaluation,
|
|
25
22
|
)
|
|
26
|
-
from unique_toolkit.history_manager import (
|
|
23
|
+
from unique_toolkit.agentic.history_manager import (
|
|
27
24
|
history_manager as history_manager_module,
|
|
28
25
|
)
|
|
29
|
-
from unique_toolkit.history_manager.history_manager import (
|
|
26
|
+
from unique_toolkit.agentic.history_manager.history_manager import (
|
|
30
27
|
HistoryManager,
|
|
31
28
|
HistoryManagerConfig,
|
|
32
29
|
)
|
|
33
|
-
from unique_toolkit.postprocessor.postprocessor_manager import (
|
|
30
|
+
from unique_toolkit.agentic.postprocessor.postprocessor_manager import (
|
|
34
31
|
PostprocessorManager,
|
|
35
32
|
)
|
|
36
|
-
from unique_toolkit.reference_manager.reference_manager import ReferenceManager
|
|
37
|
-
from unique_toolkit.thinking_manager.thinking_manager import (
|
|
33
|
+
from unique_toolkit.agentic.reference_manager.reference_manager import ReferenceManager
|
|
34
|
+
from unique_toolkit.agentic.thinking_manager.thinking_manager import (
|
|
38
35
|
ThinkingManager,
|
|
39
36
|
ThinkingManagerConfig,
|
|
40
37
|
)
|
|
41
|
-
from unique_toolkit.tools.a2a.manager import A2AManager
|
|
42
|
-
from unique_toolkit.tools.config import ToolBuildConfig
|
|
43
|
-
from unique_toolkit.tools.mcp.manager import MCPManager
|
|
44
|
-
from unique_toolkit.tools.tool_manager import ToolManager, ToolManagerConfig
|
|
45
|
-
from unique_toolkit.tools.tool_progress_reporter import ToolProgressReporter
|
|
38
|
+
from unique_toolkit.agentic.tools.a2a.manager import A2AManager
|
|
39
|
+
from unique_toolkit.agentic.tools.config import ToolBuildConfig
|
|
40
|
+
from unique_toolkit.agentic.tools.mcp.manager import MCPManager
|
|
41
|
+
from unique_toolkit.agentic.tools.tool_manager import ToolManager, ToolManagerConfig
|
|
42
|
+
from unique_toolkit.agentic.tools.tool_progress_reporter import ToolProgressReporter
|
|
43
|
+
from unique_toolkit.app.schemas import ChatEvent
|
|
44
|
+
from unique_toolkit.chat.service import ChatService
|
|
45
|
+
from unique_toolkit.content.service import ContentService
|
|
46
46
|
|
|
47
47
|
from unique_orchestrator.config import UniqueAIConfig
|
|
48
48
|
from unique_orchestrator.unique_ai import UniqueAI
|
|
@@ -1,27 +1,26 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: unique_orchestrator
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.4
|
|
4
4
|
Summary:
|
|
5
5
|
License: Proprietary
|
|
6
6
|
Author: Andreas Hauri
|
|
7
7
|
Author-email: andreas.hauri@unique.ai
|
|
8
|
-
Requires-Python: >=3.
|
|
8
|
+
Requires-Python: >=3.12,<4.0
|
|
9
9
|
Classifier: License :: Other/Proprietary License
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
12
11
|
Classifier: Programming Language :: Python :: 3.12
|
|
13
12
|
Requires-Dist: pydantic (>=2.8.2,<3.0.0)
|
|
14
13
|
Requires-Dist: pydantic-settings (>=2.10.1,<3.0.0)
|
|
15
14
|
Requires-Dist: pytest (>=8.4.1,<9.0.0)
|
|
16
15
|
Requires-Dist: python-dotenv (>=1.0.1,<2.0.0)
|
|
17
16
|
Requires-Dist: typing-extensions (>=4.9.0,<5.0.0)
|
|
18
|
-
Requires-Dist: unique-deep-research (>=0.0.
|
|
19
|
-
Requires-Dist: unique-follow-up-questions (>=0.0.
|
|
20
|
-
Requires-Dist: unique-internal-search (>=0.0.
|
|
17
|
+
Requires-Dist: unique-deep-research (>=0.0.11,<0.0.12)
|
|
18
|
+
Requires-Dist: unique-follow-up-questions (>=0.0.5,<0.0.6)
|
|
19
|
+
Requires-Dist: unique-internal-search (>=0.0.7,<0.0.8)
|
|
21
20
|
Requires-Dist: unique-sdk (>=0.10.0,<0.11.0)
|
|
22
|
-
Requires-Dist: unique-stock-ticker (>=0.0.
|
|
23
|
-
Requires-Dist: unique-toolkit (>=0.
|
|
24
|
-
Requires-Dist: unique-web-search (>=0.1.
|
|
21
|
+
Requires-Dist: unique-stock-ticker (>=0.0.6,<0.0.7)
|
|
22
|
+
Requires-Dist: unique-toolkit (>=0.9.0,<0.10.0)
|
|
23
|
+
Requires-Dist: unique-web-search (>=0.1.3,<0.2.0)
|
|
25
24
|
Description-Content-Type: text/markdown
|
|
26
25
|
|
|
27
26
|
# Internal Search Tool
|
|
@@ -34,6 +33,9 @@ All notable changes to this project will be documented in this file.
|
|
|
34
33
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
35
34
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
36
35
|
|
|
36
|
+
## [0.0.4] - 2025-09-17
|
|
37
|
+
- Updated to latest toolkit
|
|
38
|
+
|
|
37
39
|
## [0.0.3] - 2025-09-16
|
|
38
40
|
- Cleaned configuration
|
|
39
41
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
unique_orchestrator/config.py,sha256=8EvcgwzxbVfCu74Wy61j9K1_mg9KjIly8oB_eyRnanI,8063
|
|
2
|
+
unique_orchestrator/prompts/generic_reference_prompt.jinja2,sha256=fYPaiE-N1gSoOqu85OeEBa_ttAim8grOhHuOHJjSHNU,2663
|
|
3
|
+
unique_orchestrator/prompts/system_prompt.jinja2,sha256=2Dy8GHrT018Sj9UkYGxSfjt7fvTTDvD53BxjDMZRPVY,6897
|
|
4
|
+
unique_orchestrator/prompts/user_message_prompt.jinja2,sha256=KLCfbxMu5R7_V8-AHkdXEmVorcSHNej_xM_7xJyNkl0,692
|
|
5
|
+
unique_orchestrator/tests/test_unique_ai_reference_order.py,sha256=8mZeVP1k8neH4qrFW3oa3zwIdaq2c7R1VvurC7kjBU8,4445
|
|
6
|
+
unique_orchestrator/unique_ai.py,sha256=OFzgyPWvh5mK4p3OxII3hKpQt_dhHBD2BbtHakZ35n8,15635
|
|
7
|
+
unique_orchestrator/unique_ai_builder.py,sha256=QaIY4lMb8HiuyYkUzAhW3IO3eU7j8FIXFU0tqdTHC5I,6105
|
|
8
|
+
unique_orchestrator-0.0.4.dist-info/LICENSE,sha256=GlN8wHNdh53xwOPg44URnwag6TEolCjoq3YD_KrWgss,193
|
|
9
|
+
unique_orchestrator-0.0.4.dist-info/METADATA,sha256=7ve-uxXKkP8JT4ueiu809JCjIPqtXuMlGdUUbyUkJQs,1515
|
|
10
|
+
unique_orchestrator-0.0.4.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
11
|
+
unique_orchestrator-0.0.4.dist-info/RECORD,,
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
from unique_orchestrator.config import (
|
|
2
|
-
SearchAgentConfig,
|
|
3
|
-
search_agent_config_to_unique_ai_space_config,
|
|
4
|
-
)
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
def test_ai_tools_conversion():
|
|
8
|
-
"""
|
|
9
|
-
AI-authored test: Validates the transfer of tool configurations.
|
|
10
|
-
|
|
11
|
-
This test ensures that:
|
|
12
|
-
1. All tools from the old config are present in the new config
|
|
13
|
-
2. Tool names are preserved exactly
|
|
14
|
-
3. Tool configurations are maintained without modification
|
|
15
|
-
|
|
16
|
-
Written by AI Assistant to verify tool configuration preservation.
|
|
17
|
-
"""
|
|
18
|
-
old_config = SearchAgentConfig()
|
|
19
|
-
new_config = search_agent_config_to_unique_ai_space_config(old_config)
|
|
20
|
-
|
|
21
|
-
assert len(new_config.space.tools) == len(old_config.tools)
|
|
22
|
-
for old_tool, new_tool in zip(old_config.tools, new_config.space.tools):
|
|
23
|
-
assert old_tool.name == new_tool.name
|
|
24
|
-
assert old_tool.configuration == new_tool.configuration
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
def test_ai_services_conversion():
|
|
28
|
-
"""
|
|
29
|
-
AI-authored test: Verifies the conversion of service configurations.
|
|
30
|
-
|
|
31
|
-
This test checks that all service configurations are properly transferred:
|
|
32
|
-
1. Follow-up questions configuration
|
|
33
|
-
2. Evaluation configuration
|
|
34
|
-
3. Stock ticker configuration
|
|
35
|
-
4. Reference manager configuration
|
|
36
|
-
|
|
37
|
-
Written by AI Assistant to ensure service configuration integrity.
|
|
38
|
-
"""
|
|
39
|
-
old_config = SearchAgentConfig()
|
|
40
|
-
new_config = search_agent_config_to_unique_ai_space_config(old_config)
|
|
41
|
-
|
|
42
|
-
services = new_config.agent.services
|
|
43
|
-
assert services.follow_up_questions_config == old_config.follow_up_questions_config
|
|
44
|
-
assert services.evaluation_config == old_config.evaluation_config
|
|
45
|
-
assert services.stock_ticker_config == old_config.stock_ticker_config
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
def test_ai_experimental_config_conversion():
|
|
49
|
-
"""
|
|
50
|
-
AI-authored test: Checks the conversion of experimental features.
|
|
51
|
-
|
|
52
|
-
This test verifies that:
|
|
53
|
-
1. Experimental features like thinking_steps_display are properly transferred
|
|
54
|
-
2. Boolean values are preserved accurately
|
|
55
|
-
|
|
56
|
-
Written by AI Assistant to ensure experimental feature preservation.
|
|
57
|
-
"""
|
|
58
|
-
old_config = SearchAgentConfig()
|
|
59
|
-
old_config.thinking_steps_display = True
|
|
60
|
-
new_config = search_agent_config_to_unique_ai_space_config(old_config)
|
|
61
|
-
|
|
62
|
-
assert (
|
|
63
|
-
new_config.agent.experimental.thinking_steps_display
|
|
64
|
-
== old_config.thinking_steps_display
|
|
65
|
-
)
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
def test_ai_force_checks_conversion():
|
|
69
|
-
"""
|
|
70
|
-
AI-authored test: Validates the conversion of force checks configuration.
|
|
71
|
-
|
|
72
|
-
This test ensures that:
|
|
73
|
-
1. Force checks for stream response references are properly transferred
|
|
74
|
-
2. The configuration maintains its integrity during conversion
|
|
75
|
-
|
|
76
|
-
Written by AI Assistant to verify force checks preservation.
|
|
77
|
-
"""
|
|
78
|
-
old_config = SearchAgentConfig()
|
|
79
|
-
new_config = search_agent_config_to_unique_ai_space_config(old_config)
|
|
80
|
-
|
|
81
|
-
assert (
|
|
82
|
-
new_config.agent.experimental.force_checks_on_stream_response_references
|
|
83
|
-
== old_config.force_checks_on_stream_response_references
|
|
84
|
-
)
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
def test_ai_custom_values_conversion():
|
|
88
|
-
"""
|
|
89
|
-
AI-authored test: Verifies the conversion of custom configuration values.
|
|
90
|
-
|
|
91
|
-
This test validates that custom values are properly transferred:
|
|
92
|
-
1. Project name
|
|
93
|
-
2. Custom instructions
|
|
94
|
-
3. Temperature settings
|
|
95
|
-
4. Loop iteration limits
|
|
96
|
-
5. Additional LLM options
|
|
97
|
-
|
|
98
|
-
Written by AI Assistant to ensure custom configuration preservation.
|
|
99
|
-
"""
|
|
100
|
-
old_config = SearchAgentConfig(
|
|
101
|
-
project_name="Custom Project",
|
|
102
|
-
custom_instructions="Custom Instructions",
|
|
103
|
-
temperature=0.8,
|
|
104
|
-
max_loop_iterations=5,
|
|
105
|
-
additional_llm_options={"some_option": "value"},
|
|
106
|
-
)
|
|
107
|
-
new_config = search_agent_config_to_unique_ai_space_config(old_config)
|
|
108
|
-
|
|
109
|
-
assert new_config.space.project_name == "Custom Project"
|
|
110
|
-
assert new_config.space.custom_instructions == "Custom Instructions"
|
|
111
|
-
assert new_config.agent.experimental.temperature == 0.8
|
|
112
|
-
assert new_config.agent.max_loop_iterations == 5
|
|
113
|
-
assert new_config.agent.experimental.additional_llm_options == {
|
|
114
|
-
"some_option": "value"
|
|
115
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
unique_orchestrator/config.py,sha256=SV5jBkGlRg4BrFiDlAIMXVSRy0k_EMnZE8dmhvBtfIQ,8004
|
|
2
|
-
unique_orchestrator/prompts/generic_reference_prompt.jinja2,sha256=fYPaiE-N1gSoOqu85OeEBa_ttAim8grOhHuOHJjSHNU,2663
|
|
3
|
-
unique_orchestrator/prompts/system_prompt.jinja2,sha256=2Dy8GHrT018Sj9UkYGxSfjt7fvTTDvD53BxjDMZRPVY,6897
|
|
4
|
-
unique_orchestrator/prompts/user_message_prompt.jinja2,sha256=KLCfbxMu5R7_V8-AHkdXEmVorcSHNej_xM_7xJyNkl0,692
|
|
5
|
-
unique_orchestrator/tests/test_config.py,sha256=P7QkVlVv0ppiK77s5i4rE4IOzdtdBCZZkeIA3KRc82k,4070
|
|
6
|
-
unique_orchestrator/tests/test_unique_ai_reference_order.py,sha256=8mZeVP1k8neH4qrFW3oa3zwIdaq2c7R1VvurC7kjBU8,4445
|
|
7
|
-
unique_orchestrator/unique_ai.py,sha256=xGQogDbxA7qjfk8R85t5m8PI_XDY7tk-s4tkvp8on_Q,15574
|
|
8
|
-
unique_orchestrator/unique_ai_builder.py,sha256=J73_Lg3XjI9JKirUmC6juWTefk7gPkG67NPLdUL4zr0,5991
|
|
9
|
-
unique_orchestrator-0.0.3.dist-info/LICENSE,sha256=GlN8wHNdh53xwOPg44URnwag6TEolCjoq3YD_KrWgss,193
|
|
10
|
-
unique_orchestrator-0.0.3.dist-info/METADATA,sha256=gFcyRvlvxIjS_8Id75q-fTcxqGp829PMGH6GDj-q76s,1513
|
|
11
|
-
unique_orchestrator-0.0.3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
12
|
-
unique_orchestrator-0.0.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|