nucliadb-models 6.9.0.post5060__py3-none-any.whl → 6.9.0.post5072__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.
Potentially problematic release.
This version of nucliadb-models might be problematic. Click here for more details.
- nucliadb_models/conversation.py +8 -5
- {nucliadb_models-6.9.0.post5060.dist-info → nucliadb_models-6.9.0.post5072.dist-info}/METADATA +1 -1
- {nucliadb_models-6.9.0.post5060.dist-info → nucliadb_models-6.9.0.post5072.dist-info}/RECORD +5 -5
- {nucliadb_models-6.9.0.post5060.dist-info → nucliadb_models-6.9.0.post5072.dist-info}/WHEEL +0 -0
- {nucliadb_models-6.9.0.post5060.dist-info → nucliadb_models-6.9.0.post5072.dist-info}/top_level.txt +0 -0
nucliadb_models/conversation.py
CHANGED
|
@@ -86,10 +86,10 @@ class FieldConversation(BaseModel):
|
|
|
86
86
|
|
|
87
87
|
|
|
88
88
|
class InputMessageContent(BaseModel):
|
|
89
|
-
text: str
|
|
89
|
+
text: str = Field(max_length=1024)
|
|
90
90
|
format: MessageFormat = MessageFormat.PLAIN
|
|
91
|
-
attachments: List[FileB64] = []
|
|
92
|
-
attachments_fields: List[FieldRef] = []
|
|
91
|
+
attachments: List[FileB64] = Field(default=[], max_length=50)
|
|
92
|
+
attachments_fields: List[FieldRef] = Field(default=[], max_length=50)
|
|
93
93
|
|
|
94
94
|
|
|
95
95
|
class InputMessage(BaseModel):
|
|
@@ -102,10 +102,12 @@ class InputMessage(BaseModel):
|
|
|
102
102
|
to: List[str] = Field(
|
|
103
103
|
default_factory=list,
|
|
104
104
|
description="List of recipients of the message, e.g. ['assistant'] or ['user']",
|
|
105
|
+
max_length=100,
|
|
105
106
|
)
|
|
106
107
|
content: InputMessageContent
|
|
107
108
|
ident: str = Field(
|
|
108
|
-
description="Unique identifier for the message. Must be unique within the conversation."
|
|
109
|
+
description="Unique identifier for the message. Must be unique within the conversation.",
|
|
110
|
+
max_length=128,
|
|
109
111
|
)
|
|
110
112
|
type_: Optional[MessageType] = Field(None, alias="type")
|
|
111
113
|
|
|
@@ -126,7 +128,8 @@ class InputMessage(BaseModel):
|
|
|
126
128
|
class InputConversationField(BaseModel):
|
|
127
129
|
messages: List[InputMessage] = Field(
|
|
128
130
|
default_factory=list,
|
|
129
|
-
description="List of messages in the conversation field. Each message must have a unique ident.",
|
|
131
|
+
description="List of messages in the conversation field. Each message must have a unique ident. A single conversation can contain up to 51,200 messages. You can add up to 2,048 messages per request.",
|
|
132
|
+
max_length=2048,
|
|
130
133
|
)
|
|
131
134
|
extract_strategy: Optional[str] = Field(
|
|
132
135
|
default=None,
|
{nucliadb_models-6.9.0.post5060.dist-info → nucliadb_models-6.9.0.post5072.dist-info}/RECORD
RENAMED
|
@@ -2,7 +2,7 @@ nucliadb_models/__init__.py,sha256=3y8-htogKuCZcbhaUZdSjTeEjUSeec9aRWyL8AlKCyM,1
|
|
|
2
2
|
nucliadb_models/common.py,sha256=YW84w1NAQARObs2nXw6YBgdxQJeVCmTZZr5lSqj-IdQ,7904
|
|
3
3
|
nucliadb_models/configuration.py,sha256=aTV5mBwYFlwiV1_nWyVAXaCh7F6lDVTVh28Xfwy8ox8,2448
|
|
4
4
|
nucliadb_models/content_types.py,sha256=36Ga-iGf4ivCqgtXC7imFgegrwHB117s9eqP62JtGv0,3456
|
|
5
|
-
nucliadb_models/conversation.py,sha256=
|
|
5
|
+
nucliadb_models/conversation.py,sha256=t1u7CBMLJxoNad1RPeh9dmsXgMOzs2NCIDvhJa4RYxQ,5121
|
|
6
6
|
nucliadb_models/entities.py,sha256=i-7Y8qmFRRTih5zw0ajv1U_iiXexe66M3TK8hUikQZk,2356
|
|
7
7
|
nucliadb_models/export_import.py,sha256=mNm9IArOLnC6TLupkwqVFhxD5d08mpIVOVFneECv8UA,1073
|
|
8
8
|
nucliadb_models/external_index_providers.py,sha256=IIKjJjLixWQC1zrbzam2FDcAo5UUxShZfueZSxqZu8Y,1535
|
|
@@ -33,7 +33,7 @@ nucliadb_models/graph/responses.py,sha256=Sdq8OgFAL1YT-1lJyLLrkqcScvj7YTEqAUwQ-k
|
|
|
33
33
|
nucliadb_models/internal/__init__.py,sha256=zG33bUz1rHFPtvqQPWn4rDwBJt3FJodGuQYD45quiQg,583
|
|
34
34
|
nucliadb_models/internal/predict.py,sha256=Pnx6MmLfK65eExe1XnVxqmSlvMwdowewwks9BOEoqMw,2029
|
|
35
35
|
nucliadb_models/internal/shards.py,sha256=__y1OZtWGiNcPQEWfSFOj8yw458WGi7mM4vZe0K-L1Y,1691
|
|
36
|
-
nucliadb_models-6.9.0.
|
|
37
|
-
nucliadb_models-6.9.0.
|
|
38
|
-
nucliadb_models-6.9.0.
|
|
39
|
-
nucliadb_models-6.9.0.
|
|
36
|
+
nucliadb_models-6.9.0.post5072.dist-info/METADATA,sha256=wCUWzEC-ColRIs6n8FG6fj6ZRnuBCapvphXk71AYoDc,794
|
|
37
|
+
nucliadb_models-6.9.0.post5072.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
38
|
+
nucliadb_models-6.9.0.post5072.dist-info/top_level.txt,sha256=UrY1I8oeovIRwkXLYplssTrxQdUjhSEFDFbnwaIV3tA,16
|
|
39
|
+
nucliadb_models-6.9.0.post5072.dist-info/RECORD,,
|
|
File without changes
|
{nucliadb_models-6.9.0.post5060.dist-info → nucliadb_models-6.9.0.post5072.dist-info}/top_level.txt
RENAMED
|
File without changes
|