beamlit 0.0.56rc104__py3-none-any.whl → 0.0.56rc105__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 (34) hide show
  1. beamlit/agents/chain.py +2 -1
  2. beamlit/api/default/list_mcp_hub_definitions.py +127 -0
  3. beamlit/api/generation/__init__.py +0 -0
  4. beamlit/api/generation/run_information_generation_agent.py +168 -0
  5. beamlit/api/knowledgebases/delete_knowledgebase.py +18 -18
  6. beamlit/api/knowledgebases/get_knowledgebase.py +18 -18
  7. beamlit/api/knowledgebases/update_knowledgebase.py +14 -14
  8. beamlit/deploy/deploy.py +5 -2
  9. beamlit/functions/remote/remote.py +3 -2
  10. beamlit/models/__init__.py +30 -0
  11. beamlit/models/agent_information_request.py +63 -0
  12. beamlit/models/agent_information_response.py +88 -0
  13. beamlit/models/agent_spec.py +9 -0
  14. beamlit/models/entrypoint.py +96 -0
  15. beamlit/models/entrypoint_env.py +45 -0
  16. beamlit/models/form.py +120 -0
  17. beamlit/models/form_config.py +45 -0
  18. beamlit/models/form_oauthomitempty.py +45 -0
  19. beamlit/models/form_secrets.py +45 -0
  20. beamlit/models/mcp_definition.py +188 -0
  21. beamlit/models/mcp_definition_entrypoint.py +45 -0
  22. beamlit/models/mcp_definition_form.py +45 -0
  23. beamlit/models/mcp_hub_artifact.py +188 -0
  24. beamlit/models/mcp_hub_artifact_entrypoint.py +45 -0
  25. beamlit/models/mcp_hub_artifact_form.py +45 -0
  26. beamlit/models/model_spec.py +0 -9
  27. beamlit/models/o_auth.py +72 -0
  28. beamlit/models/workspace.py +9 -9
  29. {beamlit-0.0.56rc104.dist-info → beamlit-0.0.56rc105.dist-info}/METADATA +1 -1
  30. {beamlit-0.0.56rc104.dist-info → beamlit-0.0.56rc105.dist-info}/RECORD +33 -16
  31. beamlit/api/workspaces/workspace_quotas_request.py +0 -97
  32. {beamlit-0.0.56rc104.dist-info → beamlit-0.0.56rc105.dist-info}/WHEEL +0 -0
  33. {beamlit-0.0.56rc104.dist-info → beamlit-0.0.56rc105.dist-info}/entry_points.txt +0 -0
  34. {beamlit-0.0.56rc104.dist-info → beamlit-0.0.56rc105.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,45 @@
1
+ from typing import Any, TypeVar
2
+
3
+ from attrs import define as _attrs_define
4
+ from attrs import field as _attrs_field
5
+
6
+ T = TypeVar("T", bound="FormOauthomitempty")
7
+
8
+
9
+ @_attrs_define
10
+ class FormOauthomitempty:
11
+ """OAuth of the artifact"""
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
+ if not src_dict:
24
+ return None
25
+ d = src_dict.copy()
26
+ form_oauthomitempty = cls()
27
+
28
+ form_oauthomitempty.additional_properties = d
29
+ return form_oauthomitempty
30
+
31
+ @property
32
+ def additional_keys(self) -> list[str]:
33
+ return list(self.additional_properties.keys())
34
+
35
+ def __getitem__(self, key: str) -> Any:
36
+ return self.additional_properties[key]
37
+
38
+ def __setitem__(self, key: str, value: Any) -> None:
39
+ self.additional_properties[key] = value
40
+
41
+ def __delitem__(self, key: str) -> None:
42
+ del self.additional_properties[key]
43
+
44
+ def __contains__(self, key: str) -> bool:
45
+ return key in self.additional_properties
@@ -0,0 +1,45 @@
1
+ from typing import Any, TypeVar
2
+
3
+ from attrs import define as _attrs_define
4
+ from attrs import field as _attrs_field
5
+
6
+ T = TypeVar("T", bound="FormSecrets")
7
+
8
+
9
+ @_attrs_define
10
+ class FormSecrets:
11
+ """Secrets of the artifact"""
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
+ if not src_dict:
24
+ return None
25
+ d = src_dict.copy()
26
+ form_secrets = cls()
27
+
28
+ form_secrets.additional_properties = d
29
+ return form_secrets
30
+
31
+ @property
32
+ def additional_keys(self) -> list[str]:
33
+ return list(self.additional_properties.keys())
34
+
35
+ def __getitem__(self, key: str) -> Any:
36
+ return self.additional_properties[key]
37
+
38
+ def __setitem__(self, key: str, value: Any) -> None:
39
+ self.additional_properties[key] = value
40
+
41
+ def __delitem__(self, key: str) -> None:
42
+ del self.additional_properties[key]
43
+
44
+ def __contains__(self, key: str) -> bool:
45
+ return key in self.additional_properties
@@ -0,0 +1,188 @@
1
+ from typing import TYPE_CHECKING, Any, 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
+ if TYPE_CHECKING:
9
+ from ..models.mcp_definition_entrypoint import MCPDefinitionEntrypoint
10
+ from ..models.mcp_definition_form import MCPDefinitionForm
11
+
12
+
13
+ T = TypeVar("T", bound="MCPDefinition")
14
+
15
+
16
+ @_attrs_define
17
+ class MCPDefinition:
18
+ """Definition of an MCP from the MCP Hub
19
+
20
+ Attributes:
21
+ categories (Union[Unset, list[Any]]): Categories of the artifact
22
+ coming_soon (Union[Unset, bool]): If the artifact is coming soon
23
+ description (Union[Unset, str]): Description of the artifact
24
+ display_name (Union[Unset, str]): Display name of the artifact
25
+ enterprise (Union[Unset, bool]): If the artifact is enterprise
26
+ entrypoint (Union[Unset, MCPDefinitionEntrypoint]): Entrypoint of the artifact
27
+ form (Union[Unset, MCPDefinitionForm]): Form of the artifact
28
+ icon (Union[Unset, str]): Icon of the artifact
29
+ integration (Union[Unset, str]): Integration of the artifact
30
+ long_description (Union[Unset, str]): Long description of the artifact
31
+ name (Union[Unset, str]): Name of the artifact
32
+ url (Union[Unset, str]): URL of the artifact
33
+ """
34
+
35
+ categories: Union[Unset, list[Any]] = UNSET
36
+ coming_soon: Union[Unset, bool] = UNSET
37
+ description: Union[Unset, str] = UNSET
38
+ display_name: Union[Unset, str] = UNSET
39
+ enterprise: Union[Unset, bool] = UNSET
40
+ entrypoint: Union[Unset, "MCPDefinitionEntrypoint"] = UNSET
41
+ form: Union[Unset, "MCPDefinitionForm"] = UNSET
42
+ icon: Union[Unset, str] = UNSET
43
+ integration: Union[Unset, str] = UNSET
44
+ long_description: Union[Unset, str] = UNSET
45
+ name: Union[Unset, str] = UNSET
46
+ url: Union[Unset, str] = UNSET
47
+ additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
48
+
49
+ def to_dict(self) -> dict[str, Any]:
50
+ categories: Union[Unset, list[Any]] = UNSET
51
+ if not isinstance(self.categories, Unset):
52
+ categories = self.categories
53
+
54
+ coming_soon = self.coming_soon
55
+
56
+ description = self.description
57
+
58
+ display_name = self.display_name
59
+
60
+ enterprise = self.enterprise
61
+
62
+ entrypoint: Union[Unset, dict[str, Any]] = UNSET
63
+ if self.entrypoint and not isinstance(self.entrypoint, Unset) and not isinstance(self.entrypoint, dict):
64
+ entrypoint = self.entrypoint.to_dict()
65
+ elif self.entrypoint and isinstance(self.entrypoint, dict):
66
+ entrypoint = self.entrypoint
67
+
68
+ form: Union[Unset, dict[str, Any]] = UNSET
69
+ if self.form and not isinstance(self.form, Unset) and not isinstance(self.form, dict):
70
+ form = self.form.to_dict()
71
+ elif self.form and isinstance(self.form, dict):
72
+ form = self.form
73
+
74
+ icon = self.icon
75
+
76
+ integration = self.integration
77
+
78
+ long_description = self.long_description
79
+
80
+ name = self.name
81
+
82
+ url = self.url
83
+
84
+ field_dict: dict[str, Any] = {}
85
+ field_dict.update(self.additional_properties)
86
+ field_dict.update({})
87
+ if categories is not UNSET:
88
+ field_dict["categories"] = categories
89
+ if coming_soon is not UNSET:
90
+ field_dict["coming_soon"] = coming_soon
91
+ if description is not UNSET:
92
+ field_dict["description"] = description
93
+ if display_name is not UNSET:
94
+ field_dict["displayName"] = display_name
95
+ if enterprise is not UNSET:
96
+ field_dict["enterprise"] = enterprise
97
+ if entrypoint is not UNSET:
98
+ field_dict["entrypoint"] = entrypoint
99
+ if form is not UNSET:
100
+ field_dict["form"] = form
101
+ if icon is not UNSET:
102
+ field_dict["icon"] = icon
103
+ if integration is not UNSET:
104
+ field_dict["integration"] = integration
105
+ if long_description is not UNSET:
106
+ field_dict["longDescription"] = long_description
107
+ if name is not UNSET:
108
+ field_dict["name"] = name
109
+ if url is not UNSET:
110
+ field_dict["url"] = url
111
+
112
+ return field_dict
113
+
114
+ @classmethod
115
+ def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T:
116
+ from ..models.mcp_definition_entrypoint import MCPDefinitionEntrypoint
117
+ from ..models.mcp_definition_form import MCPDefinitionForm
118
+
119
+ if not src_dict:
120
+ return None
121
+ d = src_dict.copy()
122
+ categories = cast(list[Any], d.pop("categories", UNSET))
123
+
124
+ coming_soon = d.pop("coming_soon", UNSET)
125
+
126
+ description = d.pop("description", UNSET)
127
+
128
+ display_name = d.pop("displayName", UNSET)
129
+
130
+ enterprise = d.pop("enterprise", UNSET)
131
+
132
+ _entrypoint = d.pop("entrypoint", UNSET)
133
+ entrypoint: Union[Unset, MCPDefinitionEntrypoint]
134
+ if isinstance(_entrypoint, Unset):
135
+ entrypoint = UNSET
136
+ else:
137
+ entrypoint = MCPDefinitionEntrypoint.from_dict(_entrypoint)
138
+
139
+ _form = d.pop("form", UNSET)
140
+ form: Union[Unset, MCPDefinitionForm]
141
+ if isinstance(_form, Unset):
142
+ form = UNSET
143
+ else:
144
+ form = MCPDefinitionForm.from_dict(_form)
145
+
146
+ icon = d.pop("icon", UNSET)
147
+
148
+ integration = d.pop("integration", UNSET)
149
+
150
+ long_description = d.pop("longDescription", UNSET)
151
+
152
+ name = d.pop("name", UNSET)
153
+
154
+ url = d.pop("url", UNSET)
155
+
156
+ mcp_definition = cls(
157
+ categories=categories,
158
+ coming_soon=coming_soon,
159
+ description=description,
160
+ display_name=display_name,
161
+ enterprise=enterprise,
162
+ entrypoint=entrypoint,
163
+ form=form,
164
+ icon=icon,
165
+ integration=integration,
166
+ long_description=long_description,
167
+ name=name,
168
+ url=url,
169
+ )
170
+
171
+ mcp_definition.additional_properties = d
172
+ return mcp_definition
173
+
174
+ @property
175
+ def additional_keys(self) -> list[str]:
176
+ return list(self.additional_properties.keys())
177
+
178
+ def __getitem__(self, key: str) -> Any:
179
+ return self.additional_properties[key]
180
+
181
+ def __setitem__(self, key: str, value: Any) -> None:
182
+ self.additional_properties[key] = value
183
+
184
+ def __delitem__(self, key: str) -> None:
185
+ del self.additional_properties[key]
186
+
187
+ def __contains__(self, key: str) -> bool:
188
+ return key in self.additional_properties
@@ -0,0 +1,45 @@
1
+ from typing import Any, TypeVar
2
+
3
+ from attrs import define as _attrs_define
4
+ from attrs import field as _attrs_field
5
+
6
+ T = TypeVar("T", bound="MCPDefinitionEntrypoint")
7
+
8
+
9
+ @_attrs_define
10
+ class MCPDefinitionEntrypoint:
11
+ """Entrypoint of the artifact"""
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
+ if not src_dict:
24
+ return None
25
+ d = src_dict.copy()
26
+ mcp_definition_entrypoint = cls()
27
+
28
+ mcp_definition_entrypoint.additional_properties = d
29
+ return mcp_definition_entrypoint
30
+
31
+ @property
32
+ def additional_keys(self) -> list[str]:
33
+ return list(self.additional_properties.keys())
34
+
35
+ def __getitem__(self, key: str) -> Any:
36
+ return self.additional_properties[key]
37
+
38
+ def __setitem__(self, key: str, value: Any) -> None:
39
+ self.additional_properties[key] = value
40
+
41
+ def __delitem__(self, key: str) -> None:
42
+ del self.additional_properties[key]
43
+
44
+ def __contains__(self, key: str) -> bool:
45
+ return key in self.additional_properties
@@ -0,0 +1,45 @@
1
+ from typing import Any, TypeVar
2
+
3
+ from attrs import define as _attrs_define
4
+ from attrs import field as _attrs_field
5
+
6
+ T = TypeVar("T", bound="MCPDefinitionForm")
7
+
8
+
9
+ @_attrs_define
10
+ class MCPDefinitionForm:
11
+ """Form of the artifact"""
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
+ if not src_dict:
24
+ return None
25
+ d = src_dict.copy()
26
+ mcp_definition_form = cls()
27
+
28
+ mcp_definition_form.additional_properties = d
29
+ return mcp_definition_form
30
+
31
+ @property
32
+ def additional_keys(self) -> list[str]:
33
+ return list(self.additional_properties.keys())
34
+
35
+ def __getitem__(self, key: str) -> Any:
36
+ return self.additional_properties[key]
37
+
38
+ def __setitem__(self, key: str, value: Any) -> None:
39
+ self.additional_properties[key] = value
40
+
41
+ def __delitem__(self, key: str) -> None:
42
+ del self.additional_properties[key]
43
+
44
+ def __contains__(self, key: str) -> bool:
45
+ return key in self.additional_properties
@@ -0,0 +1,188 @@
1
+ from typing import TYPE_CHECKING, Any, 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
+ if TYPE_CHECKING:
9
+ from ..models.mcp_hub_artifact_entrypoint import MCPHubArtifactEntrypoint
10
+ from ..models.mcp_hub_artifact_form import MCPHubArtifactForm
11
+
12
+
13
+ T = TypeVar("T", bound="MCPHubArtifact")
14
+
15
+
16
+ @_attrs_define
17
+ class MCPHubArtifact:
18
+ """Artifact from the MCP Hub
19
+
20
+ Attributes:
21
+ categories (Union[Unset, list[Any]]): Categories of the artifact
22
+ coming_soon (Union[Unset, bool]): If the artifact is coming soon
23
+ description (Union[Unset, str]): Description of the artifact
24
+ display_name (Union[Unset, str]): Display name of the artifact
25
+ enterprise (Union[Unset, bool]): If the artifact is enterprise
26
+ entrypoint (Union[Unset, MCPHubArtifactEntrypoint]): Entrypoint of the artifact
27
+ form (Union[Unset, MCPHubArtifactForm]): Form of the artifact
28
+ icon (Union[Unset, str]): Icon of the artifact
29
+ integration (Union[Unset, str]): Integration of the artifact
30
+ long_description (Union[Unset, str]): Long description of the artifact
31
+ name (Union[Unset, str]): Name of the artifact
32
+ url (Union[Unset, str]): URL of the artifact
33
+ """
34
+
35
+ categories: Union[Unset, list[Any]] = UNSET
36
+ coming_soon: Union[Unset, bool] = UNSET
37
+ description: Union[Unset, str] = UNSET
38
+ display_name: Union[Unset, str] = UNSET
39
+ enterprise: Union[Unset, bool] = UNSET
40
+ entrypoint: Union[Unset, "MCPHubArtifactEntrypoint"] = UNSET
41
+ form: Union[Unset, "MCPHubArtifactForm"] = UNSET
42
+ icon: Union[Unset, str] = UNSET
43
+ integration: Union[Unset, str] = UNSET
44
+ long_description: Union[Unset, str] = UNSET
45
+ name: Union[Unset, str] = UNSET
46
+ url: Union[Unset, str] = UNSET
47
+ additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
48
+
49
+ def to_dict(self) -> dict[str, Any]:
50
+ categories: Union[Unset, list[Any]] = UNSET
51
+ if not isinstance(self.categories, Unset):
52
+ categories = self.categories
53
+
54
+ coming_soon = self.coming_soon
55
+
56
+ description = self.description
57
+
58
+ display_name = self.display_name
59
+
60
+ enterprise = self.enterprise
61
+
62
+ entrypoint: Union[Unset, dict[str, Any]] = UNSET
63
+ if self.entrypoint and not isinstance(self.entrypoint, Unset) and not isinstance(self.entrypoint, dict):
64
+ entrypoint = self.entrypoint.to_dict()
65
+ elif self.entrypoint and isinstance(self.entrypoint, dict):
66
+ entrypoint = self.entrypoint
67
+
68
+ form: Union[Unset, dict[str, Any]] = UNSET
69
+ if self.form and not isinstance(self.form, Unset) and not isinstance(self.form, dict):
70
+ form = self.form.to_dict()
71
+ elif self.form and isinstance(self.form, dict):
72
+ form = self.form
73
+
74
+ icon = self.icon
75
+
76
+ integration = self.integration
77
+
78
+ long_description = self.long_description
79
+
80
+ name = self.name
81
+
82
+ url = self.url
83
+
84
+ field_dict: dict[str, Any] = {}
85
+ field_dict.update(self.additional_properties)
86
+ field_dict.update({})
87
+ if categories is not UNSET:
88
+ field_dict["categories"] = categories
89
+ if coming_soon is not UNSET:
90
+ field_dict["coming_soon"] = coming_soon
91
+ if description is not UNSET:
92
+ field_dict["description"] = description
93
+ if display_name is not UNSET:
94
+ field_dict["displayName"] = display_name
95
+ if enterprise is not UNSET:
96
+ field_dict["enterprise"] = enterprise
97
+ if entrypoint is not UNSET:
98
+ field_dict["entrypoint"] = entrypoint
99
+ if form is not UNSET:
100
+ field_dict["form"] = form
101
+ if icon is not UNSET:
102
+ field_dict["icon"] = icon
103
+ if integration is not UNSET:
104
+ field_dict["integration"] = integration
105
+ if long_description is not UNSET:
106
+ field_dict["longDescription"] = long_description
107
+ if name is not UNSET:
108
+ field_dict["name"] = name
109
+ if url is not UNSET:
110
+ field_dict["url"] = url
111
+
112
+ return field_dict
113
+
114
+ @classmethod
115
+ def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T:
116
+ from ..models.mcp_hub_artifact_entrypoint import MCPHubArtifactEntrypoint
117
+ from ..models.mcp_hub_artifact_form import MCPHubArtifactForm
118
+
119
+ if not src_dict:
120
+ return None
121
+ d = src_dict.copy()
122
+ categories = cast(list[Any], d.pop("categories", UNSET))
123
+
124
+ coming_soon = d.pop("coming_soon", UNSET)
125
+
126
+ description = d.pop("description", UNSET)
127
+
128
+ display_name = d.pop("displayName", UNSET)
129
+
130
+ enterprise = d.pop("enterprise", UNSET)
131
+
132
+ _entrypoint = d.pop("entrypoint", UNSET)
133
+ entrypoint: Union[Unset, MCPHubArtifactEntrypoint]
134
+ if isinstance(_entrypoint, Unset):
135
+ entrypoint = UNSET
136
+ else:
137
+ entrypoint = MCPHubArtifactEntrypoint.from_dict(_entrypoint)
138
+
139
+ _form = d.pop("form", UNSET)
140
+ form: Union[Unset, MCPHubArtifactForm]
141
+ if isinstance(_form, Unset):
142
+ form = UNSET
143
+ else:
144
+ form = MCPHubArtifactForm.from_dict(_form)
145
+
146
+ icon = d.pop("icon", UNSET)
147
+
148
+ integration = d.pop("integration", UNSET)
149
+
150
+ long_description = d.pop("longDescription", UNSET)
151
+
152
+ name = d.pop("name", UNSET)
153
+
154
+ url = d.pop("url", UNSET)
155
+
156
+ mcp_hub_artifact = cls(
157
+ categories=categories,
158
+ coming_soon=coming_soon,
159
+ description=description,
160
+ display_name=display_name,
161
+ enterprise=enterprise,
162
+ entrypoint=entrypoint,
163
+ form=form,
164
+ icon=icon,
165
+ integration=integration,
166
+ long_description=long_description,
167
+ name=name,
168
+ url=url,
169
+ )
170
+
171
+ mcp_hub_artifact.additional_properties = d
172
+ return mcp_hub_artifact
173
+
174
+ @property
175
+ def additional_keys(self) -> list[str]:
176
+ return list(self.additional_properties.keys())
177
+
178
+ def __getitem__(self, key: str) -> Any:
179
+ return self.additional_properties[key]
180
+
181
+ def __setitem__(self, key: str, value: Any) -> None:
182
+ self.additional_properties[key] = value
183
+
184
+ def __delitem__(self, key: str) -> None:
185
+ del self.additional_properties[key]
186
+
187
+ def __contains__(self, key: str) -> bool:
188
+ return key in self.additional_properties
@@ -0,0 +1,45 @@
1
+ from typing import Any, TypeVar
2
+
3
+ from attrs import define as _attrs_define
4
+ from attrs import field as _attrs_field
5
+
6
+ T = TypeVar("T", bound="MCPHubArtifactEntrypoint")
7
+
8
+
9
+ @_attrs_define
10
+ class MCPHubArtifactEntrypoint:
11
+ """Entrypoint of the artifact"""
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
+ if not src_dict:
24
+ return None
25
+ d = src_dict.copy()
26
+ mcp_hub_artifact_entrypoint = cls()
27
+
28
+ mcp_hub_artifact_entrypoint.additional_properties = d
29
+ return mcp_hub_artifact_entrypoint
30
+
31
+ @property
32
+ def additional_keys(self) -> list[str]:
33
+ return list(self.additional_properties.keys())
34
+
35
+ def __getitem__(self, key: str) -> Any:
36
+ return self.additional_properties[key]
37
+
38
+ def __setitem__(self, key: str, value: Any) -> None:
39
+ self.additional_properties[key] = value
40
+
41
+ def __delitem__(self, key: str) -> None:
42
+ del self.additional_properties[key]
43
+
44
+ def __contains__(self, key: str) -> bool:
45
+ return key in self.additional_properties
@@ -0,0 +1,45 @@
1
+ from typing import Any, TypeVar
2
+
3
+ from attrs import define as _attrs_define
4
+ from attrs import field as _attrs_field
5
+
6
+ T = TypeVar("T", bound="MCPHubArtifactForm")
7
+
8
+
9
+ @_attrs_define
10
+ class MCPHubArtifactForm:
11
+ """Form of the artifact"""
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
+ if not src_dict:
24
+ return None
25
+ d = src_dict.copy()
26
+ mcp_hub_artifact_form = cls()
27
+
28
+ mcp_hub_artifact_form.additional_properties = d
29
+ return mcp_hub_artifact_form
30
+
31
+ @property
32
+ def additional_keys(self) -> list[str]:
33
+ return list(self.additional_properties.keys())
34
+
35
+ def __getitem__(self, key: str) -> Any:
36
+ return self.additional_properties[key]
37
+
38
+ def __setitem__(self, key: str, value: Any) -> None:
39
+ self.additional_properties[key] = value
40
+
41
+ def __delitem__(self, key: str) -> None:
42
+ del self.additional_properties[key]
43
+
44
+ def __contains__(self, key: str) -> bool:
45
+ return key in self.additional_properties
@@ -32,7 +32,6 @@ class ModelSpec:
32
32
  runtime (Union[Unset, Runtime]): Set of configurations for a deployment
33
33
  sandbox (Union[Unset, bool]): Sandbox mode
34
34
  serverless_config (Union[Unset, ServerlessConfig]): Configuration for a serverless deployment
35
- knowledgebase (Union[Unset, str]): Knowledgebase Name
36
35
  """
37
36
 
38
37
  configurations: Union[Unset, "CoreSpecConfigurations"] = UNSET
@@ -45,7 +44,6 @@ class ModelSpec:
45
44
  runtime: Union[Unset, "Runtime"] = UNSET
46
45
  sandbox: Union[Unset, bool] = UNSET
47
46
  serverless_config: Union[Unset, "ServerlessConfig"] = UNSET
48
- knowledgebase: Union[Unset, str] = UNSET
49
47
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
50
48
 
51
49
  def to_dict(self) -> dict[str, Any]:
@@ -110,8 +108,6 @@ class ModelSpec:
110
108
  elif self.serverless_config and isinstance(self.serverless_config, dict):
111
109
  serverless_config = self.serverless_config
112
110
 
113
- knowledgebase = self.knowledgebase
114
-
115
111
  field_dict: dict[str, Any] = {}
116
112
  field_dict.update(self.additional_properties)
117
113
  field_dict.update({})
@@ -135,8 +131,6 @@ class ModelSpec:
135
131
  field_dict["sandbox"] = sandbox
136
132
  if serverless_config is not UNSET:
137
133
  field_dict["serverlessConfig"] = serverless_config
138
- if knowledgebase is not UNSET:
139
- field_dict["knowledgebase"] = knowledgebase
140
134
 
141
135
  return field_dict
142
136
 
@@ -202,8 +196,6 @@ class ModelSpec:
202
196
  else:
203
197
  serverless_config = ServerlessConfig.from_dict(_serverless_config)
204
198
 
205
- knowledgebase = d.pop("knowledgebase", UNSET)
206
-
207
199
  model_spec = cls(
208
200
  configurations=configurations,
209
201
  enabled=enabled,
@@ -215,7 +207,6 @@ class ModelSpec:
215
207
  runtime=runtime,
216
208
  sandbox=sandbox,
217
209
  serverless_config=serverless_config,
218
- knowledgebase=knowledgebase,
219
210
  )
220
211
 
221
212
  model_spec.additional_properties = d