unique_toolkit 1.43.1__py3-none-any.whl → 1.43.3__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_toolkit/_common/docx_generator/schemas.py +4 -11
- unique_toolkit/agentic/tools/a2a/evaluation/config.py +1 -1
- {unique_toolkit-1.43.1.dist-info → unique_toolkit-1.43.3.dist-info}/METADATA +7 -1
- {unique_toolkit-1.43.1.dist-info → unique_toolkit-1.43.3.dist-info}/RECORD +6 -6
- {unique_toolkit-1.43.1.dist-info → unique_toolkit-1.43.3.dist-info}/LICENSE +0 -0
- {unique_toolkit-1.43.1.dist-info → unique_toolkit-1.43.3.dist-info}/WHEEL +0 -0
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
from docx.document import Document as DocumentObject
|
|
2
|
-
from docx.enum.text import WD_PARAGRAPH_ALIGNMENT
|
|
3
2
|
from docxtpl import DocxTemplate
|
|
4
3
|
from pydantic import BaseModel
|
|
5
4
|
|
|
@@ -7,45 +6,39 @@ from pydantic import BaseModel
|
|
|
7
6
|
class HeadingField(BaseModel):
|
|
8
7
|
text: str
|
|
9
8
|
level: int = 4
|
|
10
|
-
alignment: WD_PARAGRAPH_ALIGNMENT = WD_PARAGRAPH_ALIGNMENT.LEFT
|
|
11
9
|
|
|
12
10
|
def add(self, doc: DocumentObject):
|
|
13
11
|
p = doc.add_heading(self.text, level=self.level)
|
|
14
|
-
p.alignment = self.alignment
|
|
15
12
|
return p
|
|
16
13
|
|
|
17
14
|
def __str__(self):
|
|
18
|
-
return f"HeadingField(text={self.text}, level={self.level}
|
|
15
|
+
return f"HeadingField(text={self.text}, level={self.level})"
|
|
19
16
|
|
|
20
17
|
|
|
21
18
|
class ParagraphField(BaseModel):
|
|
22
19
|
text: str
|
|
23
20
|
style: str | None = None
|
|
24
|
-
alignment: WD_PARAGRAPH_ALIGNMENT = WD_PARAGRAPH_ALIGNMENT.LEFT
|
|
25
21
|
|
|
26
22
|
def add(self, doc: DocumentObject):
|
|
27
23
|
p = doc.add_paragraph(self.text, style=self.style)
|
|
28
|
-
p.alignment = self.alignment
|
|
29
24
|
return p
|
|
30
25
|
|
|
31
26
|
def __str__(self):
|
|
32
|
-
return f"ParagraphField(text={self.text}, style={self.style}
|
|
27
|
+
return f"ParagraphField(text={self.text}, style={self.style})"
|
|
33
28
|
|
|
34
29
|
|
|
35
30
|
class RunField(BaseModel):
|
|
36
31
|
text: str
|
|
37
32
|
italic: bool | None = False
|
|
38
33
|
bold: bool | None = False
|
|
39
|
-
alignment: WD_PARAGRAPH_ALIGNMENT = WD_PARAGRAPH_ALIGNMENT.LEFT
|
|
40
34
|
|
|
41
35
|
def __str__(self):
|
|
42
|
-
return f"RunField(text={self.text}, italic={self.italic},
|
|
36
|
+
return f"RunField(text={self.text}, italic={self.italic}, bold={self.bold})"
|
|
43
37
|
|
|
44
38
|
|
|
45
39
|
class RunsField(BaseModel):
|
|
46
40
|
runs: list[RunField]
|
|
47
41
|
style: str | None = None
|
|
48
|
-
alignment: WD_PARAGRAPH_ALIGNMENT = WD_PARAGRAPH_ALIGNMENT.LEFT
|
|
49
42
|
|
|
50
43
|
def add(self, doc: DocumentObject):
|
|
51
44
|
if not self.runs:
|
|
@@ -60,7 +53,7 @@ class RunsField(BaseModel):
|
|
|
60
53
|
return p
|
|
61
54
|
|
|
62
55
|
def __str__(self):
|
|
63
|
-
return f"RunsField(runs={self.runs}, style={self.style}
|
|
56
|
+
return f"RunsField(runs={self.runs}, style={self.style})"
|
|
64
57
|
|
|
65
58
|
|
|
66
59
|
class ContentField(BaseModel):
|
|
@@ -27,7 +27,7 @@ class SubAgentEvaluationServiceConfig(BaseModel):
|
|
|
27
27
|
model_config = get_configuration_dict()
|
|
28
28
|
|
|
29
29
|
assessment_type: ChatMessageAssessmentType = Field(
|
|
30
|
-
default=ChatMessageAssessmentType.
|
|
30
|
+
default=ChatMessageAssessmentType.HALLUCINATION,
|
|
31
31
|
description="The type of assessment to use in the display.",
|
|
32
32
|
)
|
|
33
33
|
summarization_model: LMI = get_LMI_default_field(DEFAULT_GPT_4o)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: unique_toolkit
|
|
3
|
-
Version: 1.43.
|
|
3
|
+
Version: 1.43.3
|
|
4
4
|
Summary:
|
|
5
5
|
License: Proprietary
|
|
6
6
|
Author: Cedric Klinkert
|
|
@@ -124,6 +124,12 @@ All notable changes to this project will be documented in this file.
|
|
|
124
124
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
125
125
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
126
126
|
|
|
127
|
+
## [1.43.3] - 2026-01-13
|
|
128
|
+
- Changing default `assessment_type` in `SubAgentEvaluationServiceConfig` to `HALLUCINATION`
|
|
129
|
+
|
|
130
|
+
## [1.43.2] - 2026-01-12
|
|
131
|
+
- `DocxGeneratorService`: Alignment need to be specified by the template rather than in code
|
|
132
|
+
|
|
127
133
|
## [1.43.1] - 2026-01-12
|
|
128
134
|
- Remove accidental example report.md from repo
|
|
129
135
|
|
|
@@ -11,7 +11,7 @@ unique_toolkit/_common/chunk_relevancy_sorter/tests/test_service.py,sha256=giD9b
|
|
|
11
11
|
unique_toolkit/_common/default_language_model.py,sha256=XCZu6n270QkxEeTpj5NZJda6Ok_IR-GcS8w30DU21aI,343
|
|
12
12
|
unique_toolkit/_common/docx_generator/__init__.py,sha256=dqzO4NvzdXClq42vVRqqOvzKwmzqAB8CaufAo_QEv1s,226
|
|
13
13
|
unique_toolkit/_common/docx_generator/config.py,sha256=uJOa0GXvi3InuLkRDbLSD0RxMRelU2bPI73g4XcHIVc,354
|
|
14
|
-
unique_toolkit/_common/docx_generator/schemas.py,sha256=
|
|
14
|
+
unique_toolkit/_common/docx_generator/schemas.py,sha256=o-2GBaUMJTxRrnkLNKW3PCA84MR92ILAWdpO-zWulQ0,1930
|
|
15
15
|
unique_toolkit/_common/docx_generator/service.py,sha256=LM-kIfS2X3P507KLqsUJsb-rm6-i-G2yz2Nb5AEfY3w,7770
|
|
16
16
|
unique_toolkit/_common/docx_generator/template/Doc Template.docx,sha256=USnCg8h6d-N0751riNjqYr6ALLffU-EoJ8WY57K55r0,34757
|
|
17
17
|
unique_toolkit/_common/endpoint_builder.py,sha256=pEDwgeDzt67qbyaM98u8X7UAy29mQIw9Qufjz2bxgEA,11410
|
|
@@ -118,7 +118,7 @@ unique_toolkit/agentic/tools/a2a/__init__.py,sha256=41DntFL-YKOQFBxObfrhlKmMj2BD
|
|
|
118
118
|
unique_toolkit/agentic/tools/a2a/config.py,sha256=6diTTSiS2prY294LfYozB-db2wmJ6jv1hAr2leRY-xk,768
|
|
119
119
|
unique_toolkit/agentic/tools/a2a/evaluation/__init__.py,sha256=Efso468EQ4UANv140qcrRPCdX98-OQJfnrLqhgJ9pfE,412
|
|
120
120
|
unique_toolkit/agentic/tools/a2a/evaluation/_utils.py,sha256=FO5_us6mC4t_X4OVtNei1Ife4SjMjCiFOsPhUHUsY-s,1878
|
|
121
|
-
unique_toolkit/agentic/tools/a2a/evaluation/config.py,sha256=
|
|
121
|
+
unique_toolkit/agentic/tools/a2a/evaluation/config.py,sha256=DLdDXWiXqkRgl-lmoSJxeMiXMScA4PFu2xVuMAqTHyA,2358
|
|
122
122
|
unique_toolkit/agentic/tools/a2a/evaluation/evaluator.py,sha256=74ceLV-2zye0MANxhsEt7oG8KSxYT1_HMnlwUAi7tXw,9386
|
|
123
123
|
unique_toolkit/agentic/tools/a2a/evaluation/summarization_user_message.j2,sha256=acP1YqD_sCy6DT0V2EIfhQTmaUKeqpeWNJ7RGgceo8I,271
|
|
124
124
|
unique_toolkit/agentic/tools/a2a/manager.py,sha256=pk06UUXKQdIUY-PyykYiItubBjmIydOaqWvBBDwhMN4,1939
|
|
@@ -242,7 +242,7 @@ unique_toolkit/short_term_memory/service.py,sha256=5PeVBu1ZCAfyDb2HLVvlmqSbyzBBu
|
|
|
242
242
|
unique_toolkit/smart_rules/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
243
243
|
unique_toolkit/smart_rules/compile.py,sha256=Ozhh70qCn2yOzRWr9d8WmJeTo7AQurwd3tStgBMPFLA,1246
|
|
244
244
|
unique_toolkit/test_utilities/events.py,sha256=_mwV2bs5iLjxS1ynDCjaIq-gjjKhXYCK-iy3dRfvO3g,6410
|
|
245
|
-
unique_toolkit-1.43.
|
|
246
|
-
unique_toolkit-1.43.
|
|
247
|
-
unique_toolkit-1.43.
|
|
248
|
-
unique_toolkit-1.43.
|
|
245
|
+
unique_toolkit-1.43.3.dist-info/LICENSE,sha256=GlN8wHNdh53xwOPg44URnwag6TEolCjoq3YD_KrWgss,193
|
|
246
|
+
unique_toolkit-1.43.3.dist-info/METADATA,sha256=3UEEyQEgVOzXdyCX91Z7c7vhTERt0gtrDJUa1Z8xkvg,47840
|
|
247
|
+
unique_toolkit-1.43.3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
248
|
+
unique_toolkit-1.43.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|