vellum-ai 0.3.20__py3-none-any.whl → 0.3.22__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 (40) hide show
  1. vellum/__init__.py +6 -0
  2. vellum/client.py +4 -0
  3. vellum/core/client_wrapper.py +1 -1
  4. vellum/resources/test_suite_runs/client.py +14 -0
  5. vellum/terraform/__init__.py +26 -0
  6. vellum/terraform/_jsii/__init__.py +27 -0
  7. vellum/terraform/_jsii/vellum-ai_vellum@0.0.0.jsii.tgz +0 -0
  8. vellum/terraform/constraints.json +4 -0
  9. vellum/terraform/data_vellum_document_index/__init__.py +409 -0
  10. vellum/terraform/document_index/__init__.py +490 -0
  11. vellum/terraform/provider/__init__.py +237 -0
  12. vellum/terraform/py.typed +1 -0
  13. vellum/terraform/versions.json +3 -0
  14. vellum/types/__init__.py +6 -0
  15. vellum/types/fulfilled_prompt_execution_meta.py +2 -0
  16. vellum/types/fulfilled_workflow_node_result_event.py +1 -1
  17. vellum/types/ml_model_usage.py +33 -0
  18. vellum/types/named_test_case_chat_history_variable_value_request.py +5 -1
  19. vellum/types/named_test_case_error_variable_value_request.py +5 -1
  20. vellum/types/named_test_case_json_variable_value_request.py +5 -1
  21. vellum/types/named_test_case_number_variable_value_request.py +5 -1
  22. vellum/types/named_test_case_search_results_variable_value_request.py +5 -1
  23. vellum/types/named_test_case_string_variable_value_request.py +5 -1
  24. vellum/types/prompt_deployment_expand_meta_request_request.py +5 -0
  25. vellum/types/prompt_execution_meta.py +2 -0
  26. vellum/types/prompt_template_block.py +2 -0
  27. vellum/types/prompt_template_block_request.py +2 -0
  28. vellum/types/prompt_template_block_state.py +22 -0
  29. vellum/types/test_suite_run_execution_chat_history_output.py +6 -1
  30. vellum/types/test_suite_run_execution_error_output.py +6 -1
  31. vellum/types/test_suite_run_execution_json_output.py +6 -1
  32. vellum/types/test_suite_run_execution_metric_definition.py +31 -0
  33. vellum/types/test_suite_run_execution_metric_result.py +3 -0
  34. vellum/types/test_suite_run_execution_number_output.py +6 -1
  35. vellum/types/test_suite_run_execution_search_results_output.py +6 -1
  36. vellum/types/test_suite_run_execution_string_output.py +6 -1
  37. {vellum_ai-0.3.20.dist-info → vellum_ai-0.3.22.dist-info}/METADATA +1 -1
  38. {vellum_ai-0.3.20.dist-info → vellum_ai-0.3.22.dist-info}/RECORD +40 -28
  39. {vellum_ai-0.3.20.dist-info → vellum_ai-0.3.22.dist-info}/LICENSE +0 -0
  40. {vellum_ai-0.3.20.dist-info → vellum_ai-0.3.22.dist-info}/WHEEL +0 -0
vellum/__init__.py CHANGED
@@ -148,6 +148,7 @@ from .types import (
148
148
  MetadataFilterConfigRequest,
149
149
  MetadataFilterRuleCombinator,
150
150
  MetadataFilterRuleRequest,
151
+ MlModelUsage,
151
152
  ModelVersionBuildConfig,
152
153
  ModelVersionExecConfig,
153
154
  ModelVersionExecConfigParameters,
@@ -232,6 +233,7 @@ from .types import (
232
233
  PromptTemplateBlockProperties,
233
234
  PromptTemplateBlockPropertiesRequest,
234
235
  PromptTemplateBlockRequest,
236
+ PromptTemplateBlockState,
235
237
  ProviderEnum,
236
238
  RawPromptExecutionOverridesRequest,
237
239
  RegisterPromptErrorResponse,
@@ -355,6 +357,7 @@ from .types import (
355
357
  TestSuiteRunExecutionChatHistoryOutput,
356
358
  TestSuiteRunExecutionErrorOutput,
357
359
  TestSuiteRunExecutionJsonOutput,
360
+ TestSuiteRunExecutionMetricDefinition,
358
361
  TestSuiteRunExecutionMetricResult,
359
362
  TestSuiteRunExecutionNumberOutput,
360
363
  TestSuiteRunExecutionOutput,
@@ -641,6 +644,7 @@ __all__ = [
641
644
  "MetadataFilterConfigRequest",
642
645
  "MetadataFilterRuleCombinator",
643
646
  "MetadataFilterRuleRequest",
647
+ "MlModelUsage",
644
648
  "ModelVersionBuildConfig",
645
649
  "ModelVersionExecConfig",
646
650
  "ModelVersionExecConfigParameters",
@@ -726,6 +730,7 @@ __all__ = [
726
730
  "PromptTemplateBlockProperties",
727
731
  "PromptTemplateBlockPropertiesRequest",
728
732
  "PromptTemplateBlockRequest",
733
+ "PromptTemplateBlockState",
729
734
  "ProviderEnum",
730
735
  "RawPromptExecutionOverridesRequest",
731
736
  "RegisterPromptErrorResponse",
@@ -849,6 +854,7 @@ __all__ = [
849
854
  "TestSuiteRunExecutionChatHistoryOutput",
850
855
  "TestSuiteRunExecutionErrorOutput",
851
856
  "TestSuiteRunExecutionJsonOutput",
857
+ "TestSuiteRunExecutionMetricDefinition",
852
858
  "TestSuiteRunExecutionMetricResult",
853
859
  "TestSuiteRunExecutionNumberOutput",
854
860
  "TestSuiteRunExecutionOutput",
vellum/client.py CHANGED
@@ -167,6 +167,7 @@ class Vellum:
167
167
  deployment_release_tag=True,
168
168
  prompt_version_id=True,
169
169
  finish_reason=True,
170
+ usage=True,
170
171
  ),
171
172
  raw_overrides=RawPromptExecutionOverridesRequest(
172
173
  body={"string": {"key": "value"}},
@@ -301,6 +302,7 @@ class Vellum:
301
302
  deployment_release_tag=True,
302
303
  prompt_version_id=True,
303
304
  finish_reason=True,
305
+ usage=True,
304
306
  ),
305
307
  raw_overrides=RawPromptExecutionOverridesRequest(
306
308
  body={"string": {"key": "value"}},
@@ -1123,6 +1125,7 @@ class AsyncVellum:
1123
1125
  deployment_release_tag=True,
1124
1126
  prompt_version_id=True,
1125
1127
  finish_reason=True,
1128
+ usage=True,
1126
1129
  ),
1127
1130
  raw_overrides=RawPromptExecutionOverridesRequest(
1128
1131
  body={"string": {"key": "value"}},
@@ -1257,6 +1260,7 @@ class AsyncVellum:
1257
1260
  deployment_release_tag=True,
1258
1261
  prompt_version_id=True,
1259
1262
  finish_reason=True,
1263
+ usage=True,
1260
1264
  ),
1261
1265
  raw_overrides=RawPromptExecutionOverridesRequest(
1262
1266
  body={"string": {"key": "value"}},
@@ -18,7 +18,7 @@ class BaseClientWrapper:
18
18
  headers: typing.Dict[str, str] = {
19
19
  "X-Fern-Language": "Python",
20
20
  "X-Fern-SDK-Name": "vellum-ai",
21
- "X-Fern-SDK-Version": "0.3.20",
21
+ "X-Fern-SDK-Version": "0.3.22",
22
22
  }
23
23
  headers["X_API_KEY"] = self.api_key
24
24
  return headers
@@ -149,6 +149,7 @@ class TestSuiteRunsClient:
149
149
  self,
150
150
  id: str,
151
151
  *,
152
+ expand: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
152
153
  limit: typing.Optional[int] = None,
153
154
  offset: typing.Optional[int] = None,
154
155
  request_options: typing.Optional[RequestOptions] = None,
@@ -157,6 +158,11 @@ class TestSuiteRunsClient:
157
158
  Parameters:
158
159
  - id: str. A UUID string identifying this test suite run.
159
160
 
161
+ - expand: typing.Optional[typing.Union[str, typing.Sequence[str]]]. The response fields to expand for more information.
162
+
163
+ - 'results.metric_results.metric_label' expands the metric label for each metric result.
164
+ - 'results.metric_results.metric_definition' expands the metric definition for each metric result.
165
+ - 'results.metric_results.metric_definition.name' expands the metric definition name for each metric result.
160
166
  - limit: typing.Optional[int]. Number of results to return per page.
161
167
 
162
168
  - offset: typing.Optional[int]. The initial index from which to return the results.
@@ -181,6 +187,7 @@ class TestSuiteRunsClient:
181
187
  params=jsonable_encoder(
182
188
  remove_none_from_dict(
183
189
  {
190
+ "expand": expand,
184
191
  "limit": limit,
185
192
  "offset": offset,
186
193
  **(
@@ -341,6 +348,7 @@ class AsyncTestSuiteRunsClient:
341
348
  self,
342
349
  id: str,
343
350
  *,
351
+ expand: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
344
352
  limit: typing.Optional[int] = None,
345
353
  offset: typing.Optional[int] = None,
346
354
  request_options: typing.Optional[RequestOptions] = None,
@@ -349,6 +357,11 @@ class AsyncTestSuiteRunsClient:
349
357
  Parameters:
350
358
  - id: str. A UUID string identifying this test suite run.
351
359
 
360
+ - expand: typing.Optional[typing.Union[str, typing.Sequence[str]]]. The response fields to expand for more information.
361
+
362
+ - 'results.metric_results.metric_label' expands the metric label for each metric result.
363
+ - 'results.metric_results.metric_definition' expands the metric definition for each metric result.
364
+ - 'results.metric_results.metric_definition.name' expands the metric definition name for each metric result.
352
365
  - limit: typing.Optional[int]. Number of results to return per page.
353
366
 
354
367
  - offset: typing.Optional[int]. The initial index from which to return the results.
@@ -373,6 +386,7 @@ class AsyncTestSuiteRunsClient:
373
386
  params=jsonable_encoder(
374
387
  remove_none_from_dict(
375
388
  {
389
+ "expand": expand,
376
390
  "limit": limit,
377
391
  "offset": offset,
378
392
  **(
@@ -0,0 +1,26 @@
1
+ from pkgutil import extend_path
2
+ __path__ = extend_path(__path__, __name__)
3
+
4
+ import abc
5
+ import builtins
6
+ import datetime
7
+ import enum
8
+ import typing
9
+
10
+ import jsii
11
+ import publication
12
+ import typing_extensions
13
+
14
+ from typeguard import check_type
15
+
16
+ from ._jsii import *
17
+
18
+ __all__ = [
19
+ "data_vellum_document_index",
20
+ "document_index",
21
+ "provider",
22
+ ]
23
+
24
+ publication.publish()
25
+
26
+ # Loading modules to ensure their types are registered with the jsii runtime library
@@ -0,0 +1,27 @@
1
+ from pkgutil import extend_path
2
+ __path__ = extend_path(__path__, __name__)
3
+
4
+ import abc
5
+ import builtins
6
+ import datetime
7
+ import enum
8
+ import typing
9
+
10
+ import jsii
11
+ import publication
12
+ import typing_extensions
13
+
14
+ from typeguard import check_type
15
+
16
+ import cdktf._jsii
17
+ import constructs._jsii
18
+
19
+ __jsii_assembly__ = jsii.JSIIAssembly.load(
20
+ "vellum-ai_vellum", "0.0.0", __name__[0:-6], "vellum-ai_vellum@0.0.0.jsii.tgz"
21
+ )
22
+
23
+ __all__ = [
24
+ "__jsii_assembly__",
25
+ ]
26
+
27
+ publication.publish()
@@ -0,0 +1,4 @@
1
+ {
2
+ "cdktf": "0.20.6",
3
+ "providers": {}
4
+ }
@@ -0,0 +1,409 @@
1
+ '''
2
+ # `data_vellum_document_index`
3
+
4
+ Refer to the Terraform Registry for docs: [`data_vellum_document_index`](https://registry.terraform.io/providers/vellum-ai/vellum/0.0.2/docs/data-sources/document_index).
5
+ '''
6
+ from pkgutil import extend_path
7
+ __path__ = extend_path(__path__, __name__)
8
+
9
+ import abc
10
+ import builtins
11
+ import datetime
12
+ import enum
13
+ import typing
14
+
15
+ import jsii
16
+ import publication
17
+ import typing_extensions
18
+
19
+ from typeguard import check_type
20
+
21
+ from .._jsii import *
22
+
23
+ import cdktf as _cdktf_9a9027ec
24
+ import constructs as _constructs_77d1e7e8
25
+
26
+
27
+ class DataVellumDocumentIndex(
28
+ _cdktf_9a9027ec.TerraformDataSource,
29
+ metaclass=jsii.JSIIMeta,
30
+ jsii_type="vellum-ai_vellum.dataVellumDocumentIndex.DataVellumDocumentIndex",
31
+ ):
32
+ '''Represents a {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.2/docs/data-sources/document_index vellum_document_index}.'''
33
+
34
+ def __init__(
35
+ self,
36
+ scope: _constructs_77d1e7e8.Construct,
37
+ id_: builtins.str,
38
+ *,
39
+ id: typing.Optional[builtins.str] = None,
40
+ name: typing.Optional[builtins.str] = None,
41
+ connection: typing.Optional[typing.Union[typing.Union[_cdktf_9a9027ec.SSHProvisionerConnection, typing.Dict[builtins.str, typing.Any]], typing.Union[_cdktf_9a9027ec.WinrmProvisionerConnection, typing.Dict[builtins.str, typing.Any]]]] = None,
42
+ count: typing.Optional[typing.Union[jsii.Number, _cdktf_9a9027ec.TerraformCount]] = None,
43
+ depends_on: typing.Optional[typing.Sequence[_cdktf_9a9027ec.ITerraformDependable]] = None,
44
+ for_each: typing.Optional[_cdktf_9a9027ec.ITerraformIterator] = None,
45
+ lifecycle: typing.Optional[typing.Union[_cdktf_9a9027ec.TerraformResourceLifecycle, typing.Dict[builtins.str, typing.Any]]] = None,
46
+ provider: typing.Optional[_cdktf_9a9027ec.TerraformProvider] = None,
47
+ provisioners: typing.Optional[typing.Sequence[typing.Union[typing.Union[_cdktf_9a9027ec.FileProvisioner, typing.Dict[builtins.str, typing.Any]], typing.Union[_cdktf_9a9027ec.LocalExecProvisioner, typing.Dict[builtins.str, typing.Any]], typing.Union[_cdktf_9a9027ec.RemoteExecProvisioner, typing.Dict[builtins.str, typing.Any]]]]] = None,
48
+ ) -> None:
49
+ '''Create a new {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.2/docs/data-sources/document_index vellum_document_index} Data Source.
50
+
51
+ :param scope: The scope in which to define this construct.
52
+ :param id_: The scoped construct ID. Must be unique amongst siblings in the same scope
53
+ :param id: The Document Index's ID. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.2/docs/data-sources/document_index#id DataVellumDocumentIndex#id} Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
54
+ :param name: A name that uniquely identifies this index within its workspace. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.2/docs/data-sources/document_index#name DataVellumDocumentIndex#name}
55
+ :param connection:
56
+ :param count:
57
+ :param depends_on:
58
+ :param for_each:
59
+ :param lifecycle:
60
+ :param provider:
61
+ :param provisioners:
62
+ '''
63
+ if __debug__:
64
+ type_hints = typing.get_type_hints(_typecheckingstub__0bc5b33c1995e6b6e696de461f28c651c4c56ac6f532ab44c49a5bf361c75c65)
65
+ check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
66
+ check_type(argname="argument id_", value=id_, expected_type=type_hints["id_"])
67
+ config = DataVellumDocumentIndexConfig(
68
+ id=id,
69
+ name=name,
70
+ connection=connection,
71
+ count=count,
72
+ depends_on=depends_on,
73
+ for_each=for_each,
74
+ lifecycle=lifecycle,
75
+ provider=provider,
76
+ provisioners=provisioners,
77
+ )
78
+
79
+ jsii.create(self.__class__, self, [scope, id_, config])
80
+
81
+ @jsii.member(jsii_name="generateConfigForImport")
82
+ @builtins.classmethod
83
+ def generate_config_for_import(
84
+ cls,
85
+ scope: _constructs_77d1e7e8.Construct,
86
+ import_to_id: builtins.str,
87
+ import_from_id: builtins.str,
88
+ provider: typing.Optional[_cdktf_9a9027ec.TerraformProvider] = None,
89
+ ) -> _cdktf_9a9027ec.ImportableResource:
90
+ '''Generates CDKTF code for importing a DataVellumDocumentIndex resource upon running "cdktf plan ".
91
+
92
+ :param scope: The scope in which to define this construct.
93
+ :param import_to_id: The construct id used in the generated config for the DataVellumDocumentIndex to import.
94
+ :param import_from_id: The id of the existing DataVellumDocumentIndex that should be imported. Refer to the {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.2/docs/data-sources/document_index#import import section} in the documentation of this resource for the id to use
95
+ :param provider: ? Optional instance of the provider where the DataVellumDocumentIndex to import is found.
96
+ '''
97
+ if __debug__:
98
+ type_hints = typing.get_type_hints(_typecheckingstub__6188c2844375085b6bf86c3fbadee75ee53a0b9d851bd1338854014696ecf57b)
99
+ check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
100
+ check_type(argname="argument import_to_id", value=import_to_id, expected_type=type_hints["import_to_id"])
101
+ check_type(argname="argument import_from_id", value=import_from_id, expected_type=type_hints["import_from_id"])
102
+ check_type(argname="argument provider", value=provider, expected_type=type_hints["provider"])
103
+ return typing.cast(_cdktf_9a9027ec.ImportableResource, jsii.sinvoke(cls, "generateConfigForImport", [scope, import_to_id, import_from_id, provider]))
104
+
105
+ @jsii.member(jsii_name="resetId")
106
+ def reset_id(self) -> None:
107
+ return typing.cast(None, jsii.invoke(self, "resetId", []))
108
+
109
+ @jsii.member(jsii_name="resetName")
110
+ def reset_name(self) -> None:
111
+ return typing.cast(None, jsii.invoke(self, "resetName", []))
112
+
113
+ @jsii.member(jsii_name="synthesizeAttributes")
114
+ def _synthesize_attributes(self) -> typing.Mapping[builtins.str, typing.Any]:
115
+ return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "synthesizeAttributes", []))
116
+
117
+ @jsii.member(jsii_name="synthesizeHclAttributes")
118
+ def _synthesize_hcl_attributes(self) -> typing.Mapping[builtins.str, typing.Any]:
119
+ return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "synthesizeHclAttributes", []))
120
+
121
+ @jsii.python.classproperty
122
+ @jsii.member(jsii_name="tfResourceType")
123
+ def TF_RESOURCE_TYPE(cls) -> builtins.str:
124
+ return typing.cast(builtins.str, jsii.sget(cls, "tfResourceType"))
125
+
126
+ @builtins.property
127
+ @jsii.member(jsii_name="created")
128
+ def created(self) -> builtins.str:
129
+ return typing.cast(builtins.str, jsii.get(self, "created"))
130
+
131
+ @builtins.property
132
+ @jsii.member(jsii_name="environment")
133
+ def environment(self) -> builtins.str:
134
+ return typing.cast(builtins.str, jsii.get(self, "environment"))
135
+
136
+ @builtins.property
137
+ @jsii.member(jsii_name="label")
138
+ def label(self) -> builtins.str:
139
+ return typing.cast(builtins.str, jsii.get(self, "label"))
140
+
141
+ @builtins.property
142
+ @jsii.member(jsii_name="status")
143
+ def status(self) -> builtins.str:
144
+ return typing.cast(builtins.str, jsii.get(self, "status"))
145
+
146
+ @builtins.property
147
+ @jsii.member(jsii_name="idInput")
148
+ def id_input(self) -> typing.Optional[builtins.str]:
149
+ return typing.cast(typing.Optional[builtins.str], jsii.get(self, "idInput"))
150
+
151
+ @builtins.property
152
+ @jsii.member(jsii_name="nameInput")
153
+ def name_input(self) -> typing.Optional[builtins.str]:
154
+ return typing.cast(typing.Optional[builtins.str], jsii.get(self, "nameInput"))
155
+
156
+ @builtins.property
157
+ @jsii.member(jsii_name="id")
158
+ def id(self) -> builtins.str:
159
+ return typing.cast(builtins.str, jsii.get(self, "id"))
160
+
161
+ @id.setter
162
+ def id(self, value: builtins.str) -> None:
163
+ if __debug__:
164
+ type_hints = typing.get_type_hints(_typecheckingstub__00069088befbd70729d087d2fac43a23a7c164be2e83b3504a2b40460cd8fb40)
165
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
166
+ jsii.set(self, "id", value)
167
+
168
+ @builtins.property
169
+ @jsii.member(jsii_name="name")
170
+ def name(self) -> builtins.str:
171
+ return typing.cast(builtins.str, jsii.get(self, "name"))
172
+
173
+ @name.setter
174
+ def name(self, value: builtins.str) -> None:
175
+ if __debug__:
176
+ type_hints = typing.get_type_hints(_typecheckingstub__c16ca1e6b115f5f1e1c642cae6613187dbe77b1c47d4c4c5a11ffb7488327d29)
177
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
178
+ jsii.set(self, "name", value)
179
+
180
+
181
+ @jsii.data_type(
182
+ jsii_type="vellum-ai_vellum.dataVellumDocumentIndex.DataVellumDocumentIndexConfig",
183
+ jsii_struct_bases=[_cdktf_9a9027ec.TerraformMetaArguments],
184
+ name_mapping={
185
+ "connection": "connection",
186
+ "count": "count",
187
+ "depends_on": "dependsOn",
188
+ "for_each": "forEach",
189
+ "lifecycle": "lifecycle",
190
+ "provider": "provider",
191
+ "provisioners": "provisioners",
192
+ "id": "id",
193
+ "name": "name",
194
+ },
195
+ )
196
+ class DataVellumDocumentIndexConfig(_cdktf_9a9027ec.TerraformMetaArguments):
197
+ def __init__(
198
+ self,
199
+ *,
200
+ connection: typing.Optional[typing.Union[typing.Union[_cdktf_9a9027ec.SSHProvisionerConnection, typing.Dict[builtins.str, typing.Any]], typing.Union[_cdktf_9a9027ec.WinrmProvisionerConnection, typing.Dict[builtins.str, typing.Any]]]] = None,
201
+ count: typing.Optional[typing.Union[jsii.Number, _cdktf_9a9027ec.TerraformCount]] = None,
202
+ depends_on: typing.Optional[typing.Sequence[_cdktf_9a9027ec.ITerraformDependable]] = None,
203
+ for_each: typing.Optional[_cdktf_9a9027ec.ITerraformIterator] = None,
204
+ lifecycle: typing.Optional[typing.Union[_cdktf_9a9027ec.TerraformResourceLifecycle, typing.Dict[builtins.str, typing.Any]]] = None,
205
+ provider: typing.Optional[_cdktf_9a9027ec.TerraformProvider] = None,
206
+ provisioners: typing.Optional[typing.Sequence[typing.Union[typing.Union[_cdktf_9a9027ec.FileProvisioner, typing.Dict[builtins.str, typing.Any]], typing.Union[_cdktf_9a9027ec.LocalExecProvisioner, typing.Dict[builtins.str, typing.Any]], typing.Union[_cdktf_9a9027ec.RemoteExecProvisioner, typing.Dict[builtins.str, typing.Any]]]]] = None,
207
+ id: typing.Optional[builtins.str] = None,
208
+ name: typing.Optional[builtins.str] = None,
209
+ ) -> None:
210
+ '''
211
+ :param connection:
212
+ :param count:
213
+ :param depends_on:
214
+ :param for_each:
215
+ :param lifecycle:
216
+ :param provider:
217
+ :param provisioners:
218
+ :param id: The Document Index's ID. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.2/docs/data-sources/document_index#id DataVellumDocumentIndex#id} Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
219
+ :param name: A name that uniquely identifies this index within its workspace. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.2/docs/data-sources/document_index#name DataVellumDocumentIndex#name}
220
+ '''
221
+ if isinstance(lifecycle, dict):
222
+ lifecycle = _cdktf_9a9027ec.TerraformResourceLifecycle(**lifecycle)
223
+ if __debug__:
224
+ type_hints = typing.get_type_hints(_typecheckingstub__21fcd2eefb7148719636663aa2c43b63b1d2114acd2edc65d539f913e8fa438b)
225
+ check_type(argname="argument connection", value=connection, expected_type=type_hints["connection"])
226
+ check_type(argname="argument count", value=count, expected_type=type_hints["count"])
227
+ check_type(argname="argument depends_on", value=depends_on, expected_type=type_hints["depends_on"])
228
+ check_type(argname="argument for_each", value=for_each, expected_type=type_hints["for_each"])
229
+ check_type(argname="argument lifecycle", value=lifecycle, expected_type=type_hints["lifecycle"])
230
+ check_type(argname="argument provider", value=provider, expected_type=type_hints["provider"])
231
+ check_type(argname="argument provisioners", value=provisioners, expected_type=type_hints["provisioners"])
232
+ check_type(argname="argument id", value=id, expected_type=type_hints["id"])
233
+ check_type(argname="argument name", value=name, expected_type=type_hints["name"])
234
+ self._values: typing.Dict[builtins.str, typing.Any] = {}
235
+ if connection is not None:
236
+ self._values["connection"] = connection
237
+ if count is not None:
238
+ self._values["count"] = count
239
+ if depends_on is not None:
240
+ self._values["depends_on"] = depends_on
241
+ if for_each is not None:
242
+ self._values["for_each"] = for_each
243
+ if lifecycle is not None:
244
+ self._values["lifecycle"] = lifecycle
245
+ if provider is not None:
246
+ self._values["provider"] = provider
247
+ if provisioners is not None:
248
+ self._values["provisioners"] = provisioners
249
+ if id is not None:
250
+ self._values["id"] = id
251
+ if name is not None:
252
+ self._values["name"] = name
253
+
254
+ @builtins.property
255
+ def connection(
256
+ self,
257
+ ) -> typing.Optional[typing.Union[_cdktf_9a9027ec.SSHProvisionerConnection, _cdktf_9a9027ec.WinrmProvisionerConnection]]:
258
+ '''
259
+ :stability: experimental
260
+ '''
261
+ result = self._values.get("connection")
262
+ return typing.cast(typing.Optional[typing.Union[_cdktf_9a9027ec.SSHProvisionerConnection, _cdktf_9a9027ec.WinrmProvisionerConnection]], result)
263
+
264
+ @builtins.property
265
+ def count(
266
+ self,
267
+ ) -> typing.Optional[typing.Union[jsii.Number, _cdktf_9a9027ec.TerraformCount]]:
268
+ '''
269
+ :stability: experimental
270
+ '''
271
+ result = self._values.get("count")
272
+ return typing.cast(typing.Optional[typing.Union[jsii.Number, _cdktf_9a9027ec.TerraformCount]], result)
273
+
274
+ @builtins.property
275
+ def depends_on(
276
+ self,
277
+ ) -> typing.Optional[typing.List[_cdktf_9a9027ec.ITerraformDependable]]:
278
+ '''
279
+ :stability: experimental
280
+ '''
281
+ result = self._values.get("depends_on")
282
+ return typing.cast(typing.Optional[typing.List[_cdktf_9a9027ec.ITerraformDependable]], result)
283
+
284
+ @builtins.property
285
+ def for_each(self) -> typing.Optional[_cdktf_9a9027ec.ITerraformIterator]:
286
+ '''
287
+ :stability: experimental
288
+ '''
289
+ result = self._values.get("for_each")
290
+ return typing.cast(typing.Optional[_cdktf_9a9027ec.ITerraformIterator], result)
291
+
292
+ @builtins.property
293
+ def lifecycle(self) -> typing.Optional[_cdktf_9a9027ec.TerraformResourceLifecycle]:
294
+ '''
295
+ :stability: experimental
296
+ '''
297
+ result = self._values.get("lifecycle")
298
+ return typing.cast(typing.Optional[_cdktf_9a9027ec.TerraformResourceLifecycle], result)
299
+
300
+ @builtins.property
301
+ def provider(self) -> typing.Optional[_cdktf_9a9027ec.TerraformProvider]:
302
+ '''
303
+ :stability: experimental
304
+ '''
305
+ result = self._values.get("provider")
306
+ return typing.cast(typing.Optional[_cdktf_9a9027ec.TerraformProvider], result)
307
+
308
+ @builtins.property
309
+ def provisioners(
310
+ self,
311
+ ) -> typing.Optional[typing.List[typing.Union[_cdktf_9a9027ec.FileProvisioner, _cdktf_9a9027ec.LocalExecProvisioner, _cdktf_9a9027ec.RemoteExecProvisioner]]]:
312
+ '''
313
+ :stability: experimental
314
+ '''
315
+ result = self._values.get("provisioners")
316
+ return typing.cast(typing.Optional[typing.List[typing.Union[_cdktf_9a9027ec.FileProvisioner, _cdktf_9a9027ec.LocalExecProvisioner, _cdktf_9a9027ec.RemoteExecProvisioner]]], result)
317
+
318
+ @builtins.property
319
+ def id(self) -> typing.Optional[builtins.str]:
320
+ '''The Document Index's ID.
321
+
322
+ Docs at Terraform Registry: {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.2/docs/data-sources/document_index#id DataVellumDocumentIndex#id}
323
+
324
+ Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
325
+ If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
326
+ '''
327
+ result = self._values.get("id")
328
+ return typing.cast(typing.Optional[builtins.str], result)
329
+
330
+ @builtins.property
331
+ def name(self) -> typing.Optional[builtins.str]:
332
+ '''A name that uniquely identifies this index within its workspace.
333
+
334
+ Docs at Terraform Registry: {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.2/docs/data-sources/document_index#name DataVellumDocumentIndex#name}
335
+ '''
336
+ result = self._values.get("name")
337
+ return typing.cast(typing.Optional[builtins.str], result)
338
+
339
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
340
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
341
+
342
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
343
+ return not (rhs == self)
344
+
345
+ def __repr__(self) -> str:
346
+ return "DataVellumDocumentIndexConfig(%s)" % ", ".join(
347
+ k + "=" + repr(v) for k, v in self._values.items()
348
+ )
349
+
350
+
351
+ __all__ = [
352
+ "DataVellumDocumentIndex",
353
+ "DataVellumDocumentIndexConfig",
354
+ ]
355
+
356
+ publication.publish()
357
+
358
+ def _typecheckingstub__0bc5b33c1995e6b6e696de461f28c651c4c56ac6f532ab44c49a5bf361c75c65(
359
+ scope: _constructs_77d1e7e8.Construct,
360
+ id_: builtins.str,
361
+ *,
362
+ id: typing.Optional[builtins.str] = None,
363
+ name: typing.Optional[builtins.str] = None,
364
+ connection: typing.Optional[typing.Union[typing.Union[_cdktf_9a9027ec.SSHProvisionerConnection, typing.Dict[builtins.str, typing.Any]], typing.Union[_cdktf_9a9027ec.WinrmProvisionerConnection, typing.Dict[builtins.str, typing.Any]]]] = None,
365
+ count: typing.Optional[typing.Union[jsii.Number, _cdktf_9a9027ec.TerraformCount]] = None,
366
+ depends_on: typing.Optional[typing.Sequence[_cdktf_9a9027ec.ITerraformDependable]] = None,
367
+ for_each: typing.Optional[_cdktf_9a9027ec.ITerraformIterator] = None,
368
+ lifecycle: typing.Optional[typing.Union[_cdktf_9a9027ec.TerraformResourceLifecycle, typing.Dict[builtins.str, typing.Any]]] = None,
369
+ provider: typing.Optional[_cdktf_9a9027ec.TerraformProvider] = None,
370
+ provisioners: typing.Optional[typing.Sequence[typing.Union[typing.Union[_cdktf_9a9027ec.FileProvisioner, typing.Dict[builtins.str, typing.Any]], typing.Union[_cdktf_9a9027ec.LocalExecProvisioner, typing.Dict[builtins.str, typing.Any]], typing.Union[_cdktf_9a9027ec.RemoteExecProvisioner, typing.Dict[builtins.str, typing.Any]]]]] = None,
371
+ ) -> None:
372
+ """Type checking stubs"""
373
+ pass
374
+
375
+ def _typecheckingstub__6188c2844375085b6bf86c3fbadee75ee53a0b9d851bd1338854014696ecf57b(
376
+ scope: _constructs_77d1e7e8.Construct,
377
+ import_to_id: builtins.str,
378
+ import_from_id: builtins.str,
379
+ provider: typing.Optional[_cdktf_9a9027ec.TerraformProvider] = None,
380
+ ) -> None:
381
+ """Type checking stubs"""
382
+ pass
383
+
384
+ def _typecheckingstub__00069088befbd70729d087d2fac43a23a7c164be2e83b3504a2b40460cd8fb40(
385
+ value: builtins.str,
386
+ ) -> None:
387
+ """Type checking stubs"""
388
+ pass
389
+
390
+ def _typecheckingstub__c16ca1e6b115f5f1e1c642cae6613187dbe77b1c47d4c4c5a11ffb7488327d29(
391
+ value: builtins.str,
392
+ ) -> None:
393
+ """Type checking stubs"""
394
+ pass
395
+
396
+ def _typecheckingstub__21fcd2eefb7148719636663aa2c43b63b1d2114acd2edc65d539f913e8fa438b(
397
+ *,
398
+ connection: typing.Optional[typing.Union[typing.Union[_cdktf_9a9027ec.SSHProvisionerConnection, typing.Dict[builtins.str, typing.Any]], typing.Union[_cdktf_9a9027ec.WinrmProvisionerConnection, typing.Dict[builtins.str, typing.Any]]]] = None,
399
+ count: typing.Optional[typing.Union[jsii.Number, _cdktf_9a9027ec.TerraformCount]] = None,
400
+ depends_on: typing.Optional[typing.Sequence[_cdktf_9a9027ec.ITerraformDependable]] = None,
401
+ for_each: typing.Optional[_cdktf_9a9027ec.ITerraformIterator] = None,
402
+ lifecycle: typing.Optional[typing.Union[_cdktf_9a9027ec.TerraformResourceLifecycle, typing.Dict[builtins.str, typing.Any]]] = None,
403
+ provider: typing.Optional[_cdktf_9a9027ec.TerraformProvider] = None,
404
+ provisioners: typing.Optional[typing.Sequence[typing.Union[typing.Union[_cdktf_9a9027ec.FileProvisioner, typing.Dict[builtins.str, typing.Any]], typing.Union[_cdktf_9a9027ec.LocalExecProvisioner, typing.Dict[builtins.str, typing.Any]], typing.Union[_cdktf_9a9027ec.RemoteExecProvisioner, typing.Dict[builtins.str, typing.Any]]]]] = None,
405
+ id: typing.Optional[builtins.str] = None,
406
+ name: typing.Optional[builtins.str] = None,
407
+ ) -> None:
408
+ """Type checking stubs"""
409
+ pass