beamlit 0.0.56rc107__py3-none-any.whl → 0.0.57__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 (92) hide show
  1. beamlit/agents/chain.py +0 -2
  2. beamlit/agents/chat.py +20 -8
  3. beamlit/agents/decorator.py +112 -99
  4. beamlit/agents/thread.py +5 -9
  5. beamlit/api/agents/delete_agent.py +1 -22
  6. beamlit/api/agents/get_agent.py +1 -22
  7. beamlit/api/agents/get_agent_metrics.py +13 -34
  8. beamlit/api/agents/get_agent_trace_ids.py +44 -14
  9. beamlit/api/agents/{list_agent_history.py → list_agent_revisions.py} +21 -17
  10. beamlit/api/agents/list_agents.py +4 -36
  11. beamlit/api/default/get_trace_ids.py +0 -15
  12. beamlit/api/default/list_mcp_hub_definitions.py +12 -12
  13. beamlit/api/functions/delete_function.py +1 -22
  14. beamlit/api/functions/get_function.py +1 -22
  15. beamlit/api/functions/get_function_metrics.py +13 -34
  16. beamlit/api/functions/get_function_trace_ids.py +44 -14
  17. beamlit/api/functions/{create_function_release.py → list_function_revisions.py} +26 -18
  18. beamlit/api/functions/list_functions.py +4 -36
  19. beamlit/api/knowledgebases/create_knowledgebase.py +4 -4
  20. beamlit/api/knowledgebases/delete_knowledgebase.py +5 -26
  21. beamlit/api/knowledgebases/get_knowledgebase.py +1 -22
  22. beamlit/api/{environments/get_environment_metrics.py → knowledgebases/list_knowledgebase_revisions.py} +34 -34
  23. beamlit/api/knowledgebases/list_knowledgebases.py +4 -36
  24. beamlit/api/models/create_model.py +4 -8
  25. beamlit/api/models/delete_model.py +1 -22
  26. beamlit/api/models/get_model.py +1 -22
  27. beamlit/api/models/get_model_metrics.py +13 -34
  28. beamlit/api/models/get_model_trace_ids.py +44 -14
  29. beamlit/api/models/{release_model.py → list_model_revisions.py} +26 -22
  30. beamlit/api/models/list_models.py +4 -36
  31. beamlit/api/models/update_model.py +4 -8
  32. beamlit/authentication/authentication.py +11 -8
  33. beamlit/authentication/clientcredentials.py +15 -28
  34. beamlit/authentication/credentials.py +2 -7
  35. beamlit/common/settings.py +1 -4
  36. beamlit/deploy/deploy.py +15 -9
  37. beamlit/functions/common.py +16 -16
  38. beamlit/functions/local/local.py +4 -5
  39. beamlit/functions/mcp/client.py +96 -0
  40. beamlit/functions/mcp/mcp.py +56 -46
  41. beamlit/functions/remote/remote.py +9 -11
  42. beamlit/models/__init__.py +8 -38
  43. beamlit/models/agent.py +6 -6
  44. beamlit/models/function.py +6 -6
  45. beamlit/models/knowledgebase.py +6 -6
  46. beamlit/models/last_n_requests_metric.py +0 -9
  47. beamlit/models/model.py +7 -7
  48. beamlit/models/{resource_environment_metrics.py → resource_metrics.py} +20 -26
  49. beamlit/models/{resource_environment_metrics_request_total_per_code.py → resource_metrics_request_total_per_code.py} +5 -5
  50. beamlit/models/{resource_environment_metrics_rps_per_code.py → resource_metrics_rps_per_code.py} +5 -5
  51. beamlit/models/{model_release.py → revision_metadata.py} +20 -20
  52. beamlit/models/runtime.py +2 -2
  53. beamlit/models/workspace.py +0 -9
  54. beamlit/run.py +3 -7
  55. beamlit/serve/app.py +4 -8
  56. {beamlit-0.0.56rc107.dist-info → beamlit-0.0.57.dist-info}/METADATA +2 -1
  57. {beamlit-0.0.56rc107.dist-info → beamlit-0.0.57.dist-info}/RECORD +63 -91
  58. beamlit/api/agents/create_agent_release.py +0 -146
  59. beamlit/api/agents/delete_agent_history.py +0 -155
  60. beamlit/api/agents/get_agent_history.py +0 -155
  61. beamlit/api/agents/put_agent_history.py +0 -181
  62. beamlit/api/environments/__init__.py +0 -0
  63. beamlit/api/environments/create_environment.py +0 -167
  64. beamlit/api/environments/delete_environment.py +0 -154
  65. beamlit/api/environments/get_environment.py +0 -154
  66. beamlit/api/environments/list_environments.py +0 -139
  67. beamlit/api/environments/update_environment.py +0 -180
  68. beamlit/api/generation/__init__.py +0 -0
  69. beamlit/api/generation/run_information_generation_agent.py +0 -168
  70. beamlit/api/history/__init__.py +0 -0
  71. beamlit/api/history/get_agents_history.py +0 -155
  72. beamlit/api/history/list_agents_history.py +0 -131
  73. beamlit/models/agent_history.py +0 -167
  74. beamlit/models/agent_history_event.py +0 -133
  75. beamlit/models/agent_information_request.py +0 -63
  76. beamlit/models/agent_information_response.py +0 -79
  77. beamlit/models/agent_release.py +0 -70
  78. beamlit/models/environment.py +0 -96
  79. beamlit/models/environment_metadata.py +0 -148
  80. beamlit/models/environment_metrics.py +0 -77
  81. beamlit/models/environment_spec.py +0 -63
  82. beamlit/models/function_release.py +0 -70
  83. beamlit/models/knowledgebase_release.py +0 -70
  84. beamlit/models/mcp_hub_artifact.py +0 -188
  85. beamlit/models/mcp_hub_artifact_entrypoint.py +0 -45
  86. beamlit/models/mcp_hub_artifact_form.py +0 -45
  87. /beamlit/api/agents/{get_agent_environment_logs.py → get_agent_logs.py} +0 -0
  88. /beamlit/api/functions/{get_function_environment_logs.py → get_function_logs.py} +0 -0
  89. /beamlit/api/models/{get_model_environment_logs.py → get_model_logs.py} +0 -0
  90. {beamlit-0.0.56rc107.dist-info → beamlit-0.0.57.dist-info}/WHEEL +0 -0
  91. {beamlit-0.0.56rc107.dist-info → beamlit-0.0.57.dist-info}/entry_points.txt +0 -0
  92. {beamlit-0.0.56rc107.dist-info → beamlit-0.0.57.dist-info}/licenses/LICENSE +0 -0
@@ -1,155 +0,0 @@
1
- from http import HTTPStatus
2
- from typing import Any, Optional, Union
3
-
4
- import httpx
5
-
6
- from ... import errors
7
- from ...client import AuthenticatedClient, Client
8
- from ...models.agent_history import AgentHistory
9
- from ...types import Response
10
-
11
-
12
- def _get_kwargs(
13
- agent_name: str,
14
- request_id: str,
15
- ) -> dict[str, Any]:
16
- _kwargs: dict[str, Any] = {
17
- "method": "get",
18
- "url": f"/agents/{agent_name}/history/{request_id}",
19
- }
20
-
21
- return _kwargs
22
-
23
-
24
- def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[AgentHistory]:
25
- if response.status_code == 200:
26
- response_200 = AgentHistory.from_dict(response.json())
27
-
28
- return response_200
29
- if client.raise_on_unexpected_status:
30
- raise errors.UnexpectedStatus(response.status_code, response.content)
31
- else:
32
- return None
33
-
34
-
35
- def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[AgentHistory]:
36
- return Response(
37
- status_code=HTTPStatus(response.status_code),
38
- content=response.content,
39
- headers=response.headers,
40
- parsed=_parse_response(client=client, response=response),
41
- )
42
-
43
-
44
- def sync_detailed(
45
- agent_name: str,
46
- request_id: str,
47
- *,
48
- client: AuthenticatedClient,
49
- ) -> Response[AgentHistory]:
50
- """
51
- Args:
52
- agent_name (str):
53
- request_id (str):
54
-
55
- Raises:
56
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
57
- httpx.TimeoutException: If the request takes longer than Client.timeout.
58
-
59
- Returns:
60
- Response[AgentHistory]
61
- """
62
-
63
- kwargs = _get_kwargs(
64
- agent_name=agent_name,
65
- request_id=request_id,
66
- )
67
-
68
- response = client.get_httpx_client().request(
69
- **kwargs,
70
- )
71
-
72
- return _build_response(client=client, response=response)
73
-
74
-
75
- def sync(
76
- agent_name: str,
77
- request_id: str,
78
- *,
79
- client: AuthenticatedClient,
80
- ) -> Optional[AgentHistory]:
81
- """
82
- Args:
83
- agent_name (str):
84
- request_id (str):
85
-
86
- Raises:
87
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
88
- httpx.TimeoutException: If the request takes longer than Client.timeout.
89
-
90
- Returns:
91
- AgentHistory
92
- """
93
-
94
- return sync_detailed(
95
- agent_name=agent_name,
96
- request_id=request_id,
97
- client=client,
98
- ).parsed
99
-
100
-
101
- async def asyncio_detailed(
102
- agent_name: str,
103
- request_id: str,
104
- *,
105
- client: AuthenticatedClient,
106
- ) -> Response[AgentHistory]:
107
- """
108
- Args:
109
- agent_name (str):
110
- request_id (str):
111
-
112
- Raises:
113
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
114
- httpx.TimeoutException: If the request takes longer than Client.timeout.
115
-
116
- Returns:
117
- Response[AgentHistory]
118
- """
119
-
120
- kwargs = _get_kwargs(
121
- agent_name=agent_name,
122
- request_id=request_id,
123
- )
124
-
125
- response = await client.get_async_httpx_client().request(**kwargs)
126
-
127
- return _build_response(client=client, response=response)
128
-
129
-
130
- async def asyncio(
131
- agent_name: str,
132
- request_id: str,
133
- *,
134
- client: AuthenticatedClient,
135
- ) -> Optional[AgentHistory]:
136
- """
137
- Args:
138
- agent_name (str):
139
- request_id (str):
140
-
141
- Raises:
142
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
143
- httpx.TimeoutException: If the request takes longer than Client.timeout.
144
-
145
- Returns:
146
- AgentHistory
147
- """
148
-
149
- return (
150
- await asyncio_detailed(
151
- agent_name=agent_name,
152
- request_id=request_id,
153
- client=client,
154
- )
155
- ).parsed
@@ -1,181 +0,0 @@
1
- from http import HTTPStatus
2
- from typing import Any, Optional, Union
3
-
4
- import httpx
5
-
6
- from ... import errors
7
- from ...client import AuthenticatedClient, Client
8
- from ...models.agent_history import AgentHistory
9
- from ...types import Response
10
-
11
-
12
- def _get_kwargs(
13
- agent_name: str,
14
- request_id: str,
15
- *,
16
- body: AgentHistory,
17
- ) -> dict[str, Any]:
18
- headers: dict[str, Any] = {}
19
-
20
- _kwargs: dict[str, Any] = {
21
- "method": "put",
22
- "url": f"/agents/{agent_name}/history/{request_id}",
23
- }
24
-
25
- _body = body.to_dict()
26
-
27
- _kwargs["json"] = _body
28
- headers["Content-Type"] = "application/json"
29
-
30
- _kwargs["headers"] = headers
31
- return _kwargs
32
-
33
-
34
- def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[AgentHistory]:
35
- if response.status_code == 200:
36
- response_200 = AgentHistory.from_dict(response.json())
37
-
38
- return response_200
39
- if client.raise_on_unexpected_status:
40
- raise errors.UnexpectedStatus(response.status_code, response.content)
41
- else:
42
- return None
43
-
44
-
45
- def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[AgentHistory]:
46
- return Response(
47
- status_code=HTTPStatus(response.status_code),
48
- content=response.content,
49
- headers=response.headers,
50
- parsed=_parse_response(client=client, response=response),
51
- )
52
-
53
-
54
- def sync_detailed(
55
- agent_name: str,
56
- request_id: str,
57
- *,
58
- client: AuthenticatedClient,
59
- body: AgentHistory,
60
- ) -> Response[AgentHistory]:
61
- """Update agent's history by request ID
62
-
63
- Args:
64
- agent_name (str):
65
- request_id (str):
66
- body (AgentHistory): Agent deployment history
67
-
68
- Raises:
69
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
70
- httpx.TimeoutException: If the request takes longer than Client.timeout.
71
-
72
- Returns:
73
- Response[AgentHistory]
74
- """
75
-
76
- kwargs = _get_kwargs(
77
- agent_name=agent_name,
78
- request_id=request_id,
79
- body=body,
80
- )
81
-
82
- response = client.get_httpx_client().request(
83
- **kwargs,
84
- )
85
-
86
- return _build_response(client=client, response=response)
87
-
88
-
89
- def sync(
90
- agent_name: str,
91
- request_id: str,
92
- *,
93
- client: AuthenticatedClient,
94
- body: AgentHistory,
95
- ) -> Optional[AgentHistory]:
96
- """Update agent's history by request ID
97
-
98
- Args:
99
- agent_name (str):
100
- request_id (str):
101
- body (AgentHistory): Agent deployment history
102
-
103
- Raises:
104
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
105
- httpx.TimeoutException: If the request takes longer than Client.timeout.
106
-
107
- Returns:
108
- AgentHistory
109
- """
110
-
111
- return sync_detailed(
112
- agent_name=agent_name,
113
- request_id=request_id,
114
- client=client,
115
- body=body,
116
- ).parsed
117
-
118
-
119
- async def asyncio_detailed(
120
- agent_name: str,
121
- request_id: str,
122
- *,
123
- client: AuthenticatedClient,
124
- body: AgentHistory,
125
- ) -> Response[AgentHistory]:
126
- """Update agent's history by request ID
127
-
128
- Args:
129
- agent_name (str):
130
- request_id (str):
131
- body (AgentHistory): Agent deployment history
132
-
133
- Raises:
134
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
135
- httpx.TimeoutException: If the request takes longer than Client.timeout.
136
-
137
- Returns:
138
- Response[AgentHistory]
139
- """
140
-
141
- kwargs = _get_kwargs(
142
- agent_name=agent_name,
143
- request_id=request_id,
144
- body=body,
145
- )
146
-
147
- response = await client.get_async_httpx_client().request(**kwargs)
148
-
149
- return _build_response(client=client, response=response)
150
-
151
-
152
- async def asyncio(
153
- agent_name: str,
154
- request_id: str,
155
- *,
156
- client: AuthenticatedClient,
157
- body: AgentHistory,
158
- ) -> Optional[AgentHistory]:
159
- """Update agent's history by request ID
160
-
161
- Args:
162
- agent_name (str):
163
- request_id (str):
164
- body (AgentHistory): Agent deployment history
165
-
166
- Raises:
167
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
168
- httpx.TimeoutException: If the request takes longer than Client.timeout.
169
-
170
- Returns:
171
- AgentHistory
172
- """
173
-
174
- return (
175
- await asyncio_detailed(
176
- agent_name=agent_name,
177
- request_id=request_id,
178
- client=client,
179
- body=body,
180
- )
181
- ).parsed
File without changes
@@ -1,167 +0,0 @@
1
- from http import HTTPStatus
2
- from typing import Any, Optional, Union
3
-
4
- import httpx
5
-
6
- from ... import errors
7
- from ...client import AuthenticatedClient, Client
8
- from ...models.environment import Environment
9
- from ...types import Response
10
-
11
-
12
- def _get_kwargs(
13
- *,
14
- body: Environment,
15
- ) -> dict[str, Any]:
16
- headers: dict[str, Any] = {}
17
-
18
- _kwargs: dict[str, Any] = {
19
- "method": "post",
20
- "url": "/environments",
21
- }
22
-
23
- _body = body.to_dict()
24
-
25
- _kwargs["json"] = _body
26
- headers["Content-Type"] = "application/json"
27
-
28
- _kwargs["headers"] = headers
29
- return _kwargs
30
-
31
-
32
- def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Environment]:
33
- if response.status_code == 200:
34
- response_200 = Environment.from_dict(response.json())
35
-
36
- return response_200
37
- if client.raise_on_unexpected_status:
38
- raise errors.UnexpectedStatus(response.status_code, response.content)
39
- else:
40
- return None
41
-
42
-
43
- def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Environment]:
44
- return Response(
45
- status_code=HTTPStatus(response.status_code),
46
- content=response.content,
47
- headers=response.headers,
48
- parsed=_parse_response(client=client, response=response),
49
- )
50
-
51
-
52
- def sync_detailed(
53
- *,
54
- client: AuthenticatedClient,
55
- body: Environment,
56
- ) -> Response[Environment]:
57
- """Create environment
58
-
59
- Creates an environment.
60
-
61
- Args:
62
- body (Environment): Environment on which deployments will be made (e.g. development,
63
- production), enforcing multiple policies at once.
64
-
65
- Raises:
66
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
67
- httpx.TimeoutException: If the request takes longer than Client.timeout.
68
-
69
- Returns:
70
- Response[Environment]
71
- """
72
-
73
- kwargs = _get_kwargs(
74
- body=body,
75
- )
76
-
77
- response = client.get_httpx_client().request(
78
- **kwargs,
79
- )
80
-
81
- return _build_response(client=client, response=response)
82
-
83
-
84
- def sync(
85
- *,
86
- client: AuthenticatedClient,
87
- body: Environment,
88
- ) -> Optional[Environment]:
89
- """Create environment
90
-
91
- Creates an environment.
92
-
93
- Args:
94
- body (Environment): Environment on which deployments will be made (e.g. development,
95
- production), enforcing multiple policies at once.
96
-
97
- Raises:
98
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
99
- httpx.TimeoutException: If the request takes longer than Client.timeout.
100
-
101
- Returns:
102
- Environment
103
- """
104
-
105
- return sync_detailed(
106
- client=client,
107
- body=body,
108
- ).parsed
109
-
110
-
111
- async def asyncio_detailed(
112
- *,
113
- client: AuthenticatedClient,
114
- body: Environment,
115
- ) -> Response[Environment]:
116
- """Create environment
117
-
118
- Creates an environment.
119
-
120
- Args:
121
- body (Environment): Environment on which deployments will be made (e.g. development,
122
- production), enforcing multiple policies at once.
123
-
124
- Raises:
125
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
126
- httpx.TimeoutException: If the request takes longer than Client.timeout.
127
-
128
- Returns:
129
- Response[Environment]
130
- """
131
-
132
- kwargs = _get_kwargs(
133
- body=body,
134
- )
135
-
136
- response = await client.get_async_httpx_client().request(**kwargs)
137
-
138
- return _build_response(client=client, response=response)
139
-
140
-
141
- async def asyncio(
142
- *,
143
- client: AuthenticatedClient,
144
- body: Environment,
145
- ) -> Optional[Environment]:
146
- """Create environment
147
-
148
- Creates an environment.
149
-
150
- Args:
151
- body (Environment): Environment on which deployments will be made (e.g. development,
152
- production), enforcing multiple policies at once.
153
-
154
- Raises:
155
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
156
- httpx.TimeoutException: If the request takes longer than Client.timeout.
157
-
158
- Returns:
159
- Environment
160
- """
161
-
162
- return (
163
- await asyncio_detailed(
164
- client=client,
165
- body=body,
166
- )
167
- ).parsed
@@ -1,154 +0,0 @@
1
- from http import HTTPStatus
2
- from typing import Any, Optional, Union
3
-
4
- import httpx
5
-
6
- from ... import errors
7
- from ...client import AuthenticatedClient, Client
8
- from ...models.environment import Environment
9
- from ...types import Response
10
-
11
-
12
- def _get_kwargs(
13
- environment_name: str,
14
- ) -> dict[str, Any]:
15
- _kwargs: dict[str, Any] = {
16
- "method": "delete",
17
- "url": f"/environments/{environment_name}",
18
- }
19
-
20
- return _kwargs
21
-
22
-
23
- def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Environment]:
24
- if response.status_code == 200:
25
- response_200 = Environment.from_dict(response.json())
26
-
27
- return response_200
28
- if client.raise_on_unexpected_status:
29
- raise errors.UnexpectedStatus(response.status_code, response.content)
30
- else:
31
- return None
32
-
33
-
34
- def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Environment]:
35
- return Response(
36
- status_code=HTTPStatus(response.status_code),
37
- content=response.content,
38
- headers=response.headers,
39
- parsed=_parse_response(client=client, response=response),
40
- )
41
-
42
-
43
- def sync_detailed(
44
- environment_name: str,
45
- *,
46
- client: AuthenticatedClient,
47
- ) -> Response[Environment]:
48
- """Delete environment
49
-
50
- Deletes an environment by name.
51
-
52
- Args:
53
- environment_name (str):
54
-
55
- Raises:
56
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
57
- httpx.TimeoutException: If the request takes longer than Client.timeout.
58
-
59
- Returns:
60
- Response[Environment]
61
- """
62
-
63
- kwargs = _get_kwargs(
64
- environment_name=environment_name,
65
- )
66
-
67
- response = client.get_httpx_client().request(
68
- **kwargs,
69
- )
70
-
71
- return _build_response(client=client, response=response)
72
-
73
-
74
- def sync(
75
- environment_name: str,
76
- *,
77
- client: AuthenticatedClient,
78
- ) -> Optional[Environment]:
79
- """Delete environment
80
-
81
- Deletes an environment by name.
82
-
83
- Args:
84
- environment_name (str):
85
-
86
- Raises:
87
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
88
- httpx.TimeoutException: If the request takes longer than Client.timeout.
89
-
90
- Returns:
91
- Environment
92
- """
93
-
94
- return sync_detailed(
95
- environment_name=environment_name,
96
- client=client,
97
- ).parsed
98
-
99
-
100
- async def asyncio_detailed(
101
- environment_name: str,
102
- *,
103
- client: AuthenticatedClient,
104
- ) -> Response[Environment]:
105
- """Delete environment
106
-
107
- Deletes an environment by name.
108
-
109
- Args:
110
- environment_name (str):
111
-
112
- Raises:
113
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
114
- httpx.TimeoutException: If the request takes longer than Client.timeout.
115
-
116
- Returns:
117
- Response[Environment]
118
- """
119
-
120
- kwargs = _get_kwargs(
121
- environment_name=environment_name,
122
- )
123
-
124
- response = await client.get_async_httpx_client().request(**kwargs)
125
-
126
- return _build_response(client=client, response=response)
127
-
128
-
129
- async def asyncio(
130
- environment_name: str,
131
- *,
132
- client: AuthenticatedClient,
133
- ) -> Optional[Environment]:
134
- """Delete environment
135
-
136
- Deletes an environment by name.
137
-
138
- Args:
139
- environment_name (str):
140
-
141
- Raises:
142
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
143
- httpx.TimeoutException: If the request takes longer than Client.timeout.
144
-
145
- Returns:
146
- Environment
147
- """
148
-
149
- return (
150
- await asyncio_detailed(
151
- environment_name=environment_name,
152
- client=client,
153
- )
154
- ).parsed