scale-gp-beta 0.1.0a29__py3-none-any.whl → 0.1.0a31__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.
Files changed (61) hide show
  1. scale_gp_beta/_base_client.py +7 -4
  2. scale_gp_beta/_client.py +17 -8
  3. scale_gp_beta/_compat.py +48 -48
  4. scale_gp_beta/_files.py +4 -4
  5. scale_gp_beta/_models.py +63 -42
  6. scale_gp_beta/_types.py +35 -1
  7. scale_gp_beta/_utils/__init__.py +9 -2
  8. scale_gp_beta/_utils/_compat.py +45 -0
  9. scale_gp_beta/_utils/_datetime_parse.py +136 -0
  10. scale_gp_beta/_utils/_transform.py +11 -1
  11. scale_gp_beta/_utils/_typing.py +6 -1
  12. scale_gp_beta/_utils/_utils.py +0 -1
  13. scale_gp_beta/_version.py +1 -1
  14. scale_gp_beta/lib/CONTRIBUTING.MD +53 -0
  15. scale_gp_beta/lib/tracing/trace_queue_manager.py +14 -0
  16. scale_gp_beta/resources/__init__.py +20 -6
  17. scale_gp_beta/resources/chat/completions.py +22 -18
  18. scale_gp_beta/resources/completions.py +18 -18
  19. scale_gp_beta/resources/datasets.py +8 -8
  20. scale_gp_beta/resources/evaluations.py +35 -13
  21. scale_gp_beta/resources/responses.py +314 -0
  22. scale_gp_beta/resources/spans.py +25 -33
  23. scale_gp_beta/types/__init__.py +17 -0
  24. scale_gp_beta/types/chat/chat_completion.py +61 -6
  25. scale_gp_beta/types/chat/chat_completion_chunk.py +17 -1
  26. scale_gp_beta/types/chat/completion_create_params.py +5 -3
  27. scale_gp_beta/types/chat/completion_models_params.py +2 -0
  28. scale_gp_beta/types/chat/model_definition.py +6 -0
  29. scale_gp_beta/types/completion.py +8 -0
  30. scale_gp_beta/types/completion_create_params.py +5 -3
  31. scale_gp_beta/types/container.py +2 -8
  32. scale_gp_beta/types/container_param.py +2 -2
  33. scale_gp_beta/types/dataset.py +3 -1
  34. scale_gp_beta/types/dataset_create_params.py +4 -2
  35. scale_gp_beta/types/dataset_item.py +3 -1
  36. scale_gp_beta/types/dataset_list_params.py +3 -2
  37. scale_gp_beta/types/dataset_update_params.py +3 -2
  38. scale_gp_beta/types/evaluation.py +7 -8
  39. scale_gp_beta/types/evaluation_create_params.py +17 -6
  40. scale_gp_beta/types/evaluation_item.py +3 -1
  41. scale_gp_beta/types/evaluation_list_params.py +3 -1
  42. scale_gp_beta/types/evaluation_task.py +31 -55
  43. scale_gp_beta/types/evaluation_task_param.py +32 -4
  44. scale_gp_beta/types/evaluation_update_params.py +3 -2
  45. scale_gp_beta/types/file.py +3 -1
  46. scale_gp_beta/types/inference_model.py +7 -0
  47. scale_gp_beta/types/model_create_params.py +6 -4
  48. scale_gp_beta/types/model_update_params.py +6 -4
  49. scale_gp_beta/types/question.py +11 -10
  50. scale_gp_beta/types/question_create_params.py +4 -2
  51. scale_gp_beta/types/response.py +2852 -0
  52. scale_gp_beta/types/response_create_params.py +819 -0
  53. scale_gp_beta/types/response_create_response.py +20891 -0
  54. scale_gp_beta/types/shared/__init__.py +3 -0
  55. scale_gp_beta/types/shared/identity.py +16 -0
  56. scale_gp_beta/types/span.py +4 -2
  57. scale_gp_beta/types/span_search_params.py +10 -12
  58. {scale_gp_beta-0.1.0a29.dist-info → scale_gp_beta-0.1.0a31.dist-info}/METADATA +2 -3
  59. {scale_gp_beta-0.1.0a29.dist-info → scale_gp_beta-0.1.0a31.dist-info}/RECORD +61 -52
  60. {scale_gp_beta-0.1.0a29.dist-info → scale_gp_beta-0.1.0a31.dist-info}/WHEEL +0 -0
  61. {scale_gp_beta-0.1.0a29.dist-info → scale_gp_beta-0.1.0a31.dist-info}/licenses/LICENSE +0 -0
@@ -2,9 +2,11 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import Dict, List, Union, Iterable
5
+ from typing import Dict, Union, Iterable
6
6
  from typing_extensions import Required, TypeAlias, TypedDict
7
7
 
8
+ from .._types import SequenceNotStr
9
+
8
10
  __all__ = [
9
11
  "EvaluationCreateParams",
10
12
  "EvaluationStandaloneCreateRequest",
@@ -23,7 +25,10 @@ class EvaluationStandaloneCreateRequest(TypedDict, total=False):
23
25
 
24
26
  description: str
25
27
 
26
- tags: List[str]
28
+ metadata: Dict[str, object]
29
+ """Optional metadata key-value pairs for the evaluation"""
30
+
31
+ tags: SequenceNotStr[str]
27
32
  """The tags associated with the entity"""
28
33
 
29
34
  tasks: Iterable["EvaluationTaskParam"]
@@ -41,7 +46,10 @@ class EvaluationFromDatasetCreateRequest(TypedDict, total=False):
41
46
 
42
47
  description: str
43
48
 
44
- tags: List[str]
49
+ metadata: Dict[str, object]
50
+ """Optional metadata key-value pairs for the evaluation"""
51
+
52
+ tags: SequenceNotStr[str]
45
53
  """The tags associated with the entity"""
46
54
 
47
55
  tasks: Iterable["EvaluationTaskParam"]
@@ -68,7 +76,10 @@ class EvaluationWithDatasetCreateRequest(TypedDict, total=False):
68
76
 
69
77
  description: str
70
78
 
71
- tags: List[str]
79
+ metadata: Dict[str, object]
80
+ """Optional metadata key-value pairs for the evaluation"""
81
+
82
+ tags: SequenceNotStr[str]
72
83
  """The tags associated with the entity"""
73
84
 
74
85
  tasks: Iterable["EvaluationTaskParam"]
@@ -80,13 +91,13 @@ class EvaluationWithDatasetCreateRequestDataset(TypedDict, total=False):
80
91
 
81
92
  description: str
82
93
 
83
- keys: List[str]
94
+ keys: SequenceNotStr[str]
84
95
  """Keys from items in the `data` field that should be included in the dataset.
85
96
 
86
97
  If not provided, all keys will be included.
87
98
  """
88
99
 
89
- tags: List[str]
100
+ tags: SequenceNotStr[str]
90
101
  """The tags associated with the entity"""
91
102
 
92
103
 
@@ -5,6 +5,7 @@ from datetime import datetime
5
5
  from typing_extensions import Literal
6
6
 
7
7
  from .._models import BaseModel
8
+ from .shared.identity import Identity
8
9
 
9
10
  __all__ = ["EvaluationItem"]
10
11
 
@@ -14,7 +15,8 @@ class EvaluationItem(BaseModel):
14
15
 
15
16
  created_at: datetime
16
17
 
17
- created_by_user_id: str
18
+ created_by: Identity
19
+ """The identity that created the entity."""
18
20
 
19
21
  data: Dict[str, object]
20
22
 
@@ -5,6 +5,8 @@ from __future__ import annotations
5
5
  from typing import List
6
6
  from typing_extensions import Literal, TypedDict
7
7
 
8
+ from .._types import SequenceNotStr
9
+
8
10
  __all__ = ["EvaluationListParams"]
9
11
 
10
12
 
@@ -21,6 +23,6 @@ class EvaluationListParams(TypedDict, total=False):
21
23
 
22
24
  starting_after: str
23
25
 
24
- tags: List[str]
26
+ tags: SequenceNotStr[str]
25
27
 
26
28
  views: List[Literal["tasks"]]
@@ -5,8 +5,9 @@ from __future__ import annotations
5
5
  from typing import TYPE_CHECKING, Dict, List, Union, Optional
6
6
  from typing_extensions import Literal, Annotated, TypeAlias
7
7
 
8
+ from pydantic import Field as FieldInfo
9
+
8
10
  from .._utils import PropertyInfo
9
- from .._compat import PYDANTIC_V2
10
11
  from .._models import BaseModel
11
12
  from .item_locator import ItemLocator
12
13
 
@@ -38,6 +39,8 @@ __all__ = [
38
39
  "AutoEvaluationQuestionTaskConfiguration",
39
40
  "AutoEvaluationGuidedDecodingEvaluationTask",
40
41
  "AutoEvaluationGuidedDecodingEvaluationTaskConfiguration",
42
+ "AutoEvaluationGuidedDecodingEvaluationTaskConfigurationAutoEvaluationStructuredOutputTaskRequestWithItemLocator",
43
+ "AutoEvaluationGuidedDecodingEvaluationTaskConfigurationAutoEvaluationGuidedDecodingTaskRequestWithItemLocator",
41
44
  "ContributorEvaluationQuestionTask",
42
45
  "ContributorEvaluationQuestionTaskConfiguration",
43
46
  ]
@@ -98,6 +101,7 @@ class ChatCompletionEvaluationTaskConfiguration(BaseModel):
98
101
 
99
102
  top_p: Union[float, ItemLocator, None] = None
100
103
 
104
+ __pydantic_extra__: Dict[str, object] = FieldInfo(init=False) # pyright: ignore[reportIncompatibleVariableOverride]
101
105
  if TYPE_CHECKING:
102
106
  # Stub to indicate that arbitrary properties are accepted.
103
107
  # To access properties that are not valid identifiers you can use `getattr`, e.g.
@@ -325,7 +329,26 @@ class AutoEvaluationQuestionTask(BaseModel):
325
329
  task_type: Optional[Literal["auto_evaluation.question"]] = None
326
330
 
327
331
 
328
- class AutoEvaluationGuidedDecodingEvaluationTaskConfiguration(BaseModel):
332
+ class AutoEvaluationGuidedDecodingEvaluationTaskConfigurationAutoEvaluationStructuredOutputTaskRequestWithItemLocator(
333
+ BaseModel
334
+ ):
335
+ model: str
336
+ """model specified as `model_vendor/model_name`"""
337
+
338
+ prompt: str
339
+
340
+ response_format: Dict[str, object]
341
+ """JSON schema used for structuring the model response"""
342
+
343
+ inference_args: Optional[Dict[str, object]] = None
344
+ """Additional arguments to pass to the inference request"""
345
+
346
+ system_prompt: Optional[str] = None
347
+
348
+
349
+ class AutoEvaluationGuidedDecodingEvaluationTaskConfigurationAutoEvaluationGuidedDecodingTaskRequestWithItemLocator(
350
+ BaseModel
351
+ ):
329
352
  choices: List[str]
330
353
  """Choices array cannot be empty"""
331
354
 
@@ -340,6 +363,12 @@ class AutoEvaluationGuidedDecodingEvaluationTaskConfiguration(BaseModel):
340
363
  system_prompt: Optional[str] = None
341
364
 
342
365
 
366
+ AutoEvaluationGuidedDecodingEvaluationTaskConfiguration: TypeAlias = Union[
367
+ AutoEvaluationGuidedDecodingEvaluationTaskConfigurationAutoEvaluationStructuredOutputTaskRequestWithItemLocator,
368
+ AutoEvaluationGuidedDecodingEvaluationTaskConfigurationAutoEvaluationGuidedDecodingTaskRequestWithItemLocator,
369
+ ]
370
+
371
+
343
372
  class AutoEvaluationGuidedDecodingEvaluationTask(BaseModel):
344
373
  configuration: AutoEvaluationGuidedDecodingEvaluationTaskConfiguration
345
374
 
@@ -387,56 +416,3 @@ EvaluationTask: TypeAlias = Annotated[
387
416
  ]
388
417
 
389
418
  from .container import Container
390
-
391
- if PYDANTIC_V2:
392
- ChatCompletionEvaluationTask.model_rebuild()
393
- ChatCompletionEvaluationTaskConfiguration.model_rebuild()
394
- GenericInferenceEvaluationTask.model_rebuild()
395
- GenericInferenceEvaluationTaskConfiguration.model_rebuild()
396
- GenericInferenceEvaluationTaskConfigurationInferenceConfigurationLaunchInferenceConfiguration.model_rebuild()
397
- ApplicationVariantV1EvaluationTask.model_rebuild()
398
- ApplicationVariantV1EvaluationTaskConfiguration.model_rebuild()
399
- ApplicationVariantV1EvaluationTaskConfigurationHistoryApplicationRequestResponsePairArray.model_rebuild()
400
- ApplicationVariantV1EvaluationTaskConfigurationOverridesAgenticApplicationOverrides.model_rebuild()
401
- ApplicationVariantV1EvaluationTaskConfigurationOverridesAgenticApplicationOverridesInitialState.model_rebuild()
402
- ApplicationVariantV1EvaluationTaskConfigurationOverridesAgenticApplicationOverridesPartialTrace.model_rebuild()
403
- MetricEvaluationTask.model_rebuild()
404
- MetricEvaluationTaskConfigurationBleuScorerConfigWithItemLocator.model_rebuild()
405
- MetricEvaluationTaskConfigurationMeteorScorerConfigWithItemLocator.model_rebuild()
406
- MetricEvaluationTaskConfigurationCosineSimilarityScorerConfigWithItemLocator.model_rebuild()
407
- MetricEvaluationTaskConfigurationF1ScorerConfigWithItemLocator.model_rebuild()
408
- MetricEvaluationTaskConfigurationRougeScorer1ConfigWithItemLocator.model_rebuild()
409
- MetricEvaluationTaskConfigurationRougeScorer2ConfigWithItemLocator.model_rebuild()
410
- MetricEvaluationTaskConfigurationRougeScorerLConfigWithItemLocator.model_rebuild()
411
- AutoEvaluationQuestionTask.model_rebuild()
412
- AutoEvaluationQuestionTaskConfiguration.model_rebuild()
413
- AutoEvaluationGuidedDecodingEvaluationTask.model_rebuild()
414
- AutoEvaluationGuidedDecodingEvaluationTaskConfiguration.model_rebuild()
415
- ContributorEvaluationQuestionTask.model_rebuild()
416
- ContributorEvaluationQuestionTaskConfiguration.model_rebuild()
417
- else:
418
- ChatCompletionEvaluationTask.update_forward_refs() # type: ignore
419
- ChatCompletionEvaluationTaskConfiguration.update_forward_refs() # type: ignore
420
- GenericInferenceEvaluationTask.update_forward_refs() # type: ignore
421
- GenericInferenceEvaluationTaskConfiguration.update_forward_refs() # type: ignore
422
- GenericInferenceEvaluationTaskConfigurationInferenceConfigurationLaunchInferenceConfiguration.update_forward_refs() # type: ignore
423
- ApplicationVariantV1EvaluationTask.update_forward_refs() # type: ignore
424
- ApplicationVariantV1EvaluationTaskConfiguration.update_forward_refs() # type: ignore
425
- ApplicationVariantV1EvaluationTaskConfigurationHistoryApplicationRequestResponsePairArray.update_forward_refs() # type: ignore
426
- ApplicationVariantV1EvaluationTaskConfigurationOverridesAgenticApplicationOverrides.update_forward_refs() # type: ignore
427
- ApplicationVariantV1EvaluationTaskConfigurationOverridesAgenticApplicationOverridesInitialState.update_forward_refs() # type: ignore
428
- ApplicationVariantV1EvaluationTaskConfigurationOverridesAgenticApplicationOverridesPartialTrace.update_forward_refs() # type: ignore
429
- MetricEvaluationTask.update_forward_refs() # type: ignore
430
- MetricEvaluationTaskConfigurationBleuScorerConfigWithItemLocator.update_forward_refs() # type: ignore
431
- MetricEvaluationTaskConfigurationMeteorScorerConfigWithItemLocator.update_forward_refs() # type: ignore
432
- MetricEvaluationTaskConfigurationCosineSimilarityScorerConfigWithItemLocator.update_forward_refs() # type: ignore
433
- MetricEvaluationTaskConfigurationF1ScorerConfigWithItemLocator.update_forward_refs() # type: ignore
434
- MetricEvaluationTaskConfigurationRougeScorer1ConfigWithItemLocator.update_forward_refs() # type: ignore
435
- MetricEvaluationTaskConfigurationRougeScorer2ConfigWithItemLocator.update_forward_refs() # type: ignore
436
- MetricEvaluationTaskConfigurationRougeScorerLConfigWithItemLocator.update_forward_refs() # type: ignore
437
- AutoEvaluationQuestionTask.update_forward_refs() # type: ignore
438
- AutoEvaluationQuestionTaskConfiguration.update_forward_refs() # type: ignore
439
- AutoEvaluationGuidedDecodingEvaluationTask.update_forward_refs() # type: ignore
440
- AutoEvaluationGuidedDecodingEvaluationTaskConfiguration.update_forward_refs() # type: ignore
441
- ContributorEvaluationQuestionTask.update_forward_refs() # type: ignore
442
- ContributorEvaluationQuestionTaskConfiguration.update_forward_refs() # type: ignore
@@ -2,9 +2,10 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import Dict, List, Union, Iterable
5
+ from typing import Dict, Union, Iterable
6
6
  from typing_extensions import Literal, Required, TypeAlias, TypedDict
7
7
 
8
+ from .._types import SequenceNotStr
8
9
  from .item_locator import ItemLocator
9
10
 
10
11
  __all__ = [
@@ -35,6 +36,8 @@ __all__ = [
35
36
  "AutoEvaluationQuestionTaskConfiguration",
36
37
  "AutoEvaluationGuidedDecodingEvaluationTask",
37
38
  "AutoEvaluationGuidedDecodingEvaluationTaskConfiguration",
39
+ "AutoEvaluationGuidedDecodingEvaluationTaskConfigurationAutoEvaluationStructuredOutputTaskRequestWithItemLocator",
40
+ "AutoEvaluationGuidedDecodingEvaluationTaskConfigurationAutoEvaluationGuidedDecodingTaskRequestWithItemLocator",
38
41
  "ContributorEvaluationQuestionTask",
39
42
  "ContributorEvaluationQuestionTaskConfiguration",
40
43
  ]
@@ -63,7 +66,7 @@ class ChatCompletionEvaluationTaskConfigurationTyped(TypedDict, total=False):
63
66
 
64
67
  metadata: Union[Dict[str, str], ItemLocator]
65
68
 
66
- modalities: Union[List[str], ItemLocator]
69
+ modalities: Union[SequenceNotStr[str], ItemLocator]
67
70
 
68
71
  n: Union[int, ItemLocator]
69
72
 
@@ -320,8 +323,27 @@ class AutoEvaluationQuestionTask(TypedDict, total=False):
320
323
  task_type: Literal["auto_evaluation.question"]
321
324
 
322
325
 
323
- class AutoEvaluationGuidedDecodingEvaluationTaskConfiguration(TypedDict, total=False):
324
- choices: Required[List[str]]
326
+ class AutoEvaluationGuidedDecodingEvaluationTaskConfigurationAutoEvaluationStructuredOutputTaskRequestWithItemLocator(
327
+ TypedDict, total=False
328
+ ):
329
+ model: Required[str]
330
+ """model specified as `model_vendor/model_name`"""
331
+
332
+ prompt: Required[str]
333
+
334
+ response_format: Required[Dict[str, object]]
335
+ """JSON schema used for structuring the model response"""
336
+
337
+ inference_args: Dict[str, object]
338
+ """Additional arguments to pass to the inference request"""
339
+
340
+ system_prompt: str
341
+
342
+
343
+ class AutoEvaluationGuidedDecodingEvaluationTaskConfigurationAutoEvaluationGuidedDecodingTaskRequestWithItemLocator(
344
+ TypedDict, total=False
345
+ ):
346
+ choices: Required[SequenceNotStr[str]]
325
347
  """Choices array cannot be empty"""
326
348
 
327
349
  model: Required[str]
@@ -335,6 +357,12 @@ class AutoEvaluationGuidedDecodingEvaluationTaskConfiguration(TypedDict, total=F
335
357
  system_prompt: str
336
358
 
337
359
 
360
+ AutoEvaluationGuidedDecodingEvaluationTaskConfiguration: TypeAlias = Union[
361
+ AutoEvaluationGuidedDecodingEvaluationTaskConfigurationAutoEvaluationStructuredOutputTaskRequestWithItemLocator,
362
+ AutoEvaluationGuidedDecodingEvaluationTaskConfigurationAutoEvaluationGuidedDecodingTaskRequestWithItemLocator,
363
+ ]
364
+
365
+
338
366
  class AutoEvaluationGuidedDecodingEvaluationTask(TypedDict, total=False):
339
367
  configuration: Required[AutoEvaluationGuidedDecodingEvaluationTaskConfiguration]
340
368
 
@@ -2,9 +2,10 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import List
6
5
  from typing_extensions import TypedDict
7
6
 
7
+ from .._types import SequenceNotStr
8
+
8
9
  __all__ = ["EvaluationUpdateParams"]
9
10
 
10
11
 
@@ -13,5 +14,5 @@ class EvaluationUpdateParams(TypedDict, total=False):
13
14
 
14
15
  name: str
15
16
 
16
- tags: List[str]
17
+ tags: SequenceNotStr[str]
17
18
  """The tags associated with the entity"""
@@ -6,6 +6,7 @@ from datetime import datetime
6
6
  from typing_extensions import Literal
7
7
 
8
8
  from .._models import BaseModel
9
+ from .shared.identity import Identity
9
10
 
10
11
  __all__ = ["File"]
11
12
 
@@ -15,7 +16,8 @@ class File(BaseModel):
15
16
 
16
17
  created_at: datetime
17
18
 
18
- created_by_user_id: str
19
+ created_by: Identity
20
+ """The identity that created the entity."""
19
21
 
20
22
  filename: str
21
23
 
@@ -131,6 +131,7 @@ class VendorConfigurationLlmEngineVendorConfiguration(BaseModel):
131
131
 
132
132
  storage: Optional[str] = None
133
133
 
134
+ __pydantic_extra__: Dict[str, object] = FieldInfo(init=False) # pyright: ignore[reportIncompatibleVariableOverride]
134
135
  if TYPE_CHECKING:
135
136
  # Stub to indicate that arbitrary properties are accepted.
136
137
  # To access properties that are not valid identifiers you can use `getattr`, e.g.
@@ -148,6 +149,8 @@ class InferenceModel(BaseModel):
148
149
 
149
150
  created_at: datetime
150
151
 
152
+ created_by_identity_type: Literal["user", "service_account"]
153
+
151
154
  created_by_user_id: str
152
155
 
153
156
  type: Literal["generic", "completion", "chat_completion"] = FieldInfo(alias="model_type")
@@ -171,6 +174,10 @@ class InferenceModel(BaseModel):
171
174
 
172
175
  status: Literal["failed", "ready", "deploying"]
173
176
 
177
+ availability: Optional[Literal["unknown", "available", "unavailable"]] = FieldInfo(
178
+ alias="model_availability", default=None
179
+ )
180
+
174
181
  metadata: Optional[Dict[str, object]] = FieldInfo(alias="model_metadata", default=None)
175
182
 
176
183
  object: Optional[Literal["model"]] = None
@@ -2,9 +2,11 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import Dict, List, Union
5
+ from typing import Dict, Union
6
6
  from typing_extensions import Literal, Required, TypeAlias, TypedDict
7
7
 
8
+ from .._types import SequenceNotStr
9
+
8
10
  __all__ = [
9
11
  "ModelCreateParams",
10
12
  "LaunchModelCreateRequest",
@@ -32,7 +34,7 @@ class LaunchModelCreateRequest(TypedDict, total=False):
32
34
 
33
35
 
34
36
  class LaunchModelCreateRequestVendorConfigurationModelImage(TypedDict, total=False):
35
- command: Required[List[str]]
37
+ command: Required[SequenceNotStr[str]]
36
38
 
37
39
  registry: Required[str]
38
40
 
@@ -52,7 +54,7 @@ class LaunchModelCreateRequestVendorConfigurationModelImage(TypedDict, total=Fal
52
54
 
53
55
  response_schema: Dict[str, object]
54
56
 
55
- streaming_command: List[str]
57
+ streaming_command: SequenceNotStr[str]
56
58
 
57
59
  streaming_predict_route: str
58
60
 
@@ -147,7 +149,7 @@ class LlmEngineModelCreateRequestVendorConfigurationTyped(TypedDict, total=False
147
149
 
148
150
  per_worker: int
149
151
 
150
- post_inference_hooks: List[str]
152
+ post_inference_hooks: SequenceNotStr[str]
151
153
 
152
154
  public_inference: bool
153
155
 
@@ -2,9 +2,11 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import Dict, List, Union
5
+ from typing import Dict, Union
6
6
  from typing_extensions import Literal, Required, TypeAlias, TypedDict
7
7
 
8
+ from .._types import SequenceNotStr
9
+
8
10
  __all__ = [
9
11
  "ModelUpdateParams",
10
12
  "DefaultModelPatchRequest",
@@ -31,7 +33,7 @@ class ModelConfigurationPatchRequest(TypedDict, total=False):
31
33
  class ModelConfigurationPatchRequestVendorConfigurationPartialLaunchVendorConfigurationModelImage(
32
34
  TypedDict, total=False
33
35
  ):
34
- command: List[str]
36
+ command: SequenceNotStr[str]
35
37
 
36
38
  env_vars: Dict[str, object]
37
39
 
@@ -49,7 +51,7 @@ class ModelConfigurationPatchRequestVendorConfigurationPartialLaunchVendorConfig
49
51
 
50
52
  response_schema: Dict[str, object]
51
53
 
52
- streaming_command: List[str]
54
+ streaming_command: SequenceNotStr[str]
53
55
 
54
56
  streaming_predict_route: str
55
57
 
@@ -133,7 +135,7 @@ class ModelConfigurationPatchRequestVendorConfigurationPartialLlmEngineVendorCon
133
135
 
134
136
  per_worker: int
135
137
 
136
- post_inference_hooks: List[str]
138
+ post_inference_hooks: SequenceNotStr[str]
137
139
 
138
140
  public_inference: bool
139
141
 
@@ -6,6 +6,7 @@ from typing_extensions import Literal, Annotated, TypeAlias
6
6
 
7
7
  from .._utils import PropertyInfo
8
8
  from .._models import BaseModel
9
+ from .shared.identity import Identity
9
10
 
10
11
  __all__ = [
11
12
  "Question",
@@ -36,8 +37,8 @@ class CategoricalQuestion(BaseModel):
36
37
  created_at: datetime
37
38
  """ISO-timestamp when the entity was created"""
38
39
 
39
- created_by_user_id: str
40
- """User who originally created the entity"""
40
+ created_by: Identity
41
+ """The identity that created the entity."""
41
42
 
42
43
  name: str
43
44
 
@@ -69,8 +70,8 @@ class RatingQuestion(BaseModel):
69
70
  created_at: datetime
70
71
  """ISO-timestamp when the entity was created"""
71
72
 
72
- created_by_user_id: str
73
- """User who originally created the entity"""
73
+ created_by: Identity
74
+ """The identity that created the entity."""
74
75
 
75
76
  name: str
76
77
 
@@ -97,8 +98,8 @@ class NumberQuestion(BaseModel):
97
98
  created_at: datetime
98
99
  """ISO-timestamp when the entity was created"""
99
100
 
100
- created_by_user_id: str
101
- """User who originally created the entity"""
101
+ created_by: Identity
102
+ """The identity that created the entity."""
102
103
 
103
104
  name: str
104
105
 
@@ -127,8 +128,8 @@ class FreeTextQuestion(BaseModel):
127
128
  created_at: datetime
128
129
  """ISO-timestamp when the entity was created"""
129
130
 
130
- created_by_user_id: str
131
- """User who originally created the entity"""
131
+ created_by: Identity
132
+ """The identity that created the entity."""
132
133
 
133
134
  name: str
134
135
 
@@ -156,8 +157,8 @@ class FormQuestion(BaseModel):
156
157
  created_at: datetime
157
158
  """ISO-timestamp when the entity was created"""
158
159
 
159
- created_by_user_id: str
160
- """User who originally created the entity"""
160
+ created_by: Identity
161
+ """The identity that created the entity."""
161
162
 
162
163
  name: str
163
164
 
@@ -2,9 +2,11 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import Dict, List, Union
5
+ from typing import Dict, Union
6
6
  from typing_extensions import Literal, Required, TypeAlias, TypedDict
7
7
 
8
+ from .._types import SequenceNotStr
9
+
8
10
  __all__ = [
9
11
  "QuestionCreateParams",
10
12
  "CategoricalQuestionRequest",
@@ -32,7 +34,7 @@ class CategoricalQuestionRequest(TypedDict, total=False):
32
34
 
33
35
 
34
36
  class CategoricalQuestionRequestConfiguration(TypedDict, total=False):
35
- choices: Required[List[str]]
37
+ choices: Required[SequenceNotStr[str]]
36
38
  """Categorical answer choices (must contain at least one entry)"""
37
39
 
38
40