beamlit 0.0.57rc108__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 +3 -4
  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.57rc108.dist-info → beamlit-0.0.57rc110.dist-info}/METADATA +1 -1
  51. {beamlit-0.0.57rc108.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.57rc108.dist-info → beamlit-0.0.57rc110.dist-info}/WHEEL +0 -0
  85. {beamlit-0.0.57rc108.dist-info → beamlit-0.0.57rc110.dist-info}/entry_points.txt +0 -0
  86. {beamlit-0.0.57rc108.dist-info → beamlit-0.0.57rc110.dist-info}/licenses/LICENSE +0 -0
@@ -5,7 +5,7 @@ import httpx
5
5
 
6
6
  from ... import errors
7
7
  from ...client import AuthenticatedClient, Client
8
- from ...models.agent_history import AgentHistory
8
+ from ...models.revision_metadata import RevisionMetadata
9
9
  from ...types import Response
10
10
 
11
11
 
@@ -14,7 +14,7 @@ def _get_kwargs(
14
14
  ) -> dict[str, Any]:
15
15
  _kwargs: dict[str, Any] = {
16
16
  "method": "get",
17
- "url": f"/agents/{agent_name}/history",
17
+ "url": f"/agents/{agent_name}/revisions",
18
18
  }
19
19
 
20
20
  return _kwargs
@@ -22,12 +22,12 @@ def _get_kwargs(
22
22
 
23
23
  def _parse_response(
24
24
  *, client: Union[AuthenticatedClient, Client], response: httpx.Response
25
- ) -> Optional[list["AgentHistory"]]:
25
+ ) -> Optional[list["RevisionMetadata"]]:
26
26
  if response.status_code == 200:
27
27
  response_200 = []
28
28
  _response_200 = response.json()
29
29
  for response_200_item_data in _response_200:
30
- response_200_item = AgentHistory.from_dict(response_200_item_data)
30
+ response_200_item = RevisionMetadata.from_dict(response_200_item_data)
31
31
 
32
32
  response_200.append(response_200_item)
33
33
 
@@ -40,7 +40,7 @@ def _parse_response(
40
40
 
41
41
  def _build_response(
42
42
  *, client: Union[AuthenticatedClient, Client], response: httpx.Response
43
- ) -> Response[list["AgentHistory"]]:
43
+ ) -> Response[list["RevisionMetadata"]]:
44
44
  return Response(
45
45
  status_code=HTTPStatus(response.status_code),
46
46
  content=response.content,
@@ -53,8 +53,9 @@ def sync_detailed(
53
53
  agent_name: str,
54
54
  *,
55
55
  client: AuthenticatedClient,
56
- ) -> Response[list["AgentHistory"]]:
57
- """
56
+ ) -> Response[list["RevisionMetadata"]]:
57
+ """List all agent revisions
58
+
58
59
  Args:
59
60
  agent_name (str):
60
61
 
@@ -63,7 +64,7 @@ def sync_detailed(
63
64
  httpx.TimeoutException: If the request takes longer than Client.timeout.
64
65
 
65
66
  Returns:
66
- Response[list['AgentHistory']]
67
+ Response[list['RevisionMetadata']]
67
68
  """
68
69
 
69
70
  kwargs = _get_kwargs(
@@ -81,8 +82,9 @@ def sync(
81
82
  agent_name: str,
82
83
  *,
83
84
  client: AuthenticatedClient,
84
- ) -> Optional[list["AgentHistory"]]:
85
- """
85
+ ) -> Optional[list["RevisionMetadata"]]:
86
+ """List all agent revisions
87
+
86
88
  Args:
87
89
  agent_name (str):
88
90
 
@@ -91,7 +93,7 @@ def sync(
91
93
  httpx.TimeoutException: If the request takes longer than Client.timeout.
92
94
 
93
95
  Returns:
94
- list['AgentHistory']
96
+ list['RevisionMetadata']
95
97
  """
96
98
 
97
99
  return sync_detailed(
@@ -104,8 +106,9 @@ async def asyncio_detailed(
104
106
  agent_name: str,
105
107
  *,
106
108
  client: AuthenticatedClient,
107
- ) -> Response[list["AgentHistory"]]:
108
- """
109
+ ) -> Response[list["RevisionMetadata"]]:
110
+ """List all agent revisions
111
+
109
112
  Args:
110
113
  agent_name (str):
111
114
 
@@ -114,7 +117,7 @@ async def asyncio_detailed(
114
117
  httpx.TimeoutException: If the request takes longer than Client.timeout.
115
118
 
116
119
  Returns:
117
- Response[list['AgentHistory']]
120
+ Response[list['RevisionMetadata']]
118
121
  """
119
122
 
120
123
  kwargs = _get_kwargs(
@@ -130,8 +133,9 @@ async def asyncio(
130
133
  agent_name: str,
131
134
  *,
132
135
  client: AuthenticatedClient,
133
- ) -> Optional[list["AgentHistory"]]:
134
- """
136
+ ) -> Optional[list["RevisionMetadata"]]:
137
+ """List all agent revisions
138
+
135
139
  Args:
136
140
  agent_name (str):
137
141
 
@@ -140,7 +144,7 @@ async def asyncio(
140
144
  httpx.TimeoutException: If the request takes longer than Client.timeout.
141
145
 
142
146
  Returns:
143
- list['AgentHistory']
147
+ list['RevisionMetadata']
144
148
  """
145
149
 
146
150
  return (
@@ -6,23 +6,13 @@ import httpx
6
6
  from ... import errors
7
7
  from ...client import AuthenticatedClient, Client
8
8
  from ...models.agent import Agent
9
- from ...types import UNSET, Response, Unset
9
+ from ...types import Response
10
10
 
11
11
 
12
- def _get_kwargs(
13
- *,
14
- environment: Union[Unset, str] = UNSET,
15
- ) -> dict[str, Any]:
16
- params: dict[str, Any] = {}
17
-
18
- params["environment"] = environment
19
-
20
- params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
21
-
12
+ def _get_kwargs() -> dict[str, Any]:
22
13
  _kwargs: dict[str, Any] = {
23
14
  "method": "get",
24
15
  "url": "/agents",
25
- "params": params,
26
16
  }
27
17
 
28
18
  return _kwargs
@@ -56,13 +46,9 @@ def _build_response(*, client: Union[AuthenticatedClient, Client], response: htt
56
46
  def sync_detailed(
57
47
  *,
58
48
  client: AuthenticatedClient,
59
- environment: Union[Unset, str] = UNSET,
60
49
  ) -> Response[list["Agent"]]:
61
50
  """List all agents
62
51
 
63
- Args:
64
- environment (Union[Unset, str]):
65
-
66
52
  Raises:
67
53
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
68
54
  httpx.TimeoutException: If the request takes longer than Client.timeout.
@@ -71,9 +57,7 @@ def sync_detailed(
71
57
  Response[list['Agent']]
72
58
  """
73
59
 
74
- kwargs = _get_kwargs(
75
- environment=environment,
76
- )
60
+ kwargs = _get_kwargs()
77
61
 
78
62
  response = client.get_httpx_client().request(
79
63
  **kwargs,
@@ -85,13 +69,9 @@ def sync_detailed(
85
69
  def sync(
86
70
  *,
87
71
  client: AuthenticatedClient,
88
- environment: Union[Unset, str] = UNSET,
89
72
  ) -> Optional[list["Agent"]]:
90
73
  """List all agents
91
74
 
92
- Args:
93
- environment (Union[Unset, str]):
94
-
95
75
  Raises:
96
76
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
97
77
  httpx.TimeoutException: If the request takes longer than Client.timeout.
@@ -102,20 +82,15 @@ def sync(
102
82
 
103
83
  return sync_detailed(
104
84
  client=client,
105
- environment=environment,
106
85
  ).parsed
107
86
 
108
87
 
109
88
  async def asyncio_detailed(
110
89
  *,
111
90
  client: AuthenticatedClient,
112
- environment: Union[Unset, str] = UNSET,
113
91
  ) -> Response[list["Agent"]]:
114
92
  """List all agents
115
93
 
116
- Args:
117
- environment (Union[Unset, str]):
118
-
119
94
  Raises:
120
95
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
121
96
  httpx.TimeoutException: If the request takes longer than Client.timeout.
@@ -124,9 +99,7 @@ async def asyncio_detailed(
124
99
  Response[list['Agent']]
125
100
  """
126
101
 
127
- kwargs = _get_kwargs(
128
- environment=environment,
129
- )
102
+ kwargs = _get_kwargs()
130
103
 
131
104
  response = await client.get_async_httpx_client().request(**kwargs)
132
105
 
@@ -136,13 +109,9 @@ async def asyncio_detailed(
136
109
  async def asyncio(
137
110
  *,
138
111
  client: AuthenticatedClient,
139
- environment: Union[Unset, str] = UNSET,
140
112
  ) -> Optional[list["Agent"]]:
141
113
  """List all agents
142
114
 
143
- Args:
144
- environment (Union[Unset, str]):
145
-
146
115
  Raises:
147
116
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
148
117
  httpx.TimeoutException: If the request takes longer than Client.timeout.
@@ -154,6 +123,5 @@ async def asyncio(
154
123
  return (
155
124
  await asyncio_detailed(
156
125
  client=client,
157
- environment=environment,
158
126
  )
159
127
  ).parsed
@@ -13,7 +13,6 @@ def _get_kwargs(
13
13
  *,
14
14
  workload_id: Union[Unset, str] = UNSET,
15
15
  workload_type: Union[Unset, str] = UNSET,
16
- environment: Union[Unset, str] = UNSET,
17
16
  limit: Union[Unset, str] = UNSET,
18
17
  start_time: Union[Unset, str] = UNSET,
19
18
  end_time: Union[Unset, str] = UNSET,
@@ -24,8 +23,6 @@ def _get_kwargs(
24
23
 
25
24
  params["workloadType"] = workload_type
26
25
 
27
- params["environment"] = environment
28
-
29
26
  params["limit"] = limit
30
27
 
31
28
  params["startTime"] = start_time
@@ -72,7 +69,6 @@ def sync_detailed(
72
69
  client: AuthenticatedClient,
73
70
  workload_id: Union[Unset, str] = UNSET,
74
71
  workload_type: Union[Unset, str] = UNSET,
75
- environment: Union[Unset, str] = UNSET,
76
72
  limit: Union[Unset, str] = UNSET,
77
73
  start_time: Union[Unset, str] = UNSET,
78
74
  end_time: Union[Unset, str] = UNSET,
@@ -82,7 +78,6 @@ def sync_detailed(
82
78
  Args:
83
79
  workload_id (Union[Unset, str]):
84
80
  workload_type (Union[Unset, str]):
85
- environment (Union[Unset, str]):
86
81
  limit (Union[Unset, str]):
87
82
  start_time (Union[Unset, str]):
88
83
  end_time (Union[Unset, str]):
@@ -98,7 +93,6 @@ def sync_detailed(
98
93
  kwargs = _get_kwargs(
99
94
  workload_id=workload_id,
100
95
  workload_type=workload_type,
101
- environment=environment,
102
96
  limit=limit,
103
97
  start_time=start_time,
104
98
  end_time=end_time,
@@ -116,7 +110,6 @@ def sync(
116
110
  client: AuthenticatedClient,
117
111
  workload_id: Union[Unset, str] = UNSET,
118
112
  workload_type: Union[Unset, str] = UNSET,
119
- environment: Union[Unset, str] = UNSET,
120
113
  limit: Union[Unset, str] = UNSET,
121
114
  start_time: Union[Unset, str] = UNSET,
122
115
  end_time: Union[Unset, str] = UNSET,
@@ -126,7 +119,6 @@ def sync(
126
119
  Args:
127
120
  workload_id (Union[Unset, str]):
128
121
  workload_type (Union[Unset, str]):
129
- environment (Union[Unset, str]):
130
122
  limit (Union[Unset, str]):
131
123
  start_time (Union[Unset, str]):
132
124
  end_time (Union[Unset, str]):
@@ -143,7 +135,6 @@ def sync(
143
135
  client=client,
144
136
  workload_id=workload_id,
145
137
  workload_type=workload_type,
146
- environment=environment,
147
138
  limit=limit,
148
139
  start_time=start_time,
149
140
  end_time=end_time,
@@ -155,7 +146,6 @@ async def asyncio_detailed(
155
146
  client: AuthenticatedClient,
156
147
  workload_id: Union[Unset, str] = UNSET,
157
148
  workload_type: Union[Unset, str] = UNSET,
158
- environment: Union[Unset, str] = UNSET,
159
149
  limit: Union[Unset, str] = UNSET,
160
150
  start_time: Union[Unset, str] = UNSET,
161
151
  end_time: Union[Unset, str] = UNSET,
@@ -165,7 +155,6 @@ async def asyncio_detailed(
165
155
  Args:
166
156
  workload_id (Union[Unset, str]):
167
157
  workload_type (Union[Unset, str]):
168
- environment (Union[Unset, str]):
169
158
  limit (Union[Unset, str]):
170
159
  start_time (Union[Unset, str]):
171
160
  end_time (Union[Unset, str]):
@@ -181,7 +170,6 @@ async def asyncio_detailed(
181
170
  kwargs = _get_kwargs(
182
171
  workload_id=workload_id,
183
172
  workload_type=workload_type,
184
- environment=environment,
185
173
  limit=limit,
186
174
  start_time=start_time,
187
175
  end_time=end_time,
@@ -197,7 +185,6 @@ async def asyncio(
197
185
  client: AuthenticatedClient,
198
186
  workload_id: Union[Unset, str] = UNSET,
199
187
  workload_type: Union[Unset, str] = UNSET,
200
- environment: Union[Unset, str] = UNSET,
201
188
  limit: Union[Unset, str] = UNSET,
202
189
  start_time: Union[Unset, str] = UNSET,
203
190
  end_time: Union[Unset, str] = UNSET,
@@ -207,7 +194,6 @@ async def asyncio(
207
194
  Args:
208
195
  workload_id (Union[Unset, str]):
209
196
  workload_type (Union[Unset, str]):
210
- environment (Union[Unset, str]):
211
197
  limit (Union[Unset, str]):
212
198
  start_time (Union[Unset, str]):
213
199
  end_time (Union[Unset, str]):
@@ -225,7 +211,6 @@ async def asyncio(
225
211
  client=client,
226
212
  workload_id=workload_id,
227
213
  workload_type=workload_type,
228
- environment=environment,
229
214
  limit=limit,
230
215
  start_time=start_time,
231
216
  end_time=end_time,
@@ -5,7 +5,7 @@ import httpx
5
5
 
6
6
  from ... import errors
7
7
  from ...client import AuthenticatedClient, Client
8
- from ...models.mcp_hub_artifact import MCPHubArtifact
8
+ from ...models.mcp_definition import MCPDefinition
9
9
  from ...types import Response
10
10
 
11
11
 
@@ -20,12 +20,12 @@ def _get_kwargs() -> dict[str, Any]:
20
20
 
21
21
  def _parse_response(
22
22
  *, client: Union[AuthenticatedClient, Client], response: httpx.Response
23
- ) -> Optional[list["MCPHubArtifact"]]:
23
+ ) -> Optional[list["MCPDefinition"]]:
24
24
  if response.status_code == 200:
25
25
  response_200 = []
26
26
  _response_200 = response.json()
27
27
  for response_200_item_data in _response_200:
28
- response_200_item = MCPHubArtifact.from_dict(response_200_item_data)
28
+ response_200_item = MCPDefinition.from_dict(response_200_item_data)
29
29
 
30
30
  response_200.append(response_200_item)
31
31
 
@@ -38,7 +38,7 @@ def _parse_response(
38
38
 
39
39
  def _build_response(
40
40
  *, client: Union[AuthenticatedClient, Client], response: httpx.Response
41
- ) -> Response[list["MCPHubArtifact"]]:
41
+ ) -> Response[list["MCPDefinition"]]:
42
42
  return Response(
43
43
  status_code=HTTPStatus(response.status_code),
44
44
  content=response.content,
@@ -50,14 +50,14 @@ def _build_response(
50
50
  def sync_detailed(
51
51
  *,
52
52
  client: AuthenticatedClient,
53
- ) -> Response[list["MCPHubArtifact"]]:
53
+ ) -> Response[list["MCPDefinition"]]:
54
54
  """
55
55
  Raises:
56
56
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
57
57
  httpx.TimeoutException: If the request takes longer than Client.timeout.
58
58
 
59
59
  Returns:
60
- Response[list['MCPHubArtifact']]
60
+ Response[list['MCPDefinition']]
61
61
  """
62
62
 
63
63
  kwargs = _get_kwargs()
@@ -72,14 +72,14 @@ def sync_detailed(
72
72
  def sync(
73
73
  *,
74
74
  client: AuthenticatedClient,
75
- ) -> Optional[list["MCPHubArtifact"]]:
75
+ ) -> Optional[list["MCPDefinition"]]:
76
76
  """
77
77
  Raises:
78
78
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
79
79
  httpx.TimeoutException: If the request takes longer than Client.timeout.
80
80
 
81
81
  Returns:
82
- list['MCPHubArtifact']
82
+ list['MCPDefinition']
83
83
  """
84
84
 
85
85
  return sync_detailed(
@@ -90,14 +90,14 @@ def sync(
90
90
  async def asyncio_detailed(
91
91
  *,
92
92
  client: AuthenticatedClient,
93
- ) -> Response[list["MCPHubArtifact"]]:
93
+ ) -> Response[list["MCPDefinition"]]:
94
94
  """
95
95
  Raises:
96
96
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
97
97
  httpx.TimeoutException: If the request takes longer than Client.timeout.
98
98
 
99
99
  Returns:
100
- Response[list['MCPHubArtifact']]
100
+ Response[list['MCPDefinition']]
101
101
  """
102
102
 
103
103
  kwargs = _get_kwargs()
@@ -110,14 +110,14 @@ async def asyncio_detailed(
110
110
  async def asyncio(
111
111
  *,
112
112
  client: AuthenticatedClient,
113
- ) -> Optional[list["MCPHubArtifact"]]:
113
+ ) -> Optional[list["MCPDefinition"]]:
114
114
  """
115
115
  Raises:
116
116
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
117
117
  httpx.TimeoutException: If the request takes longer than Client.timeout.
118
118
 
119
119
  Returns:
120
- list['MCPHubArtifact']
120
+ list['MCPDefinition']
121
121
  """
122
122
 
123
123
  return (
@@ -6,24 +6,15 @@ import httpx
6
6
  from ... import errors
7
7
  from ...client import AuthenticatedClient, Client
8
8
  from ...models.function import Function
9
- from ...types import UNSET, Response
9
+ from ...types import Response
10
10
 
11
11
 
12
12
  def _get_kwargs(
13
13
  function_name: str,
14
- *,
15
- environment: str,
16
14
  ) -> dict[str, Any]:
17
- params: dict[str, Any] = {}
18
-
19
- params["environment"] = environment
20
-
21
- params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
22
-
23
15
  _kwargs: dict[str, Any] = {
24
16
  "method": "delete",
25
17
  "url": f"/functions/{function_name}",
26
- "params": params,
27
18
  }
28
19
 
29
20
  return _kwargs
@@ -53,13 +44,11 @@ def sync_detailed(
53
44
  function_name: str,
54
45
  *,
55
46
  client: AuthenticatedClient,
56
- environment: str,
57
47
  ) -> Response[Function]:
58
48
  """Delete function by name
59
49
 
60
50
  Args:
61
51
  function_name (str):
62
- environment (str):
63
52
 
64
53
  Raises:
65
54
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -71,7 +60,6 @@ def sync_detailed(
71
60
 
72
61
  kwargs = _get_kwargs(
73
62
  function_name=function_name,
74
- environment=environment,
75
63
  )
76
64
 
77
65
  response = client.get_httpx_client().request(
@@ -85,13 +73,11 @@ def sync(
85
73
  function_name: str,
86
74
  *,
87
75
  client: AuthenticatedClient,
88
- environment: str,
89
76
  ) -> Optional[Function]:
90
77
  """Delete function by name
91
78
 
92
79
  Args:
93
80
  function_name (str):
94
- environment (str):
95
81
 
96
82
  Raises:
97
83
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -104,7 +90,6 @@ def sync(
104
90
  return sync_detailed(
105
91
  function_name=function_name,
106
92
  client=client,
107
- environment=environment,
108
93
  ).parsed
109
94
 
110
95
 
@@ -112,13 +97,11 @@ async def asyncio_detailed(
112
97
  function_name: str,
113
98
  *,
114
99
  client: AuthenticatedClient,
115
- environment: str,
116
100
  ) -> Response[Function]:
117
101
  """Delete function by name
118
102
 
119
103
  Args:
120
104
  function_name (str):
121
- environment (str):
122
105
 
123
106
  Raises:
124
107
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -130,7 +113,6 @@ async def asyncio_detailed(
130
113
 
131
114
  kwargs = _get_kwargs(
132
115
  function_name=function_name,
133
- environment=environment,
134
116
  )
135
117
 
136
118
  response = await client.get_async_httpx_client().request(**kwargs)
@@ -142,13 +124,11 @@ async def asyncio(
142
124
  function_name: str,
143
125
  *,
144
126
  client: AuthenticatedClient,
145
- environment: str,
146
127
  ) -> Optional[Function]:
147
128
  """Delete function by name
148
129
 
149
130
  Args:
150
131
  function_name (str):
151
- environment (str):
152
132
 
153
133
  Raises:
154
134
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -162,6 +142,5 @@ async def asyncio(
162
142
  await asyncio_detailed(
163
143
  function_name=function_name,
164
144
  client=client,
165
- environment=environment,
166
145
  )
167
146
  ).parsed
@@ -6,24 +6,15 @@ import httpx
6
6
  from ... import errors
7
7
  from ...client import AuthenticatedClient, Client
8
8
  from ...models.function import Function
9
- from ...types import UNSET, Response, Unset
9
+ from ...types import Response
10
10
 
11
11
 
12
12
  def _get_kwargs(
13
13
  function_name: str,
14
- *,
15
- environment: Union[Unset, str] = UNSET,
16
14
  ) -> dict[str, Any]:
17
- params: dict[str, Any] = {}
18
-
19
- params["environment"] = environment
20
-
21
- params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
22
-
23
15
  _kwargs: dict[str, Any] = {
24
16
  "method": "get",
25
17
  "url": f"/functions/{function_name}",
26
- "params": params,
27
18
  }
28
19
 
29
20
  return _kwargs
@@ -53,13 +44,11 @@ def sync_detailed(
53
44
  function_name: str,
54
45
  *,
55
46
  client: AuthenticatedClient,
56
- environment: Union[Unset, str] = UNSET,
57
47
  ) -> Response[Function]:
58
48
  """Get function by name
59
49
 
60
50
  Args:
61
51
  function_name (str):
62
- environment (Union[Unset, str]):
63
52
 
64
53
  Raises:
65
54
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -71,7 +60,6 @@ def sync_detailed(
71
60
 
72
61
  kwargs = _get_kwargs(
73
62
  function_name=function_name,
74
- environment=environment,
75
63
  )
76
64
 
77
65
  response = client.get_httpx_client().request(
@@ -85,13 +73,11 @@ def sync(
85
73
  function_name: str,
86
74
  *,
87
75
  client: AuthenticatedClient,
88
- environment: Union[Unset, str] = UNSET,
89
76
  ) -> Optional[Function]:
90
77
  """Get function by name
91
78
 
92
79
  Args:
93
80
  function_name (str):
94
- environment (Union[Unset, str]):
95
81
 
96
82
  Raises:
97
83
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -104,7 +90,6 @@ def sync(
104
90
  return sync_detailed(
105
91
  function_name=function_name,
106
92
  client=client,
107
- environment=environment,
108
93
  ).parsed
109
94
 
110
95
 
@@ -112,13 +97,11 @@ async def asyncio_detailed(
112
97
  function_name: str,
113
98
  *,
114
99
  client: AuthenticatedClient,
115
- environment: Union[Unset, str] = UNSET,
116
100
  ) -> Response[Function]:
117
101
  """Get function by name
118
102
 
119
103
  Args:
120
104
  function_name (str):
121
- environment (Union[Unset, str]):
122
105
 
123
106
  Raises:
124
107
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -130,7 +113,6 @@ async def asyncio_detailed(
130
113
 
131
114
  kwargs = _get_kwargs(
132
115
  function_name=function_name,
133
- environment=environment,
134
116
  )
135
117
 
136
118
  response = await client.get_async_httpx_client().request(**kwargs)
@@ -142,13 +124,11 @@ async def asyncio(
142
124
  function_name: str,
143
125
  *,
144
126
  client: AuthenticatedClient,
145
- environment: Union[Unset, str] = UNSET,
146
127
  ) -> Optional[Function]:
147
128
  """Get function by name
148
129
 
149
130
  Args:
150
131
  function_name (str):
151
- environment (Union[Unset, str]):
152
132
 
153
133
  Raises:
154
134
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -162,6 +142,5 @@ async def asyncio(
162
142
  await asyncio_detailed(
163
143
  function_name=function_name,
164
144
  client=client,
165
- environment=environment,
166
145
  )
167
146
  ).parsed