unique_internal_search 2026.28.0.dev2__tar.gz → 2026.28.0.dev3__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_internal_search-2026.28.0.dev2 → unique_internal_search-2026.28.0.dev3}/PKG-INFO +2 -2
- {unique_internal_search-2026.28.0.dev2 → unique_internal_search-2026.28.0.dev3}/pyproject.toml +2 -2
- {unique_internal_search-2026.28.0.dev2 → unique_internal_search-2026.28.0.dev3}/unique_internal_search/service.py +5 -8
- {unique_internal_search-2026.28.0.dev2 → unique_internal_search-2026.28.0.dev3}/unique_internal_search/uploaded_search/service.py +3 -6
- {unique_internal_search-2026.28.0.dev2 → unique_internal_search-2026.28.0.dev3}/README.md +0 -0
- {unique_internal_search-2026.28.0.dev2 → unique_internal_search-2026.28.0.dev3}/unique_internal_search/__init__.py +0 -0
- {unique_internal_search-2026.28.0.dev2 → unique_internal_search-2026.28.0.dev3}/unique_internal_search/config.py +0 -0
- {unique_internal_search-2026.28.0.dev2 → unique_internal_search-2026.28.0.dev3}/unique_internal_search/prompts.py +0 -0
- {unique_internal_search-2026.28.0.dev2 → unique_internal_search-2026.28.0.dev3}/unique_internal_search/services/message_log.py +0 -0
- {unique_internal_search-2026.28.0.dev2 → unique_internal_search-2026.28.0.dev3}/unique_internal_search/uploaded_search/config.py +0 -0
- {unique_internal_search-2026.28.0.dev2 → unique_internal_search-2026.28.0.dev3}/unique_internal_search/uploaded_search/prompts/__init__.py +0 -0
- {unique_internal_search-2026.28.0.dev2 → unique_internal_search-2026.28.0.dev3}/unique_internal_search/uploaded_search/prompts/tool_description_for_system_prompt.j2 +0 -0
- {unique_internal_search-2026.28.0.dev2 → unique_internal_search-2026.28.0.dev3}/unique_internal_search/utils.py +0 -0
- {unique_internal_search-2026.28.0.dev2 → unique_internal_search-2026.28.0.dev3}/unique_internal_search/validators.py +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: unique-internal-search
|
|
3
|
-
Version: 2026.28.0.
|
|
3
|
+
Version: 2026.28.0.dev3
|
|
4
4
|
Summary:
|
|
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.28.0.
|
|
10
|
+
Requires-Dist: unique-toolkit>=2026.28.0.dev7,<2026.28.0rc0
|
|
11
11
|
Requires-Python: >=3.12, <4
|
|
12
12
|
Description-Content-Type: text/markdown
|
|
13
13
|
|
{unique_internal_search-2026.28.0.dev2 → unique_internal_search-2026.28.0.dev3}/pyproject.toml
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "unique_internal_search"
|
|
3
|
-
version = "2026.28.0.
|
|
3
|
+
version = "2026.28.0.dev3"
|
|
4
4
|
description = ""
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
license = { text = "Proprietary" }
|
|
@@ -14,7 +14,7 @@ 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.28.0.
|
|
17
|
+
"unique-toolkit>=2026.28.0.dev7,<2026.28.0rc0",
|
|
18
18
|
]
|
|
19
19
|
|
|
20
20
|
[build-system]
|
|
@@ -21,7 +21,7 @@ from unique_toolkit.agentic.tools.names import INTERNAL_SEARCH_TOOL_NAME
|
|
|
21
21
|
from unique_toolkit.agentic.tools.schemas import ToolCallResponse
|
|
22
22
|
from unique_toolkit.agentic.tools.tool import Tool
|
|
23
23
|
from unique_toolkit.agentic.tools.tool_progress_reporter import ProgressState
|
|
24
|
-
from unique_toolkit.app.schemas import
|
|
24
|
+
from unique_toolkit.app.schemas import ChatEvent
|
|
25
25
|
from unique_toolkit.chat.service import LanguageModelToolDescription
|
|
26
26
|
from unique_toolkit.content.schemas import Content, ContentChunk
|
|
27
27
|
from unique_toolkit.content.service import ContentService
|
|
@@ -361,7 +361,7 @@ class InternalSearchTool(Tool[InternalSearchConfig], InternalSearchService):
|
|
|
361
361
|
def __init__(
|
|
362
362
|
self,
|
|
363
363
|
configuration: InternalSearchConfig,
|
|
364
|
-
event:
|
|
364
|
+
event: ChatEvent,
|
|
365
365
|
*args,
|
|
366
366
|
**kwargs,
|
|
367
367
|
):
|
|
@@ -370,13 +370,10 @@ class InternalSearchTool(Tool[InternalSearchConfig], InternalSearchService):
|
|
|
370
370
|
content_service = ContentService.from_event(self.event)
|
|
371
371
|
chunk_relevancy_sorter = ChunkRelevancySorter.from_event(self.event)
|
|
372
372
|
selected_uploaded_file_ids = extract_selected_uploaded_file_ids(self.event)
|
|
373
|
-
if
|
|
374
|
-
|
|
375
|
-
chat_id = self.event.payload.correlation.parent_chat_id
|
|
376
|
-
else:
|
|
377
|
-
chat_id = self.event.payload.chat_id
|
|
373
|
+
if self.event.payload.correlation:
|
|
374
|
+
chat_id = self.event.payload.correlation.parent_chat_id
|
|
378
375
|
else:
|
|
379
|
-
chat_id =
|
|
376
|
+
chat_id = self.event.payload.chat_id
|
|
380
377
|
self._display_name = kwargs.get("display_name", "Internal Search")
|
|
381
378
|
InternalSearchService.__init__(
|
|
382
379
|
self,
|
|
@@ -14,7 +14,7 @@ from unique_toolkit.agentic.tools.tool_progress_reporter import (
|
|
|
14
14
|
ProgressState,
|
|
15
15
|
ToolProgressReporter,
|
|
16
16
|
)
|
|
17
|
-
from unique_toolkit.app.schemas import
|
|
17
|
+
from unique_toolkit.app.schemas import ChatEvent
|
|
18
18
|
from unique_toolkit.chat.service import LanguageModelToolDescription
|
|
19
19
|
from unique_toolkit.content import Content
|
|
20
20
|
from unique_toolkit.language_model.schemas import (
|
|
@@ -33,7 +33,7 @@ class UploadedSearchTool(Tool[UploadedSearchConfig]):
|
|
|
33
33
|
def __init__(
|
|
34
34
|
self,
|
|
35
35
|
config: UploadedSearchConfig,
|
|
36
|
-
event:
|
|
36
|
+
event: ChatEvent,
|
|
37
37
|
tool_progress_reporter: ToolProgressReporter,
|
|
38
38
|
*args,
|
|
39
39
|
**kwargs,
|
|
@@ -48,10 +48,7 @@ class UploadedSearchTool(Tool[UploadedSearchConfig]):
|
|
|
48
48
|
)
|
|
49
49
|
self._internal_search_tool._display_name = self._display_name
|
|
50
50
|
self._selected_uploaded_files = extract_selected_uploaded_file_ids(event)
|
|
51
|
-
|
|
52
|
-
self._user_query = event.payload.user_message.text
|
|
53
|
-
else:
|
|
54
|
-
self._user_query = None
|
|
51
|
+
self._user_query = event.payload.user_message.text
|
|
55
52
|
|
|
56
53
|
# This blocking API call should be avoided.
|
|
57
54
|
# However, we don't have an easy way to pass user uploaded files to the tool currently
|
|
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
|