unique_deep_research 2026.48.0.dev3__tar.gz → 2026.48.0.dev5__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 (22) hide show
  1. {unique_deep_research-2026.48.0.dev3 → unique_deep_research-2026.48.0.dev5}/PKG-INFO +4 -4
  2. {unique_deep_research-2026.48.0.dev3 → unique_deep_research-2026.48.0.dev5}/pyproject.toml +4 -4
  3. {unique_deep_research-2026.48.0.dev3 → unique_deep_research-2026.48.0.dev5}/unique_deep_research/service.py +3 -7
  4. {unique_deep_research-2026.48.0.dev3 → unique_deep_research-2026.48.0.dev5}/unique_deep_research/unique_custom/tools.py +5 -3
  5. {unique_deep_research-2026.48.0.dev3 → unique_deep_research-2026.48.0.dev5}/unique_deep_research/unique_custom/utils.py +4 -2
  6. {unique_deep_research-2026.48.0.dev3 → unique_deep_research-2026.48.0.dev5}/README.md +0 -0
  7. {unique_deep_research-2026.48.0.dev3 → unique_deep_research-2026.48.0.dev5}/unique_deep_research/__init__.py +0 -0
  8. {unique_deep_research-2026.48.0.dev3 → unique_deep_research-2026.48.0.dev5}/unique_deep_research/config.py +0 -0
  9. {unique_deep_research-2026.48.0.dev3 → unique_deep_research-2026.48.0.dev5}/unique_deep_research/invocation_stats.py +0 -0
  10. {unique_deep_research-2026.48.0.dev3 → unique_deep_research-2026.48.0.dev5}/unique_deep_research/markdown_utils.py +0 -0
  11. {unique_deep_research-2026.48.0.dev3 → unique_deep_research-2026.48.0.dev5}/unique_deep_research/templates/clarifying_agent.j2 +0 -0
  12. {unique_deep_research-2026.48.0.dev3 → unique_deep_research-2026.48.0.dev5}/unique_deep_research/templates/openai/oai_research_system_message.j2 +0 -0
  13. {unique_deep_research-2026.48.0.dev3 → unique_deep_research-2026.48.0.dev5}/unique_deep_research/templates/report_cleanup_prompt.j2 +0 -0
  14. {unique_deep_research-2026.48.0.dev3 → unique_deep_research-2026.48.0.dev5}/unique_deep_research/templates/research_instructions_agent.j2 +0 -0
  15. {unique_deep_research-2026.48.0.dev3 → unique_deep_research-2026.48.0.dev5}/unique_deep_research/templates/unique/compress_research_system.j2 +0 -0
  16. {unique_deep_research-2026.48.0.dev3 → unique_deep_research-2026.48.0.dev5}/unique_deep_research/templates/unique/lead_agent_system.j2 +0 -0
  17. {unique_deep_research-2026.48.0.dev3 → unique_deep_research-2026.48.0.dev5}/unique_deep_research/templates/unique/report_writer_system_open_deep_research.j2 +0 -0
  18. {unique_deep_research-2026.48.0.dev3 → unique_deep_research-2026.48.0.dev5}/unique_deep_research/templates/unique/research_agent_system.j2 +0 -0
  19. {unique_deep_research-2026.48.0.dev3 → unique_deep_research-2026.48.0.dev5}/unique_deep_research/unique_custom/__init__.py +0 -0
  20. {unique_deep_research-2026.48.0.dev3 → unique_deep_research-2026.48.0.dev5}/unique_deep_research/unique_custom/agents.py +0 -0
  21. {unique_deep_research-2026.48.0.dev3 → unique_deep_research-2026.48.0.dev5}/unique_deep_research/unique_custom/citation.py +0 -0
  22. {unique_deep_research-2026.48.0.dev3 → unique_deep_research-2026.48.0.dev5}/unique_deep_research/unique_custom/state.py +0 -0
@@ -1,19 +1,19 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: unique-deep-research
3
- Version: 2026.48.0.dev3
3
+ Version: 2026.48.0.dev5
4
4
  Summary: Deep Research Tool for complex research tasks
5
5
  Author: Martin Fadler, Sadique Sheik, Fabian Schläpfer, Pascal Hauri
6
6
  Author-email: Martin Fadler <martin.fadler@unique.ch>, Sadique Sheik <sadique@unique.ch>, Fabian Schläpfer <fabian@unique.ch>, Pascal Hauri <pascal@unique.ch>
7
7
  License: Proprietary
8
8
  Requires-Dist: pydantic>=2.8.2,<3
9
9
  Requires-Dist: typing-extensions>=4.9.0,<5
10
- Requires-Dist: unique-toolkit>=2026.48.0.dev4,<2026.48.0rc0
10
+ Requires-Dist: unique-toolkit>=2026.48.0.dev6,<2026.48.0rc0
11
11
  Requires-Dist: jinja2>=3.1.2,<4
12
12
  Requires-Dist: openai>=1.99.0,<3
13
13
  Requires-Dist: langgraph>=1.0.0,<2
14
14
  Requires-Dist: langchain-core>=1.0.0,<2
15
- Requires-Dist: unique-web-search>=2026.48.0.dev2,<2026.48.0rc0
16
- Requires-Dist: unique-search-proxy-core>=2026.48.0.dev3,<2026.48.0rc0
15
+ Requires-Dist: unique-web-search>=2026.48.0.dev3,<2026.48.0rc0
16
+ Requires-Dist: unique-search-proxy-core>=2026.48.0.dev4,<2026.48.0rc0
17
17
  Requires-Dist: httpx>=0.28.0,<0.29
18
18
  Requires-Dist: timeout-decorator>=0.5.0,<0.6
19
19
  Requires-Dist: beautifulsoup4>=4.12.0,<5
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "unique_deep_research"
3
- version = "2026.48.0.dev3"
3
+ version = "2026.48.0.dev5"
4
4
  description = "Deep Research Tool for complex research tasks"
5
5
  readme = "README.md"
6
6
  license = { text = "Proprietary" }
@@ -14,13 +14,13 @@ requires-python = ">=3.12,<4"
14
14
  dependencies = [
15
15
  "pydantic>=2.8.2,<3",
16
16
  "typing-extensions>=4.9.0,<5",
17
- "unique-toolkit>=2026.48.0.dev4,<2026.48.0rc0",
17
+ "unique-toolkit>=2026.48.0.dev6,<2026.48.0rc0",
18
18
  "jinja2>=3.1.2,<4",
19
19
  "openai>=1.99.0,<3",
20
20
  "langgraph>=1.0.0,<2",
21
21
  "langchain-core>=1.0.0,<2",
22
- "unique-web-search>=2026.48.0.dev2,<2026.48.0rc0",
23
- "unique-search-proxy-core>=2026.48.0.dev3,<2026.48.0rc0",
22
+ "unique-web-search>=2026.48.0.dev3,<2026.48.0rc0",
23
+ "unique-search-proxy-core>=2026.48.0.dev4,<2026.48.0rc0",
24
24
  "httpx>=0.28.0,<0.29",
25
25
  "timeout-decorator>=0.5.0,<0.6",
26
26
  "beautifulsoup4>=4.12.0,<5",
@@ -776,9 +776,7 @@ class DeepResearchTool(Tool[DeepResearchToolConfig]):
776
776
  or not isinstance(event.item.action.url, str)
777
777
  or "https://" not in event.item.action.url
778
778
  ):
779
- _LOGGER.warning(
780
- f"Invalid URL from OpenAI: {event.item.action}"
781
- )
779
+ _LOGGER.warning("Invalid URL from OpenAI")
782
780
  continue
783
781
 
784
782
  _, title, success = await crawl_url(
@@ -787,13 +785,11 @@ class DeepResearchTool(Tool[DeepResearchToolConfig]):
787
785
  )
788
786
  if not success:
789
787
  _LOGGER.info(
790
- f"Failed to crawl URL: {event.item.action.url} but openai still opened the page"
788
+ "Failed to crawl URL but openai still opened the page"
791
789
  )
792
790
  continue
793
791
  if not title:
794
- _LOGGER.info(
795
- f"No title found for URL: {event.item.action.url}"
796
- )
792
+ _LOGGER.info("No title found for URL")
797
793
  continue
798
794
  self.chat_service.create_message_log(
799
795
  message_id=self.chat_service.assistant_message_id,
@@ -9,7 +9,7 @@ from typing import Any, List
9
9
  import timeout_decorator
10
10
  from bs4 import BeautifulSoup
11
11
  from fake_useragent import UserAgent
12
- from httpx import AsyncClient
12
+ from httpx import AsyncClient, HTTPStatusError
13
13
  from langchain_core.messages import ToolCall
14
14
  from langchain_core.runnables import RunnableConfig
15
15
  from langchain_core.tools import Tool, tool
@@ -236,7 +236,7 @@ async def web_fetch(
236
236
 
237
237
  # Crawl the URL
238
238
  if not success:
239
- _LOGGER.info(f"Unable to fetch content from: {url}")
239
+ _LOGGER.info("Unable to fetch content in web_fetch")
240
240
  return f"Unable to fetch content from URL: {url}"
241
241
 
242
242
  # Register citation and get metadata
@@ -555,7 +555,9 @@ async def crawl_url(client: AsyncClient, url: str) -> tuple[str, str | None, boo
555
555
  response = await client.get(url, headers=headers)
556
556
  response.raise_for_status()
557
557
  except Exception as e:
558
- _LOGGER.warning(f"Failed to crawl URL: {str(e)}")
558
+ # httpx error messages include the URL, so log only the type and status.
559
+ status = e.response.status_code if isinstance(e, HTTPStatusError) else None
560
+ _LOGGER.warning(f"Failed to crawl URL: {type(e).__name__} (status {status})")
559
561
  return "Unable to crawl URL in web_fetch", None, False
560
562
 
561
563
  content_type = response.headers.get("content-type", "").lower().split(";")[0]
@@ -353,10 +353,12 @@ async def execute_tool_safely(
353
353
 
354
354
  # Handle token limit errors specifically
355
355
  if is_token_error(e):
356
- _LOGGER.warning(f"Token limit exceeded in tool {tool_name}: {str(e)}")
356
+ _LOGGER.warning(f"Token limit exceeded in tool {tool_name}")
357
357
  return f"Tool {tool_name} failed due to token limit: {str(e)}"
358
358
  else:
359
- _LOGGER.exception(f"Error executing tool {tool_name}: {str(e)}")
359
+ # Tool errors can carry the search query or URL (e.g. argument
360
+ # validation errors echo the input), so log only the type.
361
+ _LOGGER.error(f"Error executing tool {tool_name}: {type(e).__name__}")
360
362
  return f"Error executing tool {tool_name}: {str(e)}"
361
363
 
362
364