unique_orchestrator 2026.28.0.dev1__tar.gz → 2026.28.0.dev2__tar.gz
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-2026.28.0.dev1 → unique_orchestrator-2026.28.0.dev2}/PKG-INFO +1 -1
- {unique_orchestrator-2026.28.0.dev1 → unique_orchestrator-2026.28.0.dev2}/pyproject.toml +1 -1
- {unique_orchestrator-2026.28.0.dev1 → unique_orchestrator-2026.28.0.dev2}/unique_orchestrator/tests/test_unique_ai_loop_debug_params.py +1 -0
- {unique_orchestrator-2026.28.0.dev1 → unique_orchestrator-2026.28.0.dev2}/unique_orchestrator/unique_ai.py +36 -2
- {unique_orchestrator-2026.28.0.dev1 → unique_orchestrator-2026.28.0.dev2}/README.md +0 -0
- {unique_orchestrator-2026.28.0.dev1 → unique_orchestrator-2026.28.0.dev2}/unique_orchestrator/__init__.py +0 -0
- {unique_orchestrator-2026.28.0.dev1 → unique_orchestrator-2026.28.0.dev2}/unique_orchestrator/_builders/__init__.py +0 -0
- {unique_orchestrator-2026.28.0.dev1 → unique_orchestrator-2026.28.0.dev2}/unique_orchestrator/_builders/inject_tool_reminders.py +0 -0
- {unique_orchestrator-2026.28.0.dev1 → unique_orchestrator-2026.28.0.dev2}/unique_orchestrator/_builders/loop_iteration_runner.py +0 -0
- {unique_orchestrator-2026.28.0.dev1 → unique_orchestrator-2026.28.0.dev2}/unique_orchestrator/_builders/open_file_setup.py +0 -0
- {unique_orchestrator-2026.28.0.dev1 → unique_orchestrator-2026.28.0.dev2}/unique_orchestrator/_builders/skill_setup.py +0 -0
- {unique_orchestrator-2026.28.0.dev1 → unique_orchestrator-2026.28.0.dev2}/unique_orchestrator/config.py +0 -0
- {unique_orchestrator-2026.28.0.dev1 → unique_orchestrator-2026.28.0.dev2}/unique_orchestrator/prompts/generic_reference_prompt.jinja2 +0 -0
- {unique_orchestrator-2026.28.0.dev1 → unique_orchestrator-2026.28.0.dev2}/unique_orchestrator/prompts/system_prompt.jinja2 +0 -0
- {unique_orchestrator-2026.28.0.dev1 → unique_orchestrator-2026.28.0.dev2}/unique_orchestrator/prompts/user_message_prompt.jinja2 +0 -0
- {unique_orchestrator-2026.28.0.dev1 → unique_orchestrator-2026.28.0.dev2}/unique_orchestrator/settings.py +0 -0
- {unique_orchestrator-2026.28.0.dev1 → unique_orchestrator-2026.28.0.dev2}/unique_orchestrator/tests/test_agent_config_rjsf_ui_schema.py +0 -0
- {unique_orchestrator-2026.28.0.dev1 → unique_orchestrator-2026.28.0.dev2}/unique_orchestrator/tests/test_build_loop_iteration_runner.py +0 -0
- {unique_orchestrator-2026.28.0.dev1 → unique_orchestrator-2026.28.0.dev2}/unique_orchestrator/tests/test_config_services_validators.py +0 -0
- {unique_orchestrator-2026.28.0.dev1 → unique_orchestrator-2026.28.0.dev2}/unique_orchestrator/tests/test_qwen_max_loop_iterations.py +0 -0
- {unique_orchestrator-2026.28.0.dev1 → unique_orchestrator-2026.28.0.dev2}/unique_orchestrator/tests/test_register_code_interpreter_postprocessors.py +0 -0
- {unique_orchestrator-2026.28.0.dev1 → unique_orchestrator-2026.28.0.dev2}/unique_orchestrator/tests/test_unique_ai_async_modify.py +0 -0
- {unique_orchestrator-2026.28.0.dev1 → unique_orchestrator-2026.28.0.dev2}/unique_orchestrator/tests/test_unique_ai_execution_timing.py +0 -0
- {unique_orchestrator-2026.28.0.dev1 → unique_orchestrator-2026.28.0.dev2}/unique_orchestrator/tests/test_unique_ai_get_filtered_user_metadata.py +0 -0
- {unique_orchestrator-2026.28.0.dev1 → unique_orchestrator-2026.28.0.dev2}/unique_orchestrator/tests/test_unique_ai_log_tool_calls.py +0 -0
- {unique_orchestrator-2026.28.0.dev1 → unique_orchestrator-2026.28.0.dev2}/unique_orchestrator/tests/test_unique_ai_persist_tool_calls.py +0 -0
- {unique_orchestrator-2026.28.0.dev1 → unique_orchestrator-2026.28.0.dev2}/unique_orchestrator/tests/test_unique_ai_plan_or_execute_include.py +0 -0
- {unique_orchestrator-2026.28.0.dev1 → unique_orchestrator-2026.28.0.dev2}/unique_orchestrator/tests/test_unique_ai_reference_order.py +0 -0
- {unique_orchestrator-2026.28.0.dev1 → unique_orchestrator-2026.28.0.dev2}/unique_orchestrator/tests/test_unique_ai_render_system_prompt_user_instructions.py +0 -0
- {unique_orchestrator-2026.28.0.dev1 → unique_orchestrator-2026.28.0.dev2}/unique_orchestrator/tests/test_utils_resolve_other_options.py +0 -0
- {unique_orchestrator-2026.28.0.dev1 → unique_orchestrator-2026.28.0.dev2}/unique_orchestrator/unique_ai_builder.py +0 -0
- {unique_orchestrator-2026.28.0.dev1 → unique_orchestrator-2026.28.0.dev2}/unique_orchestrator/utils.py +0 -0
|
@@ -6,6 +6,7 @@ from typing import Any, cast, overload
|
|
|
6
6
|
|
|
7
7
|
import jinja2
|
|
8
8
|
from typing_extensions import deprecated
|
|
9
|
+
from unique_skill_tool.service import SkillTool
|
|
9
10
|
from unique_toolkit.agentic.debug_info_manager.debug_info_manager import (
|
|
10
11
|
DebugInfoManager,
|
|
11
12
|
)
|
|
@@ -35,7 +36,7 @@ from unique_toolkit.agentic.tools.tool_manager import (
|
|
|
35
36
|
SafeTaskExecutor,
|
|
36
37
|
ToolManager,
|
|
37
38
|
)
|
|
38
|
-
from unique_toolkit.app.schemas import ChatEvent, McpServer
|
|
39
|
+
from unique_toolkit.app.schemas import ChatEvent, McpServer, SkillReference
|
|
39
40
|
from unique_toolkit.chat.cancellation import CancellationEvent
|
|
40
41
|
from unique_toolkit.chat.service import ChatService
|
|
41
42
|
from unique_toolkit.content import Content
|
|
@@ -143,7 +144,9 @@ class UniqueAI:
|
|
|
143
144
|
self._content_service = content_service
|
|
144
145
|
self._uploaded_documents = uploaded_documents or []
|
|
145
146
|
self._user_memory_text = user_memory_text
|
|
146
|
-
self._skill_choices = getattr(
|
|
147
|
+
self._skill_choices: list[SkillReference] = getattr(
|
|
148
|
+
event.payload, "skill_choices", []
|
|
149
|
+
)
|
|
147
150
|
|
|
148
151
|
self._debug_info_manager = debug_info_manager
|
|
149
152
|
self._reference_manager = reference_manager
|
|
@@ -313,6 +316,10 @@ class UniqueAI:
|
|
|
313
316
|
},
|
|
314
317
|
)
|
|
315
318
|
self._debug_info_manager.add("loop_params", self._loop_debug_params)
|
|
319
|
+
self._debug_info_manager.add(
|
|
320
|
+
"skills",
|
|
321
|
+
self._get_activated_skills_debug_info(),
|
|
322
|
+
)
|
|
316
323
|
|
|
317
324
|
tool_names = [
|
|
318
325
|
tool["name"] for tool in self._debug_info_manager.get()["tools"]
|
|
@@ -349,6 +356,33 @@ class UniqueAI:
|
|
|
349
356
|
}
|
|
350
357
|
)
|
|
351
358
|
|
|
359
|
+
def _get_activated_skills_debug_info(self) -> list[dict[str, str | bool]]:
|
|
360
|
+
skill_tool = self._tool_manager.get_tool_by_name(SkillTool.name)
|
|
361
|
+
if not isinstance(skill_tool, SkillTool):
|
|
362
|
+
return []
|
|
363
|
+
|
|
364
|
+
forced_content_ids = {
|
|
365
|
+
choice.content_id for choice in self._skill_choices if choice.content_id
|
|
366
|
+
}
|
|
367
|
+
forced_names = {choice.name for choice in self._skill_choices if choice.name}
|
|
368
|
+
|
|
369
|
+
skills_debug_info: dict[str, dict[str, str | bool]] = {}
|
|
370
|
+
for skill in skill_tool.activated_skills:
|
|
371
|
+
skills_debug_info.setdefault(
|
|
372
|
+
skill.name,
|
|
373
|
+
{
|
|
374
|
+
"name": skill.name,
|
|
375
|
+
"content_id": skill.content_id,
|
|
376
|
+
"is_forced": (
|
|
377
|
+
skill.content_id in forced_content_ids
|
|
378
|
+
if skill.content_id
|
|
379
|
+
else skill.name in forced_names
|
|
380
|
+
),
|
|
381
|
+
},
|
|
382
|
+
)
|
|
383
|
+
|
|
384
|
+
return list(skills_debug_info.values())
|
|
385
|
+
|
|
352
386
|
# @track()
|
|
353
387
|
async def _plan_or_execute(self) -> LanguageModelStreamResponse:
|
|
354
388
|
self._logger.info("Planning or executing the loop.")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|