beamlit 0.0.24rc20__py3-none-any.whl → 0.0.24rc21__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (170) hide show
  1. beamlit/agents/chat.py +37 -11
  2. beamlit/agents/decorator.py +97 -65
  3. beamlit/api/agents/create_agent.py +9 -14
  4. beamlit/api/agents/delete_agent.py +22 -1
  5. beamlit/api/agents/delete_agent_history.py +2 -6
  6. beamlit/api/agents/get_agent.py +22 -1
  7. beamlit/api/agents/get_agent_environment_logs.py +11 -11
  8. beamlit/api/agents/get_agent_history.py +2 -6
  9. beamlit/api/agents/get_agent_metrics.py +22 -1
  10. beamlit/api/agents/list_agent_history.py +11 -11
  11. beamlit/api/agents/list_agents.py +36 -4
  12. beamlit/api/agents/put_agent_history.py +2 -6
  13. beamlit/api/agents/update_agent.py +9 -14
  14. beamlit/api/functions/create_function.py +9 -14
  15. beamlit/api/functions/delete_function.py +22 -1
  16. beamlit/api/functions/get_function.py +22 -1
  17. beamlit/api/functions/get_function_environment_logs.py +11 -11
  18. beamlit/api/functions/get_function_metrics.py +22 -1
  19. beamlit/api/functions/list_functions.py +36 -4
  20. beamlit/api/functions/update_function.py +9 -14
  21. beamlit/api/history/get_agents_history.py +12 -12
  22. beamlit/api/history/list_agents_history.py +12 -12
  23. beamlit/api/integrations/get_integration_connection.py +16 -12
  24. beamlit/api/integrations/get_integration_connection_model.py +8 -1
  25. beamlit/api/integrations/get_integration_model.py +8 -1
  26. beamlit/api/locations/list_locations.py +12 -12
  27. beamlit/api/models/create_model.py +13 -14
  28. beamlit/api/models/delete_model.py +22 -1
  29. beamlit/api/models/get_model.py +22 -1
  30. beamlit/api/models/get_model_environment_logs.py +11 -11
  31. beamlit/api/models/get_model_metrics.py +38 -13
  32. beamlit/api/models/list_models.py +36 -4
  33. beamlit/api/models/update_model.py +13 -14
  34. beamlit/api/privateclusters/__init__.py +0 -0
  35. beamlit/api/{agents/get_agent_deployment_metrics.py → privateclusters/create_private_cluster.py} +28 -55
  36. beamlit/api/{functions/list_function_deployments.py → privateclusters/delete_private_cluster.py} +38 -37
  37. beamlit/api/{agents/get_agent_deployment.py → privateclusters/get_private_cluster.py} +40 -44
  38. beamlit/api/privateclusters/get_private_cluster_health.py +97 -0
  39. beamlit/api/{agents/list_agent_deployments.py → privateclusters/list_private_clusters.py} +30 -45
  40. beamlit/api/{models/list_model_deployments.py → privateclusters/update_private_cluster.py} +38 -45
  41. beamlit/api/privateclusters/update_private_cluster_health.py +97 -0
  42. beamlit/authentication/device_mode.py +3 -9
  43. beamlit/common/generate.py +47 -34
  44. beamlit/common/settings.py +29 -27
  45. beamlit/deploy/deploy.py +101 -342
  46. beamlit/deploy/format.py +70 -0
  47. beamlit/deploy/parser.py +175 -0
  48. beamlit/functions/decorator.py +8 -11
  49. beamlit/models/__init__.py +64 -78
  50. beamlit/models/acl.py +4 -22
  51. beamlit/models/agent.py +34 -95
  52. beamlit/models/agent_history.py +7 -5
  53. beamlit/models/agent_history_event.py +11 -9
  54. beamlit/models/agent_metadata.py +5 -3
  55. beamlit/models/agent_spec.py +54 -45
  56. beamlit/models/api_key.py +14 -14
  57. beamlit/models/configuration.py +11 -0
  58. beamlit/models/core_spec.py +45 -32
  59. beamlit/models/{model_deployment_metrics_query_per_second_per_region_per_code.py → core_spec_configurations.py} +22 -22
  60. beamlit/models/environment.py +33 -105
  61. beamlit/models/environment_metadata.py +146 -0
  62. beamlit/models/environment_spec.py +8 -6
  63. beamlit/models/function.py +34 -95
  64. beamlit/models/function_metadata.py +5 -3
  65. beamlit/models/function_spec.py +53 -40
  66. beamlit/models/integration_connection.py +31 -137
  67. beamlit/models/integration_connection_spec.py +6 -4
  68. beamlit/models/metadata.py +5 -3
  69. beamlit/models/metadata_labels.py +4 -2
  70. beamlit/models/model.py +33 -94
  71. beamlit/models/model_metadata.py +5 -3
  72. beamlit/models/{function_provider_ref.py → model_private_cluster.py} +23 -14
  73. beamlit/models/model_provider.py +27 -43
  74. beamlit/models/model_spec.py +45 -32
  75. beamlit/models/owner_fields.py +4 -2
  76. beamlit/models/pending_invitation.py +14 -14
  77. beamlit/models/pod_template_spec.py +4 -2
  78. beamlit/models/policy.py +33 -159
  79. beamlit/models/policy_spec.py +24 -28
  80. beamlit/models/private_cluster.py +183 -0
  81. beamlit/models/{model_provider_ref.py → private_location.py} +7 -16
  82. beamlit/models/resource_deployment_metrics.py +0 -108
  83. beamlit/models/resource_environment_metrics.py +143 -71
  84. beamlit/models/{resource_deployment_metrics_inference_per_region.py → resource_environment_metrics_inference_per_region.py} +5 -5
  85. beamlit/models/resource_environment_metrics_inference_per_second_per_region.py +9 -11
  86. beamlit/models/{resource_deployment_metrics_query_per_region_per_code.py → resource_environment_metrics_query_per_region_per_code.py} +5 -5
  87. beamlit/models/resource_environment_metrics_query_per_second_per_region_per_code.py +5 -3
  88. beamlit/models/resource_log.py +4 -2
  89. beamlit/models/runtime.py +20 -2
  90. beamlit/models/serverless_config.py +28 -21
  91. beamlit/models/spec_configuration.py +7 -5
  92. beamlit/models/store_agent.py +14 -14
  93. beamlit/models/store_function.py +14 -14
  94. beamlit/models/time_fields.py +4 -2
  95. beamlit/models/websocket_channel.py +4 -2
  96. beamlit/models/workspace.py +23 -14
  97. beamlit/run.py +0 -1
  98. beamlit/serve/app.py +1 -0
  99. beamlit/serve/middlewares/accesslog.py +3 -1
  100. {beamlit-0.0.24rc20.dist-info → beamlit-0.0.24rc21.dist-info}/METADATA +1 -1
  101. beamlit-0.0.24rc21.dist-info/RECORD +243 -0
  102. beamlit/api/agents/delete_agent_deployment.py +0 -163
  103. beamlit/api/agents/delete_agent_deployment_history.py +0 -172
  104. beamlit/api/agents/get_agent_deployment_history.py +0 -172
  105. beamlit/api/agents/get_agent_deployment_logs.py +0 -164
  106. beamlit/api/agents/list_agent_deployment_history.py +0 -164
  107. beamlit/api/agents/put_agent_deployment.py +0 -185
  108. beamlit/api/agents/put_agent_deployment_history.py +0 -198
  109. beamlit/api/functions/delete_function_deployment.py +0 -163
  110. beamlit/api/functions/get_function_deployment.py +0 -163
  111. beamlit/api/functions/get_function_deployment_logs.py +0 -164
  112. beamlit/api/functions/get_function_deployment_metrics.py +0 -159
  113. beamlit/api/functions/put_function_deployment.py +0 -185
  114. beamlit/api/models/delete_model_deployment.py +0 -171
  115. beamlit/api/models/get_model_deployment.py +0 -171
  116. beamlit/api/models/get_model_deployment_logs.py +0 -168
  117. beamlit/api/models/get_model_deployment_metrics.py +0 -163
  118. beamlit/api/models/put_model_deployment.py +0 -193
  119. beamlit/models/agent_configuration.py +0 -70
  120. beamlit/models/agent_deployment.py +0 -340
  121. beamlit/models/agent_deployment_configuration.py +0 -45
  122. beamlit/models/agent_deployment_configuration_type_0.py +0 -43
  123. beamlit/models/agent_deployment_history.py +0 -185
  124. beamlit/models/agent_deployment_history_event.py +0 -133
  125. beamlit/models/agent_deployment_pod_template.py +0 -45
  126. beamlit/models/agent_deployment_pod_template_type_0.py +0 -43
  127. beamlit/models/agent_with_deployments.py +0 -176
  128. beamlit/models/authentication_provider_model.py +0 -144
  129. beamlit/models/authentication_provider_organization.py +0 -88
  130. beamlit/models/deployment_configuration.py +0 -70
  131. beamlit/models/deployment_configurations.py +0 -58
  132. beamlit/models/deployment_serverless_config.py +0 -131
  133. beamlit/models/deployment_serverless_config_type_0.py +0 -220
  134. beamlit/models/function_configuration.py +0 -70
  135. beamlit/models/function_deployment.py +0 -340
  136. beamlit/models/function_deployment_configuration.py +0 -45
  137. beamlit/models/function_deployment_configuration_type_0.py +0 -43
  138. beamlit/models/function_deployment_pod_template.py +0 -45
  139. beamlit/models/function_deployment_pod_template_type_0.py +0 -43
  140. beamlit/models/function_with_deployments.py +0 -176
  141. beamlit/models/integration.py +0 -198
  142. beamlit/models/integration_config.py +0 -45
  143. beamlit/models/integration_secret.py +0 -61
  144. beamlit/models/labels_type_0.py +0 -45
  145. beamlit/models/location.py +0 -122
  146. beamlit/models/model_deployment.py +0 -296
  147. beamlit/models/model_deployment_log.py +0 -70
  148. beamlit/models/model_deployment_metrics.py +0 -172
  149. beamlit/models/model_deployment_metrics_inference_per_second_per_region.py +0 -77
  150. beamlit/models/model_deployment_pod_template.py +0 -45
  151. beamlit/models/model_deployment_pod_template_type_0.py +0 -43
  152. beamlit/models/model_metrics.py +0 -96
  153. beamlit/models/model_with_deployments.py +0 -176
  154. beamlit/models/resource_deployment_log.py +0 -70
  155. beamlit/models/resource_deployment_metrics_inference_per_region_type_0.py +0 -79
  156. beamlit/models/resource_deployment_metrics_inference_per_second_per_region_type_0.py +0 -79
  157. beamlit/models/resource_deployment_metrics_query_per_region_per_code_type_0.py +0 -73
  158. beamlit/models/resource_deployment_metrics_query_per_second_per_region_per_code_type_0.py +0 -73
  159. beamlit/models/runtime_readiness_probe_type_0.py +0 -43
  160. beamlit/models/runtime_type_0.py +0 -111
  161. beamlit/models/runtime_type_0_readiness_probe.py +0 -43
  162. beamlit/models/runtime_type_0_readiness_probe_type_0.py +0 -43
  163. beamlit/models/runtime_type_0_resources.py +0 -59
  164. beamlit/models/standard_fields_dynamo_db.py +0 -88
  165. beamlit/models/store_agent_configuration.py +0 -97
  166. beamlit/models/store_agent_labels_type_0.py +0 -43
  167. beamlit/models/store_function_configuration.py +0 -97
  168. beamlit/models/store_function_labels_type_0.py +0 -43
  169. beamlit-0.0.24rc20.dist-info/RECORD +0 -303
  170. {beamlit-0.0.24rc20.dist-info → beamlit-0.0.24rc21.dist-info}/WHEEL +0 -0
@@ -1,43 +0,0 @@
1
- from typing import Any, Type, TypeVar
2
-
3
- from attrs import define as _attrs_define
4
- from attrs import field as _attrs_field
5
-
6
- T = TypeVar("T", bound="RuntimeReadinessProbeType0")
7
-
8
-
9
- @_attrs_define
10
- class RuntimeReadinessProbeType0:
11
- """The readiness probe. Should be a Kubernetes Probe type"""
12
-
13
- additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
14
-
15
- def to_dict(self) -> dict[str, Any]:
16
- field_dict: dict[str, Any] = {}
17
- field_dict.update(self.additional_properties)
18
-
19
- return field_dict
20
-
21
- @classmethod
22
- def from_dict(cls: Type[T], src_dict: dict[str, Any]) -> T:
23
- d = src_dict.copy()
24
- runtime_readiness_probe_type_0 = cls()
25
-
26
- runtime_readiness_probe_type_0.additional_properties = d
27
- return runtime_readiness_probe_type_0
28
-
29
- @property
30
- def additional_keys(self) -> list[str]:
31
- return list(self.additional_properties.keys())
32
-
33
- def __getitem__(self, key: str) -> Any:
34
- return self.additional_properties[key]
35
-
36
- def __setitem__(self, key: str, value: Any) -> None:
37
- self.additional_properties[key] = value
38
-
39
- def __delitem__(self, key: str) -> None:
40
- del self.additional_properties[key]
41
-
42
- def __contains__(self, key: str) -> bool:
43
- return key in self.additional_properties
@@ -1,111 +0,0 @@
1
- from typing import Any, List, Type, TypeVar, Union, cast
2
-
3
- from attrs import define as _attrs_define
4
- from attrs import field as _attrs_field
5
-
6
- from ..types import UNSET, Unset
7
-
8
- T = TypeVar("T", bound="RuntimeType0")
9
-
10
-
11
- @_attrs_define
12
- class RuntimeType0:
13
- """Set of configurations for a deployment
14
-
15
- Attributes:
16
- args (Union[Unset, List[Any]]): The arguments to pass to the deployment runtime
17
- command (Union[Unset, List[Any]]): The command to run the deployment
18
- envs (Union[Unset, List[Any]]): The environment variables to set in the deployment. Should be a list of
19
- Kubernetes EnvVar types
20
- image (Union[Unset, str]): The Docker image for the deployment
21
- model (Union[Unset, str]): The slug name of the origin model. Only used if the deployment is a ModelDeployment
22
- type (Union[Unset, str]): The type of origin for the deployment
23
- """
24
-
25
- args: Union[Unset, List[Any]] = UNSET
26
- command: Union[Unset, List[Any]] = UNSET
27
- envs: Union[Unset, List[Any]] = UNSET
28
- image: Union[Unset, str] = UNSET
29
- model: Union[Unset, str] = UNSET
30
- type: Union[Unset, str] = UNSET
31
- additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
32
-
33
- def to_dict(self) -> dict[str, Any]:
34
- args: Union[Unset, List[Any]] = UNSET
35
- if not isinstance(self.args, Unset):
36
- args = self.args
37
-
38
- command: Union[Unset, List[Any]] = UNSET
39
- if not isinstance(self.command, Unset):
40
- command = self.command
41
-
42
- envs: Union[Unset, List[Any]] = UNSET
43
- if not isinstance(self.envs, Unset):
44
- envs = self.envs
45
-
46
- image = self.image
47
-
48
- model = self.model
49
-
50
- type = self.type
51
-
52
- field_dict: dict[str, Any] = {}
53
- field_dict.update(self.additional_properties)
54
- field_dict.update({})
55
- if args is not UNSET:
56
- field_dict["args"] = args
57
- if command is not UNSET:
58
- field_dict["command"] = command
59
- if envs is not UNSET:
60
- field_dict["envs"] = envs
61
- if image is not UNSET:
62
- field_dict["image"] = image
63
- if model is not UNSET:
64
- field_dict["model"] = model
65
- if type is not UNSET:
66
- field_dict["type"] = type
67
-
68
- return field_dict
69
-
70
- @classmethod
71
- def from_dict(cls: Type[T], src_dict: dict[str, Any]) -> T:
72
- d = src_dict.copy()
73
- args = cast(List[Any], d.pop("args", UNSET))
74
-
75
- command = cast(List[Any], d.pop("command", UNSET))
76
-
77
- envs = cast(List[Any], d.pop("envs", UNSET))
78
-
79
- image = d.pop("image", UNSET)
80
-
81
- model = d.pop("model", UNSET)
82
-
83
- type = d.pop("type", UNSET)
84
-
85
- runtime_type_0 = cls(
86
- args=args,
87
- command=command,
88
- envs=envs,
89
- image=image,
90
- model=model,
91
- type=type,
92
- )
93
-
94
- runtime_type_0.additional_properties = d
95
- return runtime_type_0
96
-
97
- @property
98
- def additional_keys(self) -> list[str]:
99
- return list(self.additional_properties.keys())
100
-
101
- def __getitem__(self, key: str) -> Any:
102
- return self.additional_properties[key]
103
-
104
- def __setitem__(self, key: str, value: Any) -> None:
105
- self.additional_properties[key] = value
106
-
107
- def __delitem__(self, key: str) -> None:
108
- del self.additional_properties[key]
109
-
110
- def __contains__(self, key: str) -> bool:
111
- return key in self.additional_properties
@@ -1,43 +0,0 @@
1
- from typing import Any, Type, TypeVar
2
-
3
- from attrs import define as _attrs_define
4
- from attrs import field as _attrs_field
5
-
6
- T = TypeVar("T", bound="RuntimeType0ReadinessProbe")
7
-
8
-
9
- @_attrs_define
10
- class RuntimeType0ReadinessProbe:
11
- """The readiness probe. Should be a Kubernetes Probe type"""
12
-
13
- additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
14
-
15
- def to_dict(self) -> dict[str, Any]:
16
- field_dict: dict[str, Any] = {}
17
- field_dict.update(self.additional_properties)
18
-
19
- return field_dict
20
-
21
- @classmethod
22
- def from_dict(cls: Type[T], src_dict: dict[str, Any]) -> T:
23
- d = src_dict.copy()
24
- runtime_type_0_readiness_probe = cls()
25
-
26
- runtime_type_0_readiness_probe.additional_properties = d
27
- return runtime_type_0_readiness_probe
28
-
29
- @property
30
- def additional_keys(self) -> list[str]:
31
- return list(self.additional_properties.keys())
32
-
33
- def __getitem__(self, key: str) -> Any:
34
- return self.additional_properties[key]
35
-
36
- def __setitem__(self, key: str, value: Any) -> None:
37
- self.additional_properties[key] = value
38
-
39
- def __delitem__(self, key: str) -> None:
40
- del self.additional_properties[key]
41
-
42
- def __contains__(self, key: str) -> bool:
43
- return key in self.additional_properties
@@ -1,43 +0,0 @@
1
- from typing import Any, Type, TypeVar
2
-
3
- from attrs import define as _attrs_define
4
- from attrs import field as _attrs_field
5
-
6
- T = TypeVar("T", bound="RuntimeType0ReadinessProbeType0")
7
-
8
-
9
- @_attrs_define
10
- class RuntimeType0ReadinessProbeType0:
11
- """The readiness probe. Should be a Kubernetes Probe type"""
12
-
13
- additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
14
-
15
- def to_dict(self) -> dict[str, Any]:
16
- field_dict: dict[str, Any] = {}
17
- field_dict.update(self.additional_properties)
18
-
19
- return field_dict
20
-
21
- @classmethod
22
- def from_dict(cls: Type[T], src_dict: dict[str, Any]) -> T:
23
- d = src_dict.copy()
24
- runtime_type_0_readiness_probe_type_0 = cls()
25
-
26
- runtime_type_0_readiness_probe_type_0.additional_properties = d
27
- return runtime_type_0_readiness_probe_type_0
28
-
29
- @property
30
- def additional_keys(self) -> list[str]:
31
- return list(self.additional_properties.keys())
32
-
33
- def __getitem__(self, key: str) -> Any:
34
- return self.additional_properties[key]
35
-
36
- def __setitem__(self, key: str, value: Any) -> None:
37
- self.additional_properties[key] = value
38
-
39
- def __delitem__(self, key: str) -> None:
40
- del self.additional_properties[key]
41
-
42
- def __contains__(self, key: str) -> bool:
43
- return key in self.additional_properties
@@ -1,59 +0,0 @@
1
- from typing import Any, Type, TypeVar, Union
2
-
3
- from attrs import define as _attrs_define
4
- from attrs import field as _attrs_field
5
-
6
- from ..types import UNSET, Unset
7
-
8
- T = TypeVar("T", bound="RuntimeType0Resources")
9
-
10
-
11
- @_attrs_define
12
- class RuntimeType0Resources:
13
- """The resources for the deployment. Should be a Kubernetes ResourceRequirements type
14
-
15
- Attributes:
16
- requests (Union[Unset, str]):
17
- """
18
-
19
- requests: Union[Unset, str] = UNSET
20
- additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
21
-
22
- def to_dict(self) -> dict[str, Any]:
23
- requests = self.requests
24
-
25
- field_dict: dict[str, Any] = {}
26
- field_dict.update(self.additional_properties)
27
- field_dict.update({})
28
- if requests is not UNSET:
29
- field_dict["requests"] = requests
30
-
31
- return field_dict
32
-
33
- @classmethod
34
- def from_dict(cls: Type[T], src_dict: dict[str, Any]) -> T:
35
- d = src_dict.copy()
36
- requests = d.pop("requests", UNSET)
37
-
38
- runtime_type_0_resources = cls(
39
- requests=requests,
40
- )
41
-
42
- runtime_type_0_resources.additional_properties = d
43
- return runtime_type_0_resources
44
-
45
- @property
46
- def additional_keys(self) -> list[str]:
47
- return list(self.additional_properties.keys())
48
-
49
- def __getitem__(self, key: str) -> Any:
50
- return self.additional_properties[key]
51
-
52
- def __setitem__(self, key: str, value: Any) -> None:
53
- self.additional_properties[key] = value
54
-
55
- def __delitem__(self, key: str) -> None:
56
- del self.additional_properties[key]
57
-
58
- def __contains__(self, key: str) -> bool:
59
- return key in self.additional_properties
@@ -1,88 +0,0 @@
1
- from typing import Any, TypeVar, Union
2
-
3
- from attrs import define as _attrs_define
4
- from attrs import field as _attrs_field
5
-
6
- from ..types import UNSET, Unset
7
-
8
- T = TypeVar("T", bound="StandardFieldsDynamoDb")
9
-
10
-
11
- @_attrs_define
12
- class StandardFieldsDynamoDb:
13
- """Standard fields for Persistance
14
-
15
- Attributes:
16
- created_at (Union[Unset, str]): The date and time when the resource was created
17
- created_by (Union[Unset, str]): The user or service account who created the resource
18
- updated_at (Union[Unset, str]): The date and time when the resource was updated
19
- updated_by (Union[Unset, str]): The user or service account who updated the resource
20
- """
21
-
22
- created_at: Union[Unset, str] = UNSET
23
- created_by: Union[Unset, str] = UNSET
24
- updated_at: Union[Unset, str] = UNSET
25
- updated_by: Union[Unset, str] = UNSET
26
- additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
27
-
28
- def to_dict(self) -> dict[str, Any]:
29
- created_at = self.created_at
30
-
31
- created_by = self.created_by
32
-
33
- updated_at = self.updated_at
34
-
35
- updated_by = self.updated_by
36
-
37
- field_dict: dict[str, Any] = {}
38
- field_dict.update(self.additional_properties)
39
- field_dict.update({})
40
- if created_at is not UNSET:
41
- field_dict["created_at"] = created_at
42
- if created_by is not UNSET:
43
- field_dict["created_by"] = created_by
44
- if updated_at is not UNSET:
45
- field_dict["updated_at"] = updated_at
46
- if updated_by is not UNSET:
47
- field_dict["updated_by"] = updated_by
48
-
49
- return field_dict
50
-
51
- @classmethod
52
- def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T:
53
- if not src_dict:
54
- return None
55
- d = src_dict.copy()
56
- created_at = d.pop("created_at", UNSET)
57
-
58
- created_by = d.pop("created_by", UNSET)
59
-
60
- updated_at = d.pop("updated_at", UNSET)
61
-
62
- updated_by = d.pop("updated_by", UNSET)
63
-
64
- standard_fields_dynamo_db = cls(
65
- created_at=created_at,
66
- created_by=created_by,
67
- updated_at=updated_at,
68
- updated_by=updated_by,
69
- )
70
-
71
- standard_fields_dynamo_db.additional_properties = d
72
- return standard_fields_dynamo_db
73
-
74
- @property
75
- def additional_keys(self) -> list[str]:
76
- return list(self.additional_properties.keys())
77
-
78
- def __getitem__(self, key: str) -> Any:
79
- return self.additional_properties[key]
80
-
81
- def __setitem__(self, key: str, value: Any) -> None:
82
- self.additional_properties[key] = value
83
-
84
- def __delitem__(self, key: str) -> None:
85
- del self.additional_properties[key]
86
-
87
- def __contains__(self, key: str) -> bool:
88
- return key in self.additional_properties
@@ -1,97 +0,0 @@
1
- from typing import Any, TypeVar, Union
2
-
3
- from attrs import define as _attrs_define
4
- from attrs import field as _attrs_field
5
-
6
- from ..types import UNSET, Unset
7
-
8
- T = TypeVar("T", bound="StoreAgentConfiguration")
9
-
10
-
11
- @_attrs_define
12
- class StoreAgentConfiguration:
13
- """Store agent configuration used to configure your agent directly from beamlit interface
14
-
15
- Attributes:
16
- description (Union[Unset, str]): Store function configuration description
17
- if_ (Union[Unset, str]): Conditional rendering for the configuration, example: provider === 'openai'
18
- name (Union[Unset, str]): Store function configuration name
19
- required (Union[Unset, bool]): Store function configuration required
20
- secret (Union[Unset, bool]): Store function configuration secret
21
- """
22
-
23
- description: Union[Unset, str] = UNSET
24
- if_: Union[Unset, str] = UNSET
25
- name: Union[Unset, str] = UNSET
26
- required: Union[Unset, bool] = UNSET
27
- secret: Union[Unset, bool] = UNSET
28
- additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
29
-
30
- def to_dict(self) -> dict[str, Any]:
31
- description = self.description
32
-
33
- if_ = self.if_
34
-
35
- name = self.name
36
-
37
- required = self.required
38
-
39
- secret = self.secret
40
-
41
- field_dict: dict[str, Any] = {}
42
- field_dict.update(self.additional_properties)
43
- field_dict.update({})
44
- if description is not UNSET:
45
- field_dict["description"] = description
46
- if if_ is not UNSET:
47
- field_dict["if"] = if_
48
- if name is not UNSET:
49
- field_dict["name"] = name
50
- if required is not UNSET:
51
- field_dict["required"] = required
52
- if secret is not UNSET:
53
- field_dict["secret"] = secret
54
-
55
- return field_dict
56
-
57
- @classmethod
58
- def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T:
59
- if not src_dict:
60
- return None
61
- d = src_dict.copy()
62
- description = d.pop("description", UNSET)
63
-
64
- if_ = d.pop("if", UNSET)
65
-
66
- name = d.pop("name", UNSET)
67
-
68
- required = d.pop("required", UNSET)
69
-
70
- secret = d.pop("secret", UNSET)
71
-
72
- store_agent_configuration = cls(
73
- description=description,
74
- if_=if_,
75
- name=name,
76
- required=required,
77
- secret=secret,
78
- )
79
-
80
- store_agent_configuration.additional_properties = d
81
- return store_agent_configuration
82
-
83
- @property
84
- def additional_keys(self) -> list[str]:
85
- return list(self.additional_properties.keys())
86
-
87
- def __getitem__(self, key: str) -> Any:
88
- return self.additional_properties[key]
89
-
90
- def __setitem__(self, key: str, value: Any) -> None:
91
- self.additional_properties[key] = value
92
-
93
- def __delitem__(self, key: str) -> None:
94
- del self.additional_properties[key]
95
-
96
- def __contains__(self, key: str) -> bool:
97
- return key in self.additional_properties
@@ -1,43 +0,0 @@
1
- from typing import Any, Type, TypeVar
2
-
3
- from attrs import define as _attrs_define
4
- from attrs import field as _attrs_field
5
-
6
- T = TypeVar("T", bound="StoreAgentLabelsType0")
7
-
8
-
9
- @_attrs_define
10
- class StoreAgentLabelsType0:
11
- """Store agent labels"""
12
-
13
- additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
14
-
15
- def to_dict(self) -> dict[str, Any]:
16
- field_dict: dict[str, Any] = {}
17
- field_dict.update(self.additional_properties)
18
-
19
- return field_dict
20
-
21
- @classmethod
22
- def from_dict(cls: Type[T], src_dict: dict[str, Any]) -> T:
23
- d = src_dict.copy()
24
- store_agent_labels_type_0 = cls()
25
-
26
- store_agent_labels_type_0.additional_properties = d
27
- return store_agent_labels_type_0
28
-
29
- @property
30
- def additional_keys(self) -> list[str]:
31
- return list(self.additional_properties.keys())
32
-
33
- def __getitem__(self, key: str) -> Any:
34
- return self.additional_properties[key]
35
-
36
- def __setitem__(self, key: str, value: Any) -> None:
37
- self.additional_properties[key] = value
38
-
39
- def __delitem__(self, key: str) -> None:
40
- del self.additional_properties[key]
41
-
42
- def __contains__(self, key: str) -> bool:
43
- return key in self.additional_properties
@@ -1,97 +0,0 @@
1
- from typing import Any, TypeVar, Union
2
-
3
- from attrs import define as _attrs_define
4
- from attrs import field as _attrs_field
5
-
6
- from ..types import UNSET, Unset
7
-
8
- T = TypeVar("T", bound="StoreFunctionConfiguration")
9
-
10
-
11
- @_attrs_define
12
- class StoreFunctionConfiguration:
13
- """Store function configuration used to configure your function directly from beamlit interface
14
-
15
- Attributes:
16
- description (Union[Unset, str]): Store function configuration description
17
- if_ (Union[Unset, str]): Conditional rendering for the configuration, example: provider === 'openai'
18
- name (Union[Unset, str]): Store function configuration name
19
- required (Union[Unset, bool]): Store function configuration required
20
- secret (Union[Unset, bool]): Store function configuration secret
21
- """
22
-
23
- description: Union[Unset, str] = UNSET
24
- if_: Union[Unset, str] = UNSET
25
- name: Union[Unset, str] = UNSET
26
- required: Union[Unset, bool] = UNSET
27
- secret: Union[Unset, bool] = UNSET
28
- additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
29
-
30
- def to_dict(self) -> dict[str, Any]:
31
- description = self.description
32
-
33
- if_ = self.if_
34
-
35
- name = self.name
36
-
37
- required = self.required
38
-
39
- secret = self.secret
40
-
41
- field_dict: dict[str, Any] = {}
42
- field_dict.update(self.additional_properties)
43
- field_dict.update({})
44
- if description is not UNSET:
45
- field_dict["description"] = description
46
- if if_ is not UNSET:
47
- field_dict["if"] = if_
48
- if name is not UNSET:
49
- field_dict["name"] = name
50
- if required is not UNSET:
51
- field_dict["required"] = required
52
- if secret is not UNSET:
53
- field_dict["secret"] = secret
54
-
55
- return field_dict
56
-
57
- @classmethod
58
- def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T:
59
- if not src_dict:
60
- return None
61
- d = src_dict.copy()
62
- description = d.pop("description", UNSET)
63
-
64
- if_ = d.pop("if", UNSET)
65
-
66
- name = d.pop("name", UNSET)
67
-
68
- required = d.pop("required", UNSET)
69
-
70
- secret = d.pop("secret", UNSET)
71
-
72
- store_function_configuration = cls(
73
- description=description,
74
- if_=if_,
75
- name=name,
76
- required=required,
77
- secret=secret,
78
- )
79
-
80
- store_function_configuration.additional_properties = d
81
- return store_function_configuration
82
-
83
- @property
84
- def additional_keys(self) -> list[str]:
85
- return list(self.additional_properties.keys())
86
-
87
- def __getitem__(self, key: str) -> Any:
88
- return self.additional_properties[key]
89
-
90
- def __setitem__(self, key: str, value: Any) -> None:
91
- self.additional_properties[key] = value
92
-
93
- def __delitem__(self, key: str) -> None:
94
- del self.additional_properties[key]
95
-
96
- def __contains__(self, key: str) -> bool:
97
- return key in self.additional_properties
@@ -1,43 +0,0 @@
1
- from typing import Any, Type, TypeVar
2
-
3
- from attrs import define as _attrs_define
4
- from attrs import field as _attrs_field
5
-
6
- T = TypeVar("T", bound="StoreFunctionLabelsType0")
7
-
8
-
9
- @_attrs_define
10
- class StoreFunctionLabelsType0:
11
- """Store function labels"""
12
-
13
- additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
14
-
15
- def to_dict(self) -> dict[str, Any]:
16
- field_dict: dict[str, Any] = {}
17
- field_dict.update(self.additional_properties)
18
-
19
- return field_dict
20
-
21
- @classmethod
22
- def from_dict(cls: Type[T], src_dict: dict[str, Any]) -> T:
23
- d = src_dict.copy()
24
- store_function_labels_type_0 = cls()
25
-
26
- store_function_labels_type_0.additional_properties = d
27
- return store_function_labels_type_0
28
-
29
- @property
30
- def additional_keys(self) -> list[str]:
31
- return list(self.additional_properties.keys())
32
-
33
- def __getitem__(self, key: str) -> Any:
34
- return self.additional_properties[key]
35
-
36
- def __setitem__(self, key: str, value: Any) -> None:
37
- self.additional_properties[key] = value
38
-
39
- def __delitem__(self, key: str) -> None:
40
- del self.additional_properties[key]
41
-
42
- def __contains__(self, key: str) -> bool:
43
- return key in self.additional_properties