unique_orchestrator 2026.50.0.dev2__tar.gz → 2026.50.0.dev4__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.
Files changed (35) hide show
  1. {unique_orchestrator-2026.50.0.dev2 → unique_orchestrator-2026.50.0.dev4}/PKG-INFO +1 -1
  2. {unique_orchestrator-2026.50.0.dev2 → unique_orchestrator-2026.50.0.dev4}/pyproject.toml +1 -1
  3. {unique_orchestrator-2026.50.0.dev2 → unique_orchestrator-2026.50.0.dev4}/unique_orchestrator/_builders/skill_setup.py +43 -6
  4. {unique_orchestrator-2026.50.0.dev2 → unique_orchestrator-2026.50.0.dev4}/unique_orchestrator/unique_ai_builder.py +2 -0
  5. {unique_orchestrator-2026.50.0.dev2 → unique_orchestrator-2026.50.0.dev4}/README.md +0 -0
  6. {unique_orchestrator-2026.50.0.dev2 → unique_orchestrator-2026.50.0.dev4}/unique_orchestrator/__init__.py +0 -0
  7. {unique_orchestrator-2026.50.0.dev2 → unique_orchestrator-2026.50.0.dev4}/unique_orchestrator/_builders/__init__.py +0 -0
  8. {unique_orchestrator-2026.50.0.dev2 → unique_orchestrator-2026.50.0.dev4}/unique_orchestrator/_builders/history_manager.py +0 -0
  9. {unique_orchestrator-2026.50.0.dev2 → unique_orchestrator-2026.50.0.dev4}/unique_orchestrator/_builders/inject_tool_reminders.py +0 -0
  10. {unique_orchestrator-2026.50.0.dev2 → unique_orchestrator-2026.50.0.dev4}/unique_orchestrator/_builders/loop_iteration_runner.py +0 -0
  11. {unique_orchestrator-2026.50.0.dev2 → unique_orchestrator-2026.50.0.dev4}/unique_orchestrator/_builders/open_file_setup.py +0 -0
  12. {unique_orchestrator-2026.50.0.dev2 → unique_orchestrator-2026.50.0.dev4}/unique_orchestrator/_builders/skill_file_loader.py +0 -0
  13. {unique_orchestrator-2026.50.0.dev2 → unique_orchestrator-2026.50.0.dev4}/unique_orchestrator/config.py +0 -0
  14. {unique_orchestrator-2026.50.0.dev2 → unique_orchestrator-2026.50.0.dev4}/unique_orchestrator/prompts/generic_reference_prompt.jinja2 +0 -0
  15. {unique_orchestrator-2026.50.0.dev2 → unique_orchestrator-2026.50.0.dev4}/unique_orchestrator/prompts/system_prompt.jinja2 +0 -0
  16. {unique_orchestrator-2026.50.0.dev2 → unique_orchestrator-2026.50.0.dev4}/unique_orchestrator/prompts/user_message_prompt.jinja2 +0 -0
  17. {unique_orchestrator-2026.50.0.dev2 → unique_orchestrator-2026.50.0.dev4}/unique_orchestrator/settings.py +0 -0
  18. {unique_orchestrator-2026.50.0.dev2 → unique_orchestrator-2026.50.0.dev4}/unique_orchestrator/tests/test_agent_config_rjsf_ui_schema.py +0 -0
  19. {unique_orchestrator-2026.50.0.dev2 → unique_orchestrator-2026.50.0.dev4}/unique_orchestrator/tests/test_build_loop_iteration_runner.py +0 -0
  20. {unique_orchestrator-2026.50.0.dev2 → unique_orchestrator-2026.50.0.dev4}/unique_orchestrator/tests/test_config_services_validators.py +0 -0
  21. {unique_orchestrator-2026.50.0.dev2 → unique_orchestrator-2026.50.0.dev4}/unique_orchestrator/tests/test_qwen_max_loop_iterations.py +0 -0
  22. {unique_orchestrator-2026.50.0.dev2 → unique_orchestrator-2026.50.0.dev4}/unique_orchestrator/tests/test_register_code_interpreter_postprocessors.py +0 -0
  23. {unique_orchestrator-2026.50.0.dev2 → unique_orchestrator-2026.50.0.dev4}/unique_orchestrator/tests/test_unique_ai_async_modify.py +0 -0
  24. {unique_orchestrator-2026.50.0.dev2 → unique_orchestrator-2026.50.0.dev4}/unique_orchestrator/tests/test_unique_ai_execution_timing.py +0 -0
  25. {unique_orchestrator-2026.50.0.dev2 → unique_orchestrator-2026.50.0.dev4}/unique_orchestrator/tests/test_unique_ai_get_filtered_user_metadata.py +0 -0
  26. {unique_orchestrator-2026.50.0.dev2 → unique_orchestrator-2026.50.0.dev4}/unique_orchestrator/tests/test_unique_ai_log_tool_calls.py +0 -0
  27. {unique_orchestrator-2026.50.0.dev2 → unique_orchestrator-2026.50.0.dev4}/unique_orchestrator/tests/test_unique_ai_loop_debug_params.py +0 -0
  28. {unique_orchestrator-2026.50.0.dev2 → unique_orchestrator-2026.50.0.dev4}/unique_orchestrator/tests/test_unique_ai_persist_tool_calls.py +0 -0
  29. {unique_orchestrator-2026.50.0.dev2 → unique_orchestrator-2026.50.0.dev4}/unique_orchestrator/tests/test_unique_ai_plan_or_execute_include.py +0 -0
  30. {unique_orchestrator-2026.50.0.dev2 → unique_orchestrator-2026.50.0.dev4}/unique_orchestrator/tests/test_unique_ai_reference_order.py +0 -0
  31. {unique_orchestrator-2026.50.0.dev2 → unique_orchestrator-2026.50.0.dev4}/unique_orchestrator/tests/test_unique_ai_render_system_prompt_user_instructions.py +0 -0
  32. {unique_orchestrator-2026.50.0.dev2 → unique_orchestrator-2026.50.0.dev4}/unique_orchestrator/tests/test_unique_ai_token_usage.py +0 -0
  33. {unique_orchestrator-2026.50.0.dev2 → unique_orchestrator-2026.50.0.dev4}/unique_orchestrator/tests/test_utils_resolve_other_options.py +0 -0
  34. {unique_orchestrator-2026.50.0.dev2 → unique_orchestrator-2026.50.0.dev4}/unique_orchestrator/unique_ai.py +0 -0
  35. {unique_orchestrator-2026.50.0.dev2 → unique_orchestrator-2026.50.0.dev4}/unique_orchestrator/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: unique-orchestrator
3
- Version: 2026.50.0.dev2
3
+ Version: 2026.50.0.dev4
4
4
  Summary:
5
5
  Author: Andreas Hauri
6
6
  Author-email: Andreas Hauri <andreas.hauri@unique.ai>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "unique_orchestrator"
3
- version = "2026.50.0.dev2"
3
+ version = "2026.50.0.dev4"
4
4
  description = ""
5
5
  readme = "README.md"
6
6
  license = { text = "Proprietary" }
@@ -61,6 +61,9 @@ from unique_orchestrator._builders.skill_file_loader import (
61
61
  )
62
62
 
63
63
  if TYPE_CHECKING:
64
+ from unique_toolkit.agentic.debug_info_manager.debug_info_manager import (
65
+ DebugInfoManager,
66
+ )
64
67
  from unique_toolkit.agentic.history_manager.history_manager import HistoryManager
65
68
  from unique_toolkit.agentic.tools.tool_manager import (
66
69
  ResponsesApiToolManager,
@@ -107,6 +110,23 @@ def normalize_available_skills_for_tool(
107
110
  return out
108
111
 
109
112
 
113
+ _NO_SKILLS_LOADED: dict[str, int] = {
114
+ "listed": 0,
115
+ "loaded": 0,
116
+ "from_cache": 0,
117
+ "downloaded": 0,
118
+ "failed": 0,
119
+ "timed_out": 0,
120
+ }
121
+
122
+
123
+ def _record_skill_loading(
124
+ debug_info_manager: DebugInfoManager | None, stats: Mapping[str, int]
125
+ ) -> None:
126
+ if debug_info_manager is not None:
127
+ debug_info_manager.add("skill_loading", dict(stats))
128
+
129
+
110
130
  async def load_selectable_skills(
111
131
  *,
112
132
  content_service: ContentService,
@@ -114,6 +134,7 @@ async def load_selectable_skills(
114
134
  logger: Logger,
115
135
  company_id: str = "",
116
136
  readable_skill_versions: Mapping[str, str] | None = None,
137
+ debug_info_manager: DebugInfoManager | None = None,
117
138
  ) -> dict[str, SkillDefinition]:
118
139
  """Load skills from an explicit list of ``SkillReference`` references.
119
140
 
@@ -127,11 +148,15 @@ async def load_selectable_skills(
127
148
  lists them. A skill in that map is served from the process-wide skill
128
149
  cache when its file was parsed before; see ``skill_file_loader``. Any
129
150
  other skill is downloaded as the user.
151
+
152
+ With ``debug_info_manager``, the counts are also stored under the
153
+ ``skill_loading`` key of the turn's debug info.
130
154
  """
131
155
  versions = readable_skill_versions or {}
132
156
  valid_entries = [entry for entry in selectable_skills if entry.content_id]
133
157
  if not valid_entries:
134
158
  logger.info("SkillTool has no selectable_skills with a content_id set.")
159
+ _record_skill_loading(debug_info_manager, _NO_SKILLS_LOADED)
135
160
  return {}
136
161
 
137
162
  tasks = [
@@ -202,16 +227,25 @@ async def load_selectable_skills(
202
227
  len(pending),
203
228
  skill_file_loader.SKILL_LOAD_BUDGET_S,
204
229
  )
230
+ stats = {
231
+ "listed": len(valid_entries),
232
+ "loaded": len(skill_registry),
233
+ "from_cache": cached_count,
234
+ "downloaded": len(valid_entries) - cached_count - failed_count - len(pending),
235
+ "failed": failed_count,
236
+ "timed_out": len(pending),
237
+ }
205
238
  logger.info(
206
239
  "Loaded %d skill(s) from selectable_skills "
207
240
  "(listed=%d, from_cache=%d, downloaded=%d, failed=%d, timed_out=%d).",
208
- len(skill_registry),
209
- len(valid_entries),
210
- cached_count,
211
- len(valid_entries) - cached_count - failed_count - len(pending),
212
- failed_count,
213
- len(pending),
241
+ stats["loaded"],
242
+ stats["listed"],
243
+ stats["from_cache"],
244
+ stats["downloaded"],
245
+ stats["failed"],
246
+ stats["timed_out"],
214
247
  )
248
+ _record_skill_loading(debug_info_manager, stats)
215
249
  return skill_registry
216
250
 
217
251
 
@@ -225,6 +259,7 @@ async def configure_skill_tool(
225
259
  user_id: str = "",
226
260
  company_id: str = "",
227
261
  space_id: str = "",
262
+ debug_info_manager: DebugInfoManager | None = None,
228
263
  ) -> None:
229
264
  """Populate the SkillTool's skill registry when it is enabled in ``space.tools``.
230
265
 
@@ -254,6 +289,7 @@ async def configure_skill_tool(
254
289
  "SkillTool is enabled but selectable_skills is empty — "
255
290
  "no skills will be loaded."
256
291
  )
292
+ _record_skill_loading(debug_info_manager, _NO_SKILLS_LOADED)
257
293
  tool_manager.exclude_tool(SkillTool.name)
258
294
  return
259
295
 
@@ -272,6 +308,7 @@ async def configure_skill_tool(
272
308
  logger=logger,
273
309
  company_id=company_id,
274
310
  readable_skill_versions=readable_skill_versions,
311
+ debug_info_manager=debug_info_manager,
275
312
  )
276
313
 
277
314
  if not skill_registry:
@@ -705,6 +705,7 @@ async def _build_responses(
705
705
  user_id=event.user_id,
706
706
  company_id=event.company_id,
707
707
  space_id=event.payload.assistant_id,
708
+ debug_info_manager=debug_info_manager,
708
709
  )
709
710
 
710
711
  loop_iteration_runner = build_responses_loop_iteration_runner(
@@ -834,6 +835,7 @@ async def _build_completions(
834
835
  user_id=event.user_id,
835
836
  company_id=event.company_id,
836
837
  space_id=event.payload.assistant_id,
838
+ debug_info_manager=debug_info_manager,
837
839
  )
838
840
 
839
841
  postprocessor_manager = common_components.postprocessor_manager