nucliadb-models 6.3.4.post3817__py3-none-any.whl → 6.3.4.post3821__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.
@@ -31,20 +31,20 @@ from nucliadb_models.security import RequestSecurity
31
31
  ## Models for graph nodes and relations
32
32
 
33
33
 
34
- class NodeMatchKind(str, Enum):
34
+ class NodeMatchKindName(str, Enum):
35
35
  EXACT = "exact"
36
36
  FUZZY = "fuzzy"
37
37
 
38
38
 
39
39
  class GraphNode(BaseModel, extra="forbid"):
40
40
  value: Optional[str] = None
41
- match: NodeMatchKind = NodeMatchKind.EXACT
41
+ match: NodeMatchKindName = NodeMatchKindName.EXACT
42
42
  type: Optional[RelationNodeType] = RelationNodeType.ENTITY
43
43
  group: Optional[str] = None
44
44
 
45
45
  @model_validator(mode="after")
46
46
  def validate_fuzzy_usage(self) -> Self:
47
- if self.match == NodeMatchKind.FUZZY:
47
+ if self.match == NodeMatchKindName.FUZZY:
48
48
  if self.value is None:
49
49
  raise ValueError("Fuzzy match can only be used if a node value is provided")
50
50
  else:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nucliadb_models
3
- Version: 6.3.4.post3817
3
+ Version: 6.3.4.post3821
4
4
  Author-email: Nuclia <nucliadb@nuclia.com>
5
5
  License: AGPL
6
6
  Project-URL: Homepage, https://nuclia.com
@@ -27,12 +27,12 @@ nucliadb_models/vectorsets.py,sha256=avxwO9JPX2k5sCniuNhh2MSsP7aRNvf1eB1-h3-Ju1o
27
27
  nucliadb_models/writer.py,sha256=OLtCGmicpVf56pXi2_myTAvStpnaBKKOVNtZzHkKKtw,8472
28
28
  nucliadb_models/agents/ingestion.py,sha256=mV7gV6VpYg4VNpc59K3275TMUJZbUzeUnp3SZzO5uxY,3137
29
29
  nucliadb_models/graph/__init__.py,sha256=eu_1UK7GlBQRg5IRUqJkxVMcBxkXeqX4SZL6fuvwjDg,897
30
- nucliadb_models/graph/requests.py,sha256=vbfaGVlVmgrflIwr1yV4DJEteVHsbL8wJMQb-olLFSA,7528
30
+ nucliadb_models/graph/requests.py,sha256=3orvG3NOQJinBigxQZvnzoAJY-X9pDpQuaf5Brz1eNI,7544
31
31
  nucliadb_models/graph/responses.py,sha256=3aimAHrd3YW1BXHU_ZXRoidlccRtkCcREkfCNotqgIQ,1651
32
32
  nucliadb_models/internal/__init__.py,sha256=cp15ZcFnHvpcu_5-aK2A4uUyvuZVV_MJn4bIXMa20ks,835
33
33
  nucliadb_models/internal/predict.py,sha256=5rgUPrH_98gerySOZ-TR2PX_qzCGF1_8VxyOu3bGhis,2281
34
34
  nucliadb_models/internal/shards.py,sha256=uZLsMkYWrJDHq3xy_w7snSeV2X3aDBuht9GC_MG3sKc,1976
35
- nucliadb_models-6.3.4.post3817.dist-info/METADATA,sha256=xxuuraU2Deu7jRoeVwgGC5bjJB7i0RcQIzc45KAOCQU,759
36
- nucliadb_models-6.3.4.post3817.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
37
- nucliadb_models-6.3.4.post3817.dist-info/top_level.txt,sha256=UrY1I8oeovIRwkXLYplssTrxQdUjhSEFDFbnwaIV3tA,16
38
- nucliadb_models-6.3.4.post3817.dist-info/RECORD,,
35
+ nucliadb_models-6.3.4.post3821.dist-info/METADATA,sha256=huTllTstKWsW4bSBpcXBcDg74BkNeiUy4jusOyNQqR0,759
36
+ nucliadb_models-6.3.4.post3821.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
37
+ nucliadb_models-6.3.4.post3821.dist-info/top_level.txt,sha256=UrY1I8oeovIRwkXLYplssTrxQdUjhSEFDFbnwaIV3tA,16
38
+ nucliadb_models-6.3.4.post3821.dist-info/RECORD,,