dyff-schema 0.38.6__tar.gz → 0.38.7__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.
Potentially problematic release.
This version of dyff-schema might be problematic. Click here for more details.
- {dyff_schema-0.38.6/dyff_schema.egg-info → dyff_schema-0.38.7}/PKG-INFO +1 -1
- dyff_schema-0.38.7/dyff/schema/_version.py +2 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/dyff/schema/v0/r1/platform.py +28 -5
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/dyff/schema/v0/r1/requests.py +8 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7/dyff_schema.egg-info}/PKG-INFO +1 -1
- dyff_schema-0.38.6/dyff/schema/_version.py +0 -2
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/.gitignore +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/.gitlab-ci.yml +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/.idea/dyff-schema.iml +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/.licenserc.yaml +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/.pre-commit-config.yaml +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/.prettierignore +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/.secrets.baseline +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/CODE_OF_CONDUCT.md +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/LICENSE +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/NOTICE +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/README.md +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/dyff/schema/__init__.py +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/dyff/schema/adapters.py +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/dyff/schema/annotations.py +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/dyff/schema/base.py +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/dyff/schema/commands.py +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/dyff/schema/copydoc.py +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/dyff/schema/dataset/__init__.py +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/dyff/schema/dataset/arrow.py +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/dyff/schema/dataset/binary.py +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/dyff/schema/dataset/classification.py +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/dyff/schema/dataset/embedding.py +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/dyff/schema/dataset/text.py +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/dyff/schema/dataset/vision.py +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/dyff/schema/errors.py +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/dyff/schema/ids.py +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/dyff/schema/io/__init__.py +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/dyff/schema/io/vllm.py +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/dyff/schema/platform.py +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/dyff/schema/py.typed +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/dyff/schema/quantity.py +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/dyff/schema/requests.py +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/dyff/schema/responses.py +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/dyff/schema/test.py +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/dyff/schema/v0/__init__.py +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/dyff/schema/v0/r1/__init__.py +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/dyff/schema/v0/r1/adapters.py +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/dyff/schema/v0/r1/base.py +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/dyff/schema/v0/r1/commands.py +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/dyff/schema/v0/r1/dataset/__init__.py +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/dyff/schema/v0/r1/dataset/arrow.py +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/dyff/schema/v0/r1/dataset/binary.py +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/dyff/schema/v0/r1/dataset/classification.py +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/dyff/schema/v0/r1/dataset/embedding.py +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/dyff/schema/v0/r1/dataset/text.py +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/dyff/schema/v0/r1/dataset/vision.py +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/dyff/schema/v0/r1/io/__init__.py +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/dyff/schema/v0/r1/io/vllm.py +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/dyff/schema/v0/r1/oci.py +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/dyff/schema/v0/r1/responses.py +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/dyff/schema/v0/r1/test.py +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/dyff/schema/v0/r1/version.py +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/dyff/schema/version.py +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/dyff_schema.egg-info/SOURCES.txt +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/dyff_schema.egg-info/dependency_links.txt +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/dyff_schema.egg-info/requires.txt +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/dyff_schema.egg-info/top_level.txt +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/makefile +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/pyproject.toml +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/setup.cfg +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/tests/test_adapters.py +0 -0
- {dyff_schema-0.38.6 → dyff_schema-0.38.7}/tests/test_import.py +0 -0
|
@@ -2656,6 +2656,18 @@ class ChallengeTaskContent(DyffSchemaBaseModel):
|
|
|
2656
2656
|
)
|
|
2657
2657
|
|
|
2658
2658
|
|
|
2659
|
+
class ChallengeSubmissionStructure(DyffSchemaBaseModel):
|
|
2660
|
+
submissionKind: EntityKindLiteral = pydantic.Field(
|
|
2661
|
+
default=Entities.InferenceService.value,
|
|
2662
|
+
description="The kind of entity that you can submit to this task.",
|
|
2663
|
+
)
|
|
2664
|
+
pipelineKeyword: str = pydantic.Field(
|
|
2665
|
+
default="submission",
|
|
2666
|
+
description="The keyword parameter where the submitted entity ID"
|
|
2667
|
+
" should be passed to the assessment Pipeline.",
|
|
2668
|
+
)
|
|
2669
|
+
|
|
2670
|
+
|
|
2659
2671
|
class ChallengeTaskBase(DyffSchemaBaseModel):
|
|
2660
2672
|
"""The part of the ChallengeTask spec that is not system-populated."""
|
|
2661
2673
|
|
|
@@ -2669,7 +2681,11 @@ class ChallengeTaskBase(DyffSchemaBaseModel):
|
|
|
2669
2681
|
pattern=r"[a-z0-9-]*",
|
|
2670
2682
|
)
|
|
2671
2683
|
assessment: str = pydantic.Field(
|
|
2672
|
-
description="ID of the
|
|
2684
|
+
description="ID of the Pipeline used to assess the submission."
|
|
2685
|
+
)
|
|
2686
|
+
submissionStructure: ChallengeSubmissionStructure = pydantic.Field(
|
|
2687
|
+
default_factory=ChallengeSubmissionStructure,
|
|
2688
|
+
description="How to run the assessment pipeline on a new submission.",
|
|
2673
2689
|
)
|
|
2674
2690
|
rules: ChallengeTaskRules = pydantic.Field(description="The rules for submissions.")
|
|
2675
2691
|
content: ChallengeTaskContent = pydantic.Field(
|
|
@@ -2729,7 +2745,14 @@ class Challenge(DyffEntity):
|
|
|
2729
2745
|
return None
|
|
2730
2746
|
|
|
2731
2747
|
|
|
2732
|
-
class
|
|
2748
|
+
class ChallengeSubmissionBase(DyffSchemaBaseModel):
|
|
2749
|
+
team: str = pydantic.Field(description="The ID of the team making the submission.")
|
|
2750
|
+
submission: EntityIdentifier = pydantic.Field(
|
|
2751
|
+
description="The resource being submitted for assessment."
|
|
2752
|
+
)
|
|
2753
|
+
|
|
2754
|
+
|
|
2755
|
+
class ChallengeSubmission(DyffEntity, ChallengeSubmissionBase):
|
|
2733
2756
|
"""A submission of an inference system to a challenge by a team.
|
|
2734
2757
|
|
|
2735
2758
|
All of the constituent resources must already exist. Creating a Submission simply
|
|
@@ -2746,9 +2769,8 @@ class ChallengeSubmission(DyffEntity):
|
|
|
2746
2769
|
task: str = pydantic.Field(
|
|
2747
2770
|
description="The key of the task within the challenge being submitted to."
|
|
2748
2771
|
)
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
description="The ID of the inference service being submitted."
|
|
2772
|
+
pipelineRun: str = pydantic.Field(
|
|
2773
|
+
description="The ID of the PipelineRun for this submission."
|
|
2752
2774
|
)
|
|
2753
2775
|
|
|
2754
2776
|
def dependencies(self) -> list[str]:
|
|
@@ -3304,6 +3326,7 @@ __all__ = [
|
|
|
3304
3326
|
"ChallengeContent",
|
|
3305
3327
|
"ChallengeContentPage",
|
|
3306
3328
|
"ChallengeSubmission",
|
|
3329
|
+
"ChallengeSubmissionBase",
|
|
3307
3330
|
"ChallengeTask",
|
|
3308
3331
|
"ChallengeTaskBase",
|
|
3309
3332
|
"ChallengeTaskContent",
|
|
@@ -27,6 +27,7 @@ from .platform import (
|
|
|
27
27
|
AnalysisRequestBase,
|
|
28
28
|
AnalysisScope,
|
|
29
29
|
ChallengeContent,
|
|
30
|
+
ChallengeSubmissionBase,
|
|
30
31
|
ChallengeTaskBase,
|
|
31
32
|
ConcernBase,
|
|
32
33
|
DatasetBase,
|
|
@@ -148,6 +149,12 @@ class ChallengeCreateRequest(DyffEntityCreateRequest):
|
|
|
148
149
|
)
|
|
149
150
|
|
|
150
151
|
|
|
152
|
+
class ChallengeSubmissionCreateRequest(
|
|
153
|
+
DyffEntityCreateRequest, ChallengeSubmissionBase
|
|
154
|
+
):
|
|
155
|
+
pass
|
|
156
|
+
|
|
157
|
+
|
|
151
158
|
class ChallengeTaskCreateRequest(DyffEntityCreateRequest, ChallengeTaskBase):
|
|
152
159
|
pass
|
|
153
160
|
|
|
@@ -497,6 +504,7 @@ __all__ = [
|
|
|
497
504
|
"ChallengeContentEditRequest",
|
|
498
505
|
"ChallengeCreateRequest",
|
|
499
506
|
"ChallengeQueryRequest",
|
|
507
|
+
"ChallengeSubmissionCreateRequest",
|
|
500
508
|
"ChallengeTaskCreateRequest",
|
|
501
509
|
"ChallengeTaskRulesEditRequest",
|
|
502
510
|
"ChallengeTeamCreateRequest",
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|