beamlit 0.0.18__py3-none-any.whl → 0.0.20__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- beamlit/agents/__init__.py +4 -0
- beamlit/agents/chat.py +87 -0
- beamlit/agents/decorator.py +147 -0
- beamlit/api/agents/create_agent.py +14 -9
- beamlit/api/agents/delete_agent_history.py +159 -0
- beamlit/api/agents/get_agent_deployment_logs.py +11 -11
- beamlit/api/{authentication_providers/list_organizations_for_authentication_provider.py → agents/get_agent_environment_logs.py} +30 -42
- beamlit/api/{authentication_providers/get_model_with_repo_for_authentication_provider.py → agents/get_agent_history.py} +43 -68
- beamlit/api/agents/list_agent_deployment_history.py +11 -11
- beamlit/api/agents/list_agent_deployments.py +11 -11
- beamlit/api/agents/list_agent_history.py +151 -0
- beamlit/api/agents/list_agents.py +11 -11
- beamlit/api/agents/put_agent_history.py +185 -0
- beamlit/api/agents/update_agent.py +14 -9
- beamlit/api/environments/list_environments.py +11 -11
- beamlit/api/functions/create_function.py +14 -9
- beamlit/api/functions/get_function_deployment_logs.py +11 -11
- beamlit/api/functions/get_function_environment_logs.py +151 -0
- beamlit/api/functions/list_function_deployments.py +11 -11
- beamlit/api/functions/list_functions.py +11 -11
- beamlit/api/functions/update_function.py +14 -9
- beamlit/api/history/get_agents_history.py +11 -11
- beamlit/api/history/list_agents_history.py +11 -11
- beamlit/api/integrations/create_integration_connection.py +167 -0
- beamlit/api/integrations/delete_integration_connection.py +158 -0
- beamlit/api/integrations/get_integration.py +97 -0
- beamlit/api/integrations/get_integration_connection.py +154 -0
- beamlit/api/integrations/get_integration_connection_model.py +97 -0
- beamlit/api/integrations/get_integration_model.py +97 -0
- beamlit/api/integrations/list_integration_connection_models.py +97 -0
- beamlit/api/integrations/list_integration_connections.py +139 -0
- beamlit/api/integrations/list_integration_models.py +97 -0
- beamlit/api/integrations/update_integration_connection.py +180 -0
- beamlit/api/invitations/list_all_pending_invitations.py +11 -11
- beamlit/api/locations/list_locations.py +11 -11
- beamlit/api/model_providers/list_model_providers.py +11 -11
- beamlit/api/models/get_model_deployment_logs.py +11 -11
- beamlit/api/{authentication_providers/list_models_for_authentication_provider.py → models/get_model_environment_logs.py} +30 -38
- beamlit/api/models/list_model_deployments.py +11 -11
- beamlit/api/models/list_models.py +11 -11
- beamlit/api/policies/list_policies.py +11 -11
- beamlit/api/service_accounts/get_workspace_service_accounts.py +11 -11
- beamlit/api/service_accounts/list_api_keys_for_service_account.py +11 -11
- beamlit/api/store/list_store_agents.py +11 -11
- beamlit/api/store/list_store_functions.py +11 -11
- beamlit/api/workspaces/list_workspace_users.py +11 -11
- beamlit/api/workspaces/list_workspaces.py +11 -11
- beamlit/authentication/__init__.py +29 -8
- beamlit/authentication/apikey.py +8 -2
- beamlit/authentication/authentication.py +66 -3
- beamlit/authentication/clientcredentials.py +108 -0
- beamlit/authentication/credentials.py +22 -8
- beamlit/authentication/device_mode.py +23 -13
- beamlit/common/__init__.py +13 -0
- beamlit/common/generate.py +183 -0
- beamlit/common/logger.py +29 -0
- beamlit/common/secrets.py +11 -0
- beamlit/common/settings.py +156 -0
- beamlit/common/utils.py +15 -0
- beamlit/functions/__init__.py +5 -0
- beamlit/functions/decorator.py +90 -0
- beamlit/functions/github/__init__.py +3 -0
- beamlit/functions/github/github.py +21 -0
- beamlit/functions/github/kit/__init__.py +7 -0
- beamlit/functions/github/kit/pull_request.py +51 -0
- beamlit/functions/math/__init__.py +3 -0
- beamlit/functions/math/math.py +40 -0
- beamlit/functions/search/__init__.py +3 -0
- beamlit/functions/search/search.py +15 -0
- beamlit/models/__init__.py +24 -0
- beamlit/models/acl.py +4 -2
- beamlit/models/agent.py +5 -3
- beamlit/models/agent_chain.py +4 -2
- beamlit/models/agent_configuration.py +4 -2
- beamlit/models/agent_deployment.py +41 -28
- beamlit/models/agent_deployment_configuration.py +4 -2
- beamlit/models/agent_deployment_configuration_type_0.py +43 -0
- beamlit/models/agent_deployment_history.py +7 -5
- beamlit/models/agent_deployment_history_event.py +11 -9
- beamlit/models/agent_deployment_pod_template.py +4 -2
- beamlit/models/agent_deployment_pod_template_type_0.py +43 -0
- beamlit/models/agent_history.py +165 -0
- beamlit/models/agent_history_event.py +131 -0
- beamlit/models/agent_metadata.py +144 -0
- beamlit/models/agent_release.py +4 -2
- beamlit/models/agent_spec.py +248 -0
- beamlit/models/agent_with_deployments.py +176 -0
- beamlit/models/api_key.py +4 -2
- beamlit/models/authentication_provider_model.py +8 -6
- beamlit/models/authentication_provider_organization.py +4 -2
- beamlit/models/configuration.py +12 -10
- beamlit/models/continent.py +4 -2
- beamlit/models/core_spec.py +185 -0
- beamlit/models/country.py +4 -2
- beamlit/models/create_api_key_for_service_account_body.py +4 -2
- beamlit/models/create_workspace_service_account_body.py +4 -2
- beamlit/models/create_workspace_service_account_response_200.py +4 -2
- beamlit/models/delete_workspace_service_account_response_200.py +4 -2
- beamlit/models/deployment_configuration.py +4 -2
- beamlit/models/deployment_configurations.py +22 -7
- beamlit/models/deployment_serverless_config.py +4 -2
- beamlit/models/deployment_serverless_config_type_0.py +220 -0
- beamlit/models/environment.py +9 -7
- beamlit/models/environment_metrics.py +26 -5
- beamlit/models/environment_spec.py +61 -0
- beamlit/models/flavor.py +11 -9
- beamlit/models/function.py +5 -3
- beamlit/models/function_configuration.py +4 -2
- beamlit/models/function_deployment.py +33 -20
- beamlit/models/function_deployment_configuration.py +4 -2
- beamlit/models/function_deployment_configuration_type_0.py +43 -0
- beamlit/models/function_deployment_pod_template.py +4 -2
- beamlit/models/function_deployment_pod_template_type_0.py +43 -0
- beamlit/models/function_kit.py +7 -5
- beamlit/models/function_metadata.py +144 -0
- beamlit/models/function_provider_ref.py +4 -2
- beamlit/models/function_release.py +4 -2
- beamlit/models/function_spec.py +246 -0
- beamlit/models/function_with_deployments.py +176 -0
- beamlit/models/get_workspace_service_accounts_response_200_item.py +4 -2
- beamlit/models/increase_and_rate_metric.py +104 -0
- beamlit/models/integration.py +198 -0
- beamlit/models/integration_config.py +45 -0
- beamlit/models/integration_connection.py +198 -0
- beamlit/models/integration_connection_config.py +45 -0
- beamlit/models/integration_connection_secret.py +61 -0
- beamlit/models/integration_connection_spec.py +99 -0
- beamlit/models/integration_model.py +144 -0
- beamlit/models/integration_secret.py +61 -0
- beamlit/models/invite_workspace_user_body.py +4 -2
- beamlit/models/labels_type_0.py +4 -2
- beamlit/models/location.py +7 -5
- beamlit/models/location_response.py +7 -5
- beamlit/models/metadata.py +135 -0
- beamlit/models/{labels.py → metadata_labels.py} +5 -5
- beamlit/models/metric.py +4 -2
- beamlit/models/metrics.py +68 -25
- beamlit/models/model.py +5 -3
- beamlit/models/model_deployment.py +27 -14
- beamlit/models/model_deployment_log.py +4 -2
- beamlit/models/model_deployment_metrics.py +11 -9
- beamlit/models/model_deployment_metrics_inference_per_second_per_region.py +7 -5
- beamlit/models/model_deployment_metrics_query_per_second_per_region_per_code.py +5 -3
- beamlit/models/model_deployment_pod_template.py +4 -2
- beamlit/models/model_deployment_pod_template_type_0.py +43 -0
- beamlit/models/model_metadata.py +144 -0
- beamlit/models/model_metrics.py +8 -6
- beamlit/models/model_provider.py +13 -11
- beamlit/models/model_provider_ref.py +4 -2
- beamlit/models/model_release.py +4 -2
- beamlit/models/model_spec.py +194 -0
- beamlit/models/model_with_deployments.py +8 -6
- beamlit/models/owner_fields.py +68 -0
- beamlit/models/pending_invitation.py +4 -2
- beamlit/models/pending_invitation_accept.py +5 -3
- beamlit/models/pending_invitation_render.py +7 -5
- beamlit/models/pending_invitation_render_invited_by.py +4 -2
- beamlit/models/pending_invitation_render_workspace.py +4 -2
- beamlit/models/pending_invitation_workspace_details.py +8 -6
- beamlit/models/pod_template_spec.py +43 -0
- beamlit/models/policy.py +22 -20
- beamlit/models/policy_location.py +11 -9
- beamlit/models/policy_spec.py +125 -0
- beamlit/models/provider_config.py +9 -16
- beamlit/models/qps.py +4 -2
- beamlit/models/resource_deployment_log.py +4 -2
- beamlit/models/resource_deployment_metrics.py +119 -9
- beamlit/models/resource_deployment_metrics_inference_per_region.py +77 -0
- beamlit/models/resource_deployment_metrics_inference_per_region_type_0.py +79 -0
- beamlit/models/resource_deployment_metrics_inference_per_second_per_region.py +7 -5
- beamlit/models/resource_deployment_metrics_inference_per_second_per_region_type_0.py +79 -0
- beamlit/models/resource_deployment_metrics_query_per_region_per_code.py +75 -0
- beamlit/models/resource_deployment_metrics_query_per_region_per_code_type_0.py +73 -0
- beamlit/models/resource_deployment_metrics_query_per_second_per_region_per_code.py +5 -3
- beamlit/models/resource_deployment_metrics_query_per_second_per_region_per_code_type_0.py +73 -0
- beamlit/models/resource_environment_metrics.py +210 -0
- beamlit/models/resource_environment_metrics_inference_per_second_per_region.py +79 -0
- beamlit/models/resource_environment_metrics_query_per_second_per_region_per_code.py +73 -0
- beamlit/models/resource_log.py +68 -0
- beamlit/models/resource_metrics.py +44 -6
- beamlit/models/runtime.py +25 -23
- beamlit/models/runtime_readiness_probe.py +4 -2
- beamlit/models/runtime_readiness_probe_type_0.py +43 -0
- beamlit/models/runtime_resources.py +4 -2
- beamlit/models/runtime_type_0.py +111 -0
- beamlit/models/runtime_type_0_readiness_probe.py +43 -0
- beamlit/models/runtime_type_0_readiness_probe_type_0.py +43 -0
- beamlit/models/runtime_type_0_resources.py +59 -0
- beamlit/models/serverless_config.py +4 -2
- beamlit/models/spec_configuration.py +68 -0
- beamlit/models/standard_fields_dynamo_db.py +4 -2
- beamlit/models/store_agent.py +8 -6
- beamlit/models/store_agent_configuration.py +4 -2
- beamlit/models/store_agent_labels.py +4 -2
- beamlit/models/store_agent_labels_type_0.py +43 -0
- beamlit/models/store_configuration.py +18 -16
- beamlit/models/store_configuration_option.py +4 -2
- beamlit/models/store_function.py +14 -12
- beamlit/models/store_function_configuration.py +4 -2
- beamlit/models/store_function_kit.py +7 -5
- beamlit/models/store_function_labels.py +4 -2
- beamlit/models/store_function_labels_type_0.py +43 -0
- beamlit/models/store_function_parameter.py +11 -9
- beamlit/models/time_fields.py +68 -0
- beamlit/models/update_workspace_service_account_body.py +4 -2
- beamlit/models/update_workspace_service_account_response_200.py +4 -2
- beamlit/models/update_workspace_user_role_body.py +4 -2
- beamlit/models/websocket_channel.py +86 -0
- beamlit/models/workspace.py +5 -3
- beamlit/models/workspace_labels.py +4 -2
- beamlit/models/workspace_user.py +4 -2
- beamlit/run.py +49 -0
- beamlit/serve/app.py +78 -0
- beamlit/serve/middlewares/__init__.py +4 -0
- beamlit/serve/middlewares/accesslog.py +14 -0
- beamlit/serve/middlewares/processtime.py +12 -0
- {beamlit-0.0.18.dist-info → beamlit-0.0.20.dist-info}/METADATA +11 -2
- beamlit-0.0.20.dist-info/RECORD +301 -0
- beamlit-0.0.18.dist-info/RECORD +0 -211
- /beamlit/api/{authentication_providers → integrations}/__init__.py +0 -0
- {beamlit-0.0.18.dist-info → beamlit-0.0.20.dist-info}/WHEEL +0 -0
@@ -5,16 +5,16 @@ import httpx
|
|
5
5
|
|
6
6
|
from ... import errors
|
7
7
|
from ...client import AuthenticatedClient, Client
|
8
|
-
from ...models.
|
8
|
+
from ...models.resource_log import ResourceLog
|
9
9
|
from ...types import Response
|
10
10
|
|
11
11
|
|
12
12
|
def _get_kwargs(
|
13
|
-
|
13
|
+
agent_name: str,
|
14
14
|
) -> dict[str, Any]:
|
15
15
|
_kwargs: dict[str, Any] = {
|
16
16
|
"method": "get",
|
17
|
-
"url": f"/
|
17
|
+
"url": f"/agents/{agent_name}/logs",
|
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["
|
25
|
+
) -> Optional[List["ResourceLog"]]:
|
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 =
|
30
|
+
response_200_item = ResourceLog.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["
|
43
|
+
) -> Response[List["ResourceLog"]]:
|
44
44
|
return Response(
|
45
45
|
status_code=HTTPStatus(response.status_code),
|
46
46
|
content=response.content,
|
@@ -50,27 +50,24 @@ def _build_response(
|
|
50
50
|
|
51
51
|
|
52
52
|
def sync_detailed(
|
53
|
-
|
53
|
+
agent_name: str,
|
54
54
|
*,
|
55
55
|
client: AuthenticatedClient,
|
56
|
-
) -> Response[List["
|
57
|
-
"""
|
58
|
-
|
59
|
-
Returns a list of all organizations for an integration by ID.
|
60
|
-
|
56
|
+
) -> Response[List["ResourceLog"]]:
|
57
|
+
"""
|
61
58
|
Args:
|
62
|
-
|
59
|
+
agent_name (str):
|
63
60
|
|
64
61
|
Raises:
|
65
62
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
66
63
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
67
64
|
|
68
65
|
Returns:
|
69
|
-
Response[List['
|
66
|
+
Response[List['ResourceLog']]
|
70
67
|
"""
|
71
68
|
|
72
69
|
kwargs = _get_kwargs(
|
73
|
-
|
70
|
+
agent_name=agent_name,
|
74
71
|
)
|
75
72
|
|
76
73
|
response = client.get_httpx_client().request(
|
@@ -81,53 +78,47 @@ def sync_detailed(
|
|
81
78
|
|
82
79
|
|
83
80
|
def sync(
|
84
|
-
|
81
|
+
agent_name: str,
|
85
82
|
*,
|
86
83
|
client: AuthenticatedClient,
|
87
|
-
) -> Optional[List["
|
88
|
-
"""
|
89
|
-
|
90
|
-
Returns a list of all organizations for an integration by ID.
|
91
|
-
|
84
|
+
) -> Optional[List["ResourceLog"]]:
|
85
|
+
"""
|
92
86
|
Args:
|
93
|
-
|
87
|
+
agent_name (str):
|
94
88
|
|
95
89
|
Raises:
|
96
90
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
97
91
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
98
92
|
|
99
93
|
Returns:
|
100
|
-
List['
|
94
|
+
List['ResourceLog']
|
101
95
|
"""
|
102
96
|
|
103
97
|
return sync_detailed(
|
104
|
-
|
98
|
+
agent_name=agent_name,
|
105
99
|
client=client,
|
106
100
|
).parsed
|
107
101
|
|
108
102
|
|
109
103
|
async def asyncio_detailed(
|
110
|
-
|
104
|
+
agent_name: str,
|
111
105
|
*,
|
112
106
|
client: AuthenticatedClient,
|
113
|
-
) -> Response[List["
|
114
|
-
"""
|
115
|
-
|
116
|
-
Returns a list of all organizations for an integration by ID.
|
117
|
-
|
107
|
+
) -> Response[List["ResourceLog"]]:
|
108
|
+
"""
|
118
109
|
Args:
|
119
|
-
|
110
|
+
agent_name (str):
|
120
111
|
|
121
112
|
Raises:
|
122
113
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
123
114
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
124
115
|
|
125
116
|
Returns:
|
126
|
-
Response[List['
|
117
|
+
Response[List['ResourceLog']]
|
127
118
|
"""
|
128
119
|
|
129
120
|
kwargs = _get_kwargs(
|
130
|
-
|
121
|
+
agent_name=agent_name,
|
131
122
|
)
|
132
123
|
|
133
124
|
response = await client.get_async_httpx_client().request(**kwargs)
|
@@ -136,28 +127,25 @@ async def asyncio_detailed(
|
|
136
127
|
|
137
128
|
|
138
129
|
async def asyncio(
|
139
|
-
|
130
|
+
agent_name: str,
|
140
131
|
*,
|
141
132
|
client: AuthenticatedClient,
|
142
|
-
) -> Optional[List["
|
143
|
-
"""
|
144
|
-
|
145
|
-
Returns a list of all organizations for an integration by ID.
|
146
|
-
|
133
|
+
) -> Optional[List["ResourceLog"]]:
|
134
|
+
"""
|
147
135
|
Args:
|
148
|
-
|
136
|
+
agent_name (str):
|
149
137
|
|
150
138
|
Raises:
|
151
139
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
152
140
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
153
141
|
|
154
142
|
Returns:
|
155
|
-
List['
|
143
|
+
List['ResourceLog']
|
156
144
|
"""
|
157
145
|
|
158
146
|
return (
|
159
147
|
await asyncio_detailed(
|
160
|
-
|
148
|
+
agent_name=agent_name,
|
161
149
|
client=client,
|
162
150
|
)
|
163
151
|
).parsed
|
@@ -5,18 +5,17 @@ import httpx
|
|
5
5
|
|
6
6
|
from ... import errors
|
7
7
|
from ...client import AuthenticatedClient, Client
|
8
|
-
from ...models.
|
8
|
+
from ...models.agent_history import AgentHistory
|
9
9
|
from ...types import Response
|
10
10
|
|
11
11
|
|
12
12
|
def _get_kwargs(
|
13
|
-
|
14
|
-
|
15
|
-
model_id: str,
|
13
|
+
agent_name: str,
|
14
|
+
request_id: str,
|
16
15
|
) -> dict[str, Any]:
|
17
16
|
_kwargs: dict[str, Any] = {
|
18
17
|
"method": "get",
|
19
|
-
"url": f"/
|
18
|
+
"url": f"/agents/{agent_name}/history/{request_id}",
|
20
19
|
}
|
21
20
|
|
22
21
|
return _kwargs
|
@@ -24,9 +23,9 @@ def _get_kwargs(
|
|
24
23
|
|
25
24
|
def _parse_response(
|
26
25
|
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
27
|
-
) -> Optional[
|
26
|
+
) -> Optional[AgentHistory]:
|
28
27
|
if response.status_code == 200:
|
29
|
-
response_200 =
|
28
|
+
response_200 = AgentHistory.from_dict(response.json())
|
30
29
|
|
31
30
|
return response_200
|
32
31
|
if client.raise_on_unexpected_status:
|
@@ -37,7 +36,7 @@ def _parse_response(
|
|
37
36
|
|
38
37
|
def _build_response(
|
39
38
|
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
40
|
-
) -> Response[
|
39
|
+
) -> Response[AgentHistory]:
|
41
40
|
return Response(
|
42
41
|
status_code=HTTPStatus(response.status_code),
|
43
42
|
content=response.content,
|
@@ -47,33 +46,27 @@ def _build_response(
|
|
47
46
|
|
48
47
|
|
49
48
|
def sync_detailed(
|
50
|
-
|
51
|
-
|
52
|
-
model_id: str,
|
49
|
+
agent_name: str,
|
50
|
+
request_id: str,
|
53
51
|
*,
|
54
52
|
client: AuthenticatedClient,
|
55
|
-
) -> Response[
|
56
|
-
"""
|
57
|
-
|
58
|
-
Returns a model with a repository for an integration by ID.
|
59
|
-
|
53
|
+
) -> Response[AgentHistory]:
|
54
|
+
"""
|
60
55
|
Args:
|
61
|
-
|
62
|
-
|
63
|
-
model_id (str):
|
56
|
+
agent_name (str):
|
57
|
+
request_id (str):
|
64
58
|
|
65
59
|
Raises:
|
66
60
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
67
61
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
68
62
|
|
69
63
|
Returns:
|
70
|
-
Response[
|
64
|
+
Response[AgentHistory]
|
71
65
|
"""
|
72
66
|
|
73
67
|
kwargs = _get_kwargs(
|
74
|
-
|
75
|
-
|
76
|
-
model_id=model_id,
|
68
|
+
agent_name=agent_name,
|
69
|
+
request_id=request_id,
|
77
70
|
)
|
78
71
|
|
79
72
|
response = client.get_httpx_client().request(
|
@@ -84,65 +77,53 @@ def sync_detailed(
|
|
84
77
|
|
85
78
|
|
86
79
|
def sync(
|
87
|
-
|
88
|
-
|
89
|
-
model_id: str,
|
80
|
+
agent_name: str,
|
81
|
+
request_id: str,
|
90
82
|
*,
|
91
83
|
client: AuthenticatedClient,
|
92
|
-
) -> Optional[
|
93
|
-
"""
|
94
|
-
|
95
|
-
Returns a model with a repository for an integration by ID.
|
96
|
-
|
84
|
+
) -> Optional[AgentHistory]:
|
85
|
+
"""
|
97
86
|
Args:
|
98
|
-
|
99
|
-
|
100
|
-
model_id (str):
|
87
|
+
agent_name (str):
|
88
|
+
request_id (str):
|
101
89
|
|
102
90
|
Raises:
|
103
91
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
104
92
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
105
93
|
|
106
94
|
Returns:
|
107
|
-
|
95
|
+
AgentHistory
|
108
96
|
"""
|
109
97
|
|
110
98
|
return sync_detailed(
|
111
|
-
|
112
|
-
|
113
|
-
model_id=model_id,
|
99
|
+
agent_name=agent_name,
|
100
|
+
request_id=request_id,
|
114
101
|
client=client,
|
115
102
|
).parsed
|
116
103
|
|
117
104
|
|
118
105
|
async def asyncio_detailed(
|
119
|
-
|
120
|
-
|
121
|
-
model_id: str,
|
106
|
+
agent_name: str,
|
107
|
+
request_id: str,
|
122
108
|
*,
|
123
109
|
client: AuthenticatedClient,
|
124
|
-
) -> Response[
|
125
|
-
"""
|
126
|
-
|
127
|
-
Returns a model with a repository for an integration by ID.
|
128
|
-
|
110
|
+
) -> Response[AgentHistory]:
|
111
|
+
"""
|
129
112
|
Args:
|
130
|
-
|
131
|
-
|
132
|
-
model_id (str):
|
113
|
+
agent_name (str):
|
114
|
+
request_id (str):
|
133
115
|
|
134
116
|
Raises:
|
135
117
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
136
118
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
137
119
|
|
138
120
|
Returns:
|
139
|
-
Response[
|
121
|
+
Response[AgentHistory]
|
140
122
|
"""
|
141
123
|
|
142
124
|
kwargs = _get_kwargs(
|
143
|
-
|
144
|
-
|
145
|
-
model_id=model_id,
|
125
|
+
agent_name=agent_name,
|
126
|
+
request_id=request_id,
|
146
127
|
)
|
147
128
|
|
148
129
|
response = await client.get_async_httpx_client().request(**kwargs)
|
@@ -151,34 +132,28 @@ async def asyncio_detailed(
|
|
151
132
|
|
152
133
|
|
153
134
|
async def asyncio(
|
154
|
-
|
155
|
-
|
156
|
-
model_id: str,
|
135
|
+
agent_name: str,
|
136
|
+
request_id: str,
|
157
137
|
*,
|
158
138
|
client: AuthenticatedClient,
|
159
|
-
) -> Optional[
|
160
|
-
"""
|
161
|
-
|
162
|
-
Returns a model with a repository for an integration by ID.
|
163
|
-
|
139
|
+
) -> Optional[AgentHistory]:
|
140
|
+
"""
|
164
141
|
Args:
|
165
|
-
|
166
|
-
|
167
|
-
model_id (str):
|
142
|
+
agent_name (str):
|
143
|
+
request_id (str):
|
168
144
|
|
169
145
|
Raises:
|
170
146
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
171
147
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
172
148
|
|
173
149
|
Returns:
|
174
|
-
|
150
|
+
AgentHistory
|
175
151
|
"""
|
176
152
|
|
177
153
|
return (
|
178
154
|
await asyncio_detailed(
|
179
|
-
|
180
|
-
|
181
|
-
model_id=model_id,
|
155
|
+
agent_name=agent_name,
|
156
|
+
request_id=request_id,
|
182
157
|
client=client,
|
183
158
|
)
|
184
159
|
).parsed
|
@@ -1,5 +1,5 @@
|
|
1
1
|
from http import HTTPStatus
|
2
|
-
from typing import Any,
|
2
|
+
from typing import Any, Optional, Union
|
3
3
|
|
4
4
|
import httpx
|
5
5
|
|
@@ -23,7 +23,7 @@ def _get_kwargs(
|
|
23
23
|
|
24
24
|
def _parse_response(
|
25
25
|
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
26
|
-
) -> Optional[
|
26
|
+
) -> Optional[list["AgentDeploymentHistory"]]:
|
27
27
|
if response.status_code == 200:
|
28
28
|
response_200 = []
|
29
29
|
_response_200 = response.json()
|
@@ -41,7 +41,7 @@ def _parse_response(
|
|
41
41
|
|
42
42
|
def _build_response(
|
43
43
|
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
44
|
-
) -> Response[
|
44
|
+
) -> Response[list["AgentDeploymentHistory"]]:
|
45
45
|
return Response(
|
46
46
|
status_code=HTTPStatus(response.status_code),
|
47
47
|
content=response.content,
|
@@ -55,7 +55,7 @@ def sync_detailed(
|
|
55
55
|
environment_name: str,
|
56
56
|
*,
|
57
57
|
client: AuthenticatedClient,
|
58
|
-
) -> Response[
|
58
|
+
) -> Response[list["AgentDeploymentHistory"]]:
|
59
59
|
"""
|
60
60
|
Args:
|
61
61
|
agent_name (str):
|
@@ -66,7 +66,7 @@ def sync_detailed(
|
|
66
66
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
67
67
|
|
68
68
|
Returns:
|
69
|
-
Response[
|
69
|
+
Response[list['AgentDeploymentHistory']]
|
70
70
|
"""
|
71
71
|
|
72
72
|
kwargs = _get_kwargs(
|
@@ -86,7 +86,7 @@ def sync(
|
|
86
86
|
environment_name: str,
|
87
87
|
*,
|
88
88
|
client: AuthenticatedClient,
|
89
|
-
) -> Optional[
|
89
|
+
) -> Optional[list["AgentDeploymentHistory"]]:
|
90
90
|
"""
|
91
91
|
Args:
|
92
92
|
agent_name (str):
|
@@ -97,7 +97,7 @@ def sync(
|
|
97
97
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
98
98
|
|
99
99
|
Returns:
|
100
|
-
|
100
|
+
list['AgentDeploymentHistory']
|
101
101
|
"""
|
102
102
|
|
103
103
|
return sync_detailed(
|
@@ -112,7 +112,7 @@ async def asyncio_detailed(
|
|
112
112
|
environment_name: str,
|
113
113
|
*,
|
114
114
|
client: AuthenticatedClient,
|
115
|
-
) -> Response[
|
115
|
+
) -> Response[list["AgentDeploymentHistory"]]:
|
116
116
|
"""
|
117
117
|
Args:
|
118
118
|
agent_name (str):
|
@@ -123,7 +123,7 @@ async def asyncio_detailed(
|
|
123
123
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
124
124
|
|
125
125
|
Returns:
|
126
|
-
Response[
|
126
|
+
Response[list['AgentDeploymentHistory']]
|
127
127
|
"""
|
128
128
|
|
129
129
|
kwargs = _get_kwargs(
|
@@ -141,7 +141,7 @@ async def asyncio(
|
|
141
141
|
environment_name: str,
|
142
142
|
*,
|
143
143
|
client: AuthenticatedClient,
|
144
|
-
) -> Optional[
|
144
|
+
) -> Optional[list["AgentDeploymentHistory"]]:
|
145
145
|
"""
|
146
146
|
Args:
|
147
147
|
agent_name (str):
|
@@ -152,7 +152,7 @@ async def asyncio(
|
|
152
152
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
153
153
|
|
154
154
|
Returns:
|
155
|
-
|
155
|
+
list['AgentDeploymentHistory']
|
156
156
|
"""
|
157
157
|
|
158
158
|
return (
|
@@ -1,5 +1,5 @@
|
|
1
1
|
from http import HTTPStatus
|
2
|
-
from typing import Any,
|
2
|
+
from typing import Any, Optional, Union
|
3
3
|
|
4
4
|
import httpx
|
5
5
|
|
@@ -22,7 +22,7 @@ def _get_kwargs(
|
|
22
22
|
|
23
23
|
def _parse_response(
|
24
24
|
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
25
|
-
) -> Optional[
|
25
|
+
) -> Optional[list["AgentDeployment"]]:
|
26
26
|
if response.status_code == 200:
|
27
27
|
response_200 = []
|
28
28
|
_response_200 = response.json()
|
@@ -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[
|
43
|
+
) -> Response[list["AgentDeployment"]]:
|
44
44
|
return Response(
|
45
45
|
status_code=HTTPStatus(response.status_code),
|
46
46
|
content=response.content,
|
@@ -53,7 +53,7 @@ def sync_detailed(
|
|
53
53
|
agent_name: str,
|
54
54
|
*,
|
55
55
|
client: AuthenticatedClient,
|
56
|
-
) -> Response[
|
56
|
+
) -> Response[list["AgentDeployment"]]:
|
57
57
|
"""List all agent deployments
|
58
58
|
|
59
59
|
Args:
|
@@ -64,7 +64,7 @@ def sync_detailed(
|
|
64
64
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
65
65
|
|
66
66
|
Returns:
|
67
|
-
Response[
|
67
|
+
Response[list['AgentDeployment']]
|
68
68
|
"""
|
69
69
|
|
70
70
|
kwargs = _get_kwargs(
|
@@ -82,7 +82,7 @@ def sync(
|
|
82
82
|
agent_name: str,
|
83
83
|
*,
|
84
84
|
client: AuthenticatedClient,
|
85
|
-
) -> Optional[
|
85
|
+
) -> Optional[list["AgentDeployment"]]:
|
86
86
|
"""List all agent deployments
|
87
87
|
|
88
88
|
Args:
|
@@ -93,7 +93,7 @@ def sync(
|
|
93
93
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
94
94
|
|
95
95
|
Returns:
|
96
|
-
|
96
|
+
list['AgentDeployment']
|
97
97
|
"""
|
98
98
|
|
99
99
|
return sync_detailed(
|
@@ -106,7 +106,7 @@ async def asyncio_detailed(
|
|
106
106
|
agent_name: str,
|
107
107
|
*,
|
108
108
|
client: AuthenticatedClient,
|
109
|
-
) -> Response[
|
109
|
+
) -> Response[list["AgentDeployment"]]:
|
110
110
|
"""List all agent deployments
|
111
111
|
|
112
112
|
Args:
|
@@ -117,7 +117,7 @@ async def asyncio_detailed(
|
|
117
117
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
118
118
|
|
119
119
|
Returns:
|
120
|
-
Response[
|
120
|
+
Response[list['AgentDeployment']]
|
121
121
|
"""
|
122
122
|
|
123
123
|
kwargs = _get_kwargs(
|
@@ -133,7 +133,7 @@ async def asyncio(
|
|
133
133
|
agent_name: str,
|
134
134
|
*,
|
135
135
|
client: AuthenticatedClient,
|
136
|
-
) -> Optional[
|
136
|
+
) -> Optional[list["AgentDeployment"]]:
|
137
137
|
"""List all agent deployments
|
138
138
|
|
139
139
|
Args:
|
@@ -144,7 +144,7 @@ async def asyncio(
|
|
144
144
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
145
145
|
|
146
146
|
Returns:
|
147
|
-
|
147
|
+
list['AgentDeployment']
|
148
148
|
"""
|
149
149
|
|
150
150
|
return (
|