File tree Expand file tree Collapse file tree 2 files changed +2
-12
lines changed
Expand file tree Collapse file tree 2 files changed +2
-12
lines changed Original file line number Diff line number Diff line change 4141 DatasetLicense ,
4242 DatasetStatus ,
4343 DatasetType ,
44+ PromptFormat ,
4445 PromptTaskType ,
4546 UseCaseStatus ,
4647)
5758DatasetLicenseENUM = strawberry .enum (DatasetLicense ) # type: ignore
5859DatasetTypeENUM = strawberry .enum (DatasetType ) # type: ignore
5960PromptTaskTypeENUM = strawberry .enum (PromptTaskType ) # type: ignore
61+ PromptFormatENUM = strawberry .enum (PromptFormat ) # type: ignore
6062
6163
6264# Create permission classes dynamically with different operations
Original file line number Diff line number Diff line change @@ -43,15 +43,3 @@ class TypePromptDataset(TypeDataset):
4343 domain : Optional [prompt_domain_enum ]
4444 target_model_types : Optional [List [target_model_type_enum ]]
4545 evaluation_criteria : Optional [strawberry .scalars .JSON ]
46-
47-
48- # Keep TypePromptMetadata as an alias for backward compatibility in nested queries
49- @strawberry .type
50- class TypePromptMetadata :
51- """Prompt-specific metadata fields (for embedding in TypeDataset)."""
52-
53- task_type : Optional [prompt_task_type_enum ]
54- target_languages : Optional [List [target_language_enum ]]
55- domain : Optional [prompt_domain_enum ]
56- target_model_types : Optional [List [target_model_type_enum ]]
57- evaluation_criteria : Optional [strawberry .scalars .JSON ]
You can’t perform that action at this time.
0 commit comments