beamlit 0.0.57rc109__py3-none-any.whl → 0.0.57rc110__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 (86) hide show
  1. beamlit/agents/chain.py +0 -2
  2. beamlit/agents/chat.py +1 -8
  3. beamlit/agents/decorator.py +5 -15
  4. beamlit/api/agents/delete_agent.py +1 -22
  5. beamlit/api/agents/get_agent.py +1 -22
  6. beamlit/api/agents/get_agent_metrics.py +13 -34
  7. beamlit/api/agents/get_agent_trace_ids.py +44 -14
  8. beamlit/api/agents/{list_agent_history.py → list_agent_revisions.py} +21 -17
  9. beamlit/api/agents/list_agents.py +4 -36
  10. beamlit/api/default/get_trace_ids.py +0 -15
  11. beamlit/api/default/list_mcp_hub_definitions.py +12 -12
  12. beamlit/api/functions/delete_function.py +1 -22
  13. beamlit/api/functions/get_function.py +1 -22
  14. beamlit/api/functions/get_function_metrics.py +13 -34
  15. beamlit/api/functions/get_function_trace_ids.py +44 -14
  16. beamlit/api/functions/{create_function_release.py → list_function_revisions.py} +26 -18
  17. beamlit/api/functions/list_functions.py +4 -36
  18. beamlit/api/knowledgebases/create_knowledgebase.py +4 -4
  19. beamlit/api/knowledgebases/delete_knowledgebase.py +5 -26
  20. beamlit/api/knowledgebases/get_knowledgebase.py +1 -22
  21. beamlit/api/{environments/get_environment_metrics.py → knowledgebases/list_knowledgebase_revisions.py} +34 -34
  22. beamlit/api/knowledgebases/list_knowledgebases.py +4 -36
  23. beamlit/api/models/create_model.py +4 -8
  24. beamlit/api/models/delete_model.py +1 -22
  25. beamlit/api/models/get_model.py +1 -22
  26. beamlit/api/models/get_model_metrics.py +13 -34
  27. beamlit/api/models/get_model_trace_ids.py +44 -14
  28. beamlit/api/models/{release_model.py → list_model_revisions.py} +26 -22
  29. beamlit/api/models/list_models.py +4 -36
  30. beamlit/api/models/update_model.py +4 -8
  31. beamlit/authentication/credentials.py +2 -7
  32. beamlit/common/settings.py +1 -4
  33. beamlit/deploy/deploy.py +5 -8
  34. beamlit/functions/mcp/mcp.py +1 -3
  35. beamlit/functions/remote/remote.py +1 -5
  36. beamlit/models/__init__.py +8 -38
  37. beamlit/models/agent.py +6 -6
  38. beamlit/models/function.py +6 -6
  39. beamlit/models/knowledgebase.py +6 -6
  40. beamlit/models/last_n_requests_metric.py +0 -9
  41. beamlit/models/model.py +7 -7
  42. beamlit/models/{resource_environment_metrics.py → resource_metrics.py} +20 -26
  43. beamlit/models/{resource_environment_metrics_request_total_per_code.py → resource_metrics_request_total_per_code.py} +5 -5
  44. beamlit/models/{resource_environment_metrics_rps_per_code.py → resource_metrics_rps_per_code.py} +5 -5
  45. beamlit/models/{model_release.py → revision_metadata.py} +20 -20
  46. beamlit/models/runtime.py +2 -2
  47. beamlit/models/workspace.py +0 -9
  48. beamlit/run.py +1 -4
  49. beamlit/serve/app.py +4 -8
  50. {beamlit-0.0.57rc109.dist-info → beamlit-0.0.57rc110.dist-info}/METADATA +1 -1
  51. {beamlit-0.0.57rc109.dist-info → beamlit-0.0.57rc110.dist-info}/RECORD +57 -86
  52. beamlit/api/agents/create_agent_release.py +0 -146
  53. beamlit/api/agents/delete_agent_history.py +0 -155
  54. beamlit/api/agents/get_agent_history.py +0 -155
  55. beamlit/api/agents/put_agent_history.py +0 -181
  56. beamlit/api/environments/__init__.py +0 -0
  57. beamlit/api/environments/create_environment.py +0 -167
  58. beamlit/api/environments/delete_environment.py +0 -154
  59. beamlit/api/environments/get_environment.py +0 -154
  60. beamlit/api/environments/list_environments.py +0 -139
  61. beamlit/api/environments/update_environment.py +0 -180
  62. beamlit/api/generation/__init__.py +0 -0
  63. beamlit/api/generation/run_information_generation_agent.py +0 -168
  64. beamlit/api/history/__init__.py +0 -0
  65. beamlit/api/history/get_agents_history.py +0 -155
  66. beamlit/api/history/list_agents_history.py +0 -131
  67. beamlit/models/agent_history.py +0 -167
  68. beamlit/models/agent_history_event.py +0 -133
  69. beamlit/models/agent_information_request.py +0 -63
  70. beamlit/models/agent_information_response.py +0 -79
  71. beamlit/models/agent_release.py +0 -70
  72. beamlit/models/environment.py +0 -96
  73. beamlit/models/environment_metadata.py +0 -148
  74. beamlit/models/environment_metrics.py +0 -77
  75. beamlit/models/environment_spec.py +0 -63
  76. beamlit/models/function_release.py +0 -70
  77. beamlit/models/knowledgebase_release.py +0 -70
  78. beamlit/models/mcp_hub_artifact.py +0 -188
  79. beamlit/models/mcp_hub_artifact_entrypoint.py +0 -45
  80. beamlit/models/mcp_hub_artifact_form.py +0 -45
  81. /beamlit/api/agents/{get_agent_environment_logs.py → get_agent_logs.py} +0 -0
  82. /beamlit/api/functions/{get_function_environment_logs.py → get_function_logs.py} +0 -0
  83. /beamlit/api/models/{get_model_environment_logs.py → get_model_logs.py} +0 -0
  84. {beamlit-0.0.57rc109.dist-info → beamlit-0.0.57rc110.dist-info}/WHEEL +0 -0
  85. {beamlit-0.0.57rc109.dist-info → beamlit-0.0.57rc110.dist-info}/entry_points.txt +0 -0
  86. {beamlit-0.0.57rc109.dist-info → beamlit-0.0.57rc110.dist-info}/licenses/LICENSE +0 -0
@@ -1,63 +0,0 @@
1
- from typing import 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
- T = TypeVar("T", bound="EnvironmentSpec")
9
-
10
-
11
- @_attrs_define
12
- class EnvironmentSpec:
13
- """Environment specification
14
-
15
- Attributes:
16
- policies (Union[Unset, list[str]]):
17
- """
18
-
19
- policies: Union[Unset, list[str]] = UNSET
20
- additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
21
-
22
- def to_dict(self) -> dict[str, Any]:
23
- policies: Union[Unset, list[str]] = UNSET
24
- if not isinstance(self.policies, Unset):
25
- policies = self.policies
26
-
27
- field_dict: dict[str, Any] = {}
28
- field_dict.update(self.additional_properties)
29
- field_dict.update({})
30
- if policies is not UNSET:
31
- field_dict["policies"] = policies
32
-
33
- return field_dict
34
-
35
- @classmethod
36
- def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T:
37
- if not src_dict:
38
- return None
39
- d = src_dict.copy()
40
- policies = cast(list[str], d.pop("policies", UNSET))
41
-
42
- environment_spec = cls(
43
- policies=policies,
44
- )
45
-
46
- environment_spec.additional_properties = d
47
- return environment_spec
48
-
49
- @property
50
- def additional_keys(self) -> list[str]:
51
- return list(self.additional_properties.keys())
52
-
53
- def __getitem__(self, key: str) -> Any:
54
- return self.additional_properties[key]
55
-
56
- def __setitem__(self, key: str, value: Any) -> None:
57
- self.additional_properties[key] = value
58
-
59
- def __delitem__(self, key: str) -> None:
60
- del self.additional_properties[key]
61
-
62
- def __contains__(self, key: str) -> bool:
63
- return key in self.additional_properties
@@ -1,70 +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="FunctionRelease")
9
-
10
-
11
- @_attrs_define
12
- class FunctionRelease:
13
- """Function release, used to deploy a function from one environment to another
14
-
15
- Attributes:
16
- from_ (Union[Unset, str]): Origin environment from which the function is released
17
- to (Union[Unset, str]): Destination environment to which the function is released
18
- """
19
-
20
- from_: Union[Unset, str] = UNSET
21
- to: Union[Unset, str] = UNSET
22
- additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
23
-
24
- def to_dict(self) -> dict[str, Any]:
25
- from_ = self.from_
26
-
27
- to = self.to
28
-
29
- field_dict: dict[str, Any] = {}
30
- field_dict.update(self.additional_properties)
31
- field_dict.update({})
32
- if from_ is not UNSET:
33
- field_dict["from"] = from_
34
- if to is not UNSET:
35
- field_dict["to"] = to
36
-
37
- return field_dict
38
-
39
- @classmethod
40
- def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T:
41
- if not src_dict:
42
- return None
43
- d = src_dict.copy()
44
- from_ = d.pop("from", UNSET)
45
-
46
- to = d.pop("to", UNSET)
47
-
48
- function_release = cls(
49
- from_=from_,
50
- to=to,
51
- )
52
-
53
- function_release.additional_properties = d
54
- return function_release
55
-
56
- @property
57
- def additional_keys(self) -> list[str]:
58
- return list(self.additional_properties.keys())
59
-
60
- def __getitem__(self, key: str) -> Any:
61
- return self.additional_properties[key]
62
-
63
- def __setitem__(self, key: str, value: Any) -> None:
64
- self.additional_properties[key] = value
65
-
66
- def __delitem__(self, key: str) -> None:
67
- del self.additional_properties[key]
68
-
69
- def __contains__(self, key: str) -> bool:
70
- return key in self.additional_properties
@@ -1,70 +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="KnowledgebaseRelease")
9
-
10
-
11
- @_attrs_define
12
- class KnowledgebaseRelease:
13
- """Knowledgebase release, used to deploy a function from one environment to another
14
-
15
- Attributes:
16
- from_ (Union[Unset, str]): Origin environment from which the function is released
17
- to (Union[Unset, str]): Destination environment to which the function is released
18
- """
19
-
20
- from_: Union[Unset, str] = UNSET
21
- to: Union[Unset, str] = UNSET
22
- additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
23
-
24
- def to_dict(self) -> dict[str, Any]:
25
- from_ = self.from_
26
-
27
- to = self.to
28
-
29
- field_dict: dict[str, Any] = {}
30
- field_dict.update(self.additional_properties)
31
- field_dict.update({})
32
- if from_ is not UNSET:
33
- field_dict["from"] = from_
34
- if to is not UNSET:
35
- field_dict["to"] = to
36
-
37
- return field_dict
38
-
39
- @classmethod
40
- def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T:
41
- if not src_dict:
42
- return None
43
- d = src_dict.copy()
44
- from_ = d.pop("from", UNSET)
45
-
46
- to = d.pop("to", UNSET)
47
-
48
- knowledgebase_release = cls(
49
- from_=from_,
50
- to=to,
51
- )
52
-
53
- knowledgebase_release.additional_properties = d
54
- return knowledgebase_release
55
-
56
- @property
57
- def additional_keys(self) -> list[str]:
58
- return list(self.additional_properties.keys())
59
-
60
- def __getitem__(self, key: str) -> Any:
61
- return self.additional_properties[key]
62
-
63
- def __setitem__(self, key: str, value: Any) -> None:
64
- self.additional_properties[key] = value
65
-
66
- def __delitem__(self, key: str) -> None:
67
- del self.additional_properties[key]
68
-
69
- def __contains__(self, key: str) -> bool:
70
- return key in self.additional_properties
@@ -1,188 +0,0 @@
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
@@ -1,45 +0,0 @@
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
@@ -1,45 +0,0 @@
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