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,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": "delete",
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,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