beamlit 0.0.19__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.19.dist-info → beamlit-0.0.20.dist-info}/METADATA +11 -2
- beamlit-0.0.20.dist-info/RECORD +301 -0
- beamlit-0.0.19.dist-info/RECORD +0 -211
- /beamlit/api/{authentication_providers → integrations}/__init__.py +0 -0
- {beamlit-0.0.19.dist-info → beamlit-0.0.20.dist-info}/WHEEL +0 -0
@@ -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
|
|
@@ -20,7 +20,7 @@ def _get_kwargs() -> dict[str, Any]:
|
|
20
20
|
|
21
21
|
def _parse_response(
|
22
22
|
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
23
|
-
) -> Optional[
|
23
|
+
) -> Optional[list["Location"]]:
|
24
24
|
if response.status_code == 200:
|
25
25
|
response_200 = []
|
26
26
|
_response_200 = response.json()
|
@@ -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[
|
41
|
+
) -> Response[list["Location"]]:
|
42
42
|
return Response(
|
43
43
|
status_code=HTTPStatus(response.status_code),
|
44
44
|
content=response.content,
|
@@ -50,7 +50,7 @@ def _build_response(
|
|
50
50
|
def sync_detailed(
|
51
51
|
*,
|
52
52
|
client: AuthenticatedClient,
|
53
|
-
) -> Response[
|
53
|
+
) -> Response[list["Location"]]:
|
54
54
|
"""List locations
|
55
55
|
|
56
56
|
Returns a list of all locations available with status.
|
@@ -60,7 +60,7 @@ def sync_detailed(
|
|
60
60
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
61
61
|
|
62
62
|
Returns:
|
63
|
-
Response[
|
63
|
+
Response[list['Location']]
|
64
64
|
"""
|
65
65
|
|
66
66
|
kwargs = _get_kwargs()
|
@@ -75,7 +75,7 @@ def sync_detailed(
|
|
75
75
|
def sync(
|
76
76
|
*,
|
77
77
|
client: AuthenticatedClient,
|
78
|
-
) -> Optional[
|
78
|
+
) -> Optional[list["Location"]]:
|
79
79
|
"""List locations
|
80
80
|
|
81
81
|
Returns a list of all locations available with status.
|
@@ -85,7 +85,7 @@ def sync(
|
|
85
85
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
86
86
|
|
87
87
|
Returns:
|
88
|
-
|
88
|
+
list['Location']
|
89
89
|
"""
|
90
90
|
|
91
91
|
return sync_detailed(
|
@@ -96,7 +96,7 @@ def sync(
|
|
96
96
|
async def asyncio_detailed(
|
97
97
|
*,
|
98
98
|
client: AuthenticatedClient,
|
99
|
-
) -> Response[
|
99
|
+
) -> Response[list["Location"]]:
|
100
100
|
"""List locations
|
101
101
|
|
102
102
|
Returns a list of all locations available with status.
|
@@ -106,7 +106,7 @@ async def asyncio_detailed(
|
|
106
106
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
107
107
|
|
108
108
|
Returns:
|
109
|
-
Response[
|
109
|
+
Response[list['Location']]
|
110
110
|
"""
|
111
111
|
|
112
112
|
kwargs = _get_kwargs()
|
@@ -119,7 +119,7 @@ async def asyncio_detailed(
|
|
119
119
|
async def asyncio(
|
120
120
|
*,
|
121
121
|
client: AuthenticatedClient,
|
122
|
-
) -> Optional[
|
122
|
+
) -> Optional[list["Location"]]:
|
123
123
|
"""List locations
|
124
124
|
|
125
125
|
Returns a list of all locations available with status.
|
@@ -129,7 +129,7 @@ async def asyncio(
|
|
129
129
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
130
130
|
|
131
131
|
Returns:
|
132
|
-
|
132
|
+
list['Location']
|
133
133
|
"""
|
134
134
|
|
135
135
|
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
|
|
@@ -20,7 +20,7 @@ def _get_kwargs() -> dict[str, Any]:
|
|
20
20
|
|
21
21
|
def _parse_response(
|
22
22
|
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
23
|
-
) -> Optional[
|
23
|
+
) -> Optional[list["ModelProvider"]]:
|
24
24
|
if response.status_code == 200:
|
25
25
|
response_200 = []
|
26
26
|
_response_200 = response.json()
|
@@ -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[
|
41
|
+
) -> Response[list["ModelProvider"]]:
|
42
42
|
return Response(
|
43
43
|
status_code=HTTPStatus(response.status_code),
|
44
44
|
content=response.content,
|
@@ -50,7 +50,7 @@ def _build_response(
|
|
50
50
|
def sync_detailed(
|
51
51
|
*,
|
52
52
|
client: AuthenticatedClient,
|
53
|
-
) -> Response[
|
53
|
+
) -> Response[list["ModelProvider"]]:
|
54
54
|
"""List model providers
|
55
55
|
|
56
56
|
Returns a list of all integrations in the workspace.
|
@@ -60,7 +60,7 @@ def sync_detailed(
|
|
60
60
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
61
61
|
|
62
62
|
Returns:
|
63
|
-
Response[
|
63
|
+
Response[list['ModelProvider']]
|
64
64
|
"""
|
65
65
|
|
66
66
|
kwargs = _get_kwargs()
|
@@ -75,7 +75,7 @@ def sync_detailed(
|
|
75
75
|
def sync(
|
76
76
|
*,
|
77
77
|
client: AuthenticatedClient,
|
78
|
-
) -> Optional[
|
78
|
+
) -> Optional[list["ModelProvider"]]:
|
79
79
|
"""List model providers
|
80
80
|
|
81
81
|
Returns a list of all integrations in the workspace.
|
@@ -85,7 +85,7 @@ def sync(
|
|
85
85
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
86
86
|
|
87
87
|
Returns:
|
88
|
-
|
88
|
+
list['ModelProvider']
|
89
89
|
"""
|
90
90
|
|
91
91
|
return sync_detailed(
|
@@ -96,7 +96,7 @@ def sync(
|
|
96
96
|
async def asyncio_detailed(
|
97
97
|
*,
|
98
98
|
client: AuthenticatedClient,
|
99
|
-
) -> Response[
|
99
|
+
) -> Response[list["ModelProvider"]]:
|
100
100
|
"""List model providers
|
101
101
|
|
102
102
|
Returns a list of all integrations in the workspace.
|
@@ -106,7 +106,7 @@ async def asyncio_detailed(
|
|
106
106
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
107
107
|
|
108
108
|
Returns:
|
109
|
-
Response[
|
109
|
+
Response[list['ModelProvider']]
|
110
110
|
"""
|
111
111
|
|
112
112
|
kwargs = _get_kwargs()
|
@@ -119,7 +119,7 @@ async def asyncio_detailed(
|
|
119
119
|
async def asyncio(
|
120
120
|
*,
|
121
121
|
client: AuthenticatedClient,
|
122
|
-
) -> Optional[
|
122
|
+
) -> Optional[list["ModelProvider"]]:
|
123
123
|
"""List model providers
|
124
124
|
|
125
125
|
Returns a list of all integrations in the workspace.
|
@@ -129,7 +129,7 @@ async def asyncio(
|
|
129
129
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
130
130
|
|
131
131
|
Returns:
|
132
|
-
|
132
|
+
list['ModelProvider']
|
133
133
|
"""
|
134
134
|
|
135
135
|
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
|
|
@@ -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["ModelDeploymentLog"]]:
|
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["ModelDeploymentLog"]]:
|
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["ModelDeploymentLog"]]:
|
59
59
|
"""Returns logs for a model deployment by name.
|
60
60
|
|
61
61
|
Args:
|
@@ -67,7 +67,7 @@ def sync_detailed(
|
|
67
67
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
68
68
|
|
69
69
|
Returns:
|
70
|
-
Response[
|
70
|
+
Response[list['ModelDeploymentLog']]
|
71
71
|
"""
|
72
72
|
|
73
73
|
kwargs = _get_kwargs(
|
@@ -87,7 +87,7 @@ def sync(
|
|
87
87
|
environment_name: str,
|
88
88
|
*,
|
89
89
|
client: AuthenticatedClient,
|
90
|
-
) -> Optional[
|
90
|
+
) -> Optional[list["ModelDeploymentLog"]]:
|
91
91
|
"""Returns logs for a model deployment by name.
|
92
92
|
|
93
93
|
Args:
|
@@ -99,7 +99,7 @@ def sync(
|
|
99
99
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
100
100
|
|
101
101
|
Returns:
|
102
|
-
|
102
|
+
list['ModelDeploymentLog']
|
103
103
|
"""
|
104
104
|
|
105
105
|
return sync_detailed(
|
@@ -114,7 +114,7 @@ async def asyncio_detailed(
|
|
114
114
|
environment_name: str,
|
115
115
|
*,
|
116
116
|
client: AuthenticatedClient,
|
117
|
-
) -> Response[
|
117
|
+
) -> Response[list["ModelDeploymentLog"]]:
|
118
118
|
"""Returns logs for a model deployment by name.
|
119
119
|
|
120
120
|
Args:
|
@@ -126,7 +126,7 @@ async def asyncio_detailed(
|
|
126
126
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
127
127
|
|
128
128
|
Returns:
|
129
|
-
Response[
|
129
|
+
Response[list['ModelDeploymentLog']]
|
130
130
|
"""
|
131
131
|
|
132
132
|
kwargs = _get_kwargs(
|
@@ -144,7 +144,7 @@ async def asyncio(
|
|
144
144
|
environment_name: str,
|
145
145
|
*,
|
146
146
|
client: AuthenticatedClient,
|
147
|
-
) -> Optional[
|
147
|
+
) -> Optional[list["ModelDeploymentLog"]]:
|
148
148
|
"""Returns logs for a model deployment by name.
|
149
149
|
|
150
150
|
Args:
|
@@ -156,7 +156,7 @@ async def asyncio(
|
|
156
156
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
157
157
|
|
158
158
|
Returns:
|
159
|
-
|
159
|
+
list['ModelDeploymentLog']
|
160
160
|
"""
|
161
161
|
|
162
162
|
return (
|
@@ -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
|
+
model_name: str,
|
14
14
|
) -> dict[str, Any]:
|
15
15
|
_kwargs: dict[str, Any] = {
|
16
16
|
"method": "get",
|
17
|
-
"url": f"/
|
17
|
+
"url": f"/models/{model_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,25 @@ def _build_response(
|
|
50
50
|
|
51
51
|
|
52
52
|
def sync_detailed(
|
53
|
-
|
53
|
+
model_name: str,
|
54
54
|
*,
|
55
55
|
client: AuthenticatedClient,
|
56
|
-
) -> Response[List["
|
57
|
-
"""
|
58
|
-
|
59
|
-
Returns a list of all models for an integration by ID.
|
56
|
+
) -> Response[List["ResourceLog"]]:
|
57
|
+
"""Returns logs for a model deployment by name.
|
60
58
|
|
61
59
|
Args:
|
62
|
-
|
60
|
+
model_name (str):
|
63
61
|
|
64
62
|
Raises:
|
65
63
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
66
64
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
67
65
|
|
68
66
|
Returns:
|
69
|
-
Response[List['
|
67
|
+
Response[List['ResourceLog']]
|
70
68
|
"""
|
71
69
|
|
72
70
|
kwargs = _get_kwargs(
|
73
|
-
|
71
|
+
model_name=model_name,
|
74
72
|
)
|
75
73
|
|
76
74
|
response = client.get_httpx_client().request(
|
@@ -81,53 +79,49 @@ def sync_detailed(
|
|
81
79
|
|
82
80
|
|
83
81
|
def sync(
|
84
|
-
|
82
|
+
model_name: str,
|
85
83
|
*,
|
86
84
|
client: AuthenticatedClient,
|
87
|
-
) -> Optional[List["
|
88
|
-
"""
|
89
|
-
|
90
|
-
Returns a list of all models for an integration by ID.
|
85
|
+
) -> Optional[List["ResourceLog"]]:
|
86
|
+
"""Returns logs for a model deployment by name.
|
91
87
|
|
92
88
|
Args:
|
93
|
-
|
89
|
+
model_name (str):
|
94
90
|
|
95
91
|
Raises:
|
96
92
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
97
93
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
98
94
|
|
99
95
|
Returns:
|
100
|
-
List['
|
96
|
+
List['ResourceLog']
|
101
97
|
"""
|
102
98
|
|
103
99
|
return sync_detailed(
|
104
|
-
|
100
|
+
model_name=model_name,
|
105
101
|
client=client,
|
106
102
|
).parsed
|
107
103
|
|
108
104
|
|
109
105
|
async def asyncio_detailed(
|
110
|
-
|
106
|
+
model_name: str,
|
111
107
|
*,
|
112
108
|
client: AuthenticatedClient,
|
113
|
-
) -> Response[List["
|
114
|
-
"""
|
115
|
-
|
116
|
-
Returns a list of all models for an integration by ID.
|
109
|
+
) -> Response[List["ResourceLog"]]:
|
110
|
+
"""Returns logs for a model deployment by name.
|
117
111
|
|
118
112
|
Args:
|
119
|
-
|
113
|
+
model_name (str):
|
120
114
|
|
121
115
|
Raises:
|
122
116
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
123
117
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
124
118
|
|
125
119
|
Returns:
|
126
|
-
Response[List['
|
120
|
+
Response[List['ResourceLog']]
|
127
121
|
"""
|
128
122
|
|
129
123
|
kwargs = _get_kwargs(
|
130
|
-
|
124
|
+
model_name=model_name,
|
131
125
|
)
|
132
126
|
|
133
127
|
response = await client.get_async_httpx_client().request(**kwargs)
|
@@ -136,28 +130,26 @@ async def asyncio_detailed(
|
|
136
130
|
|
137
131
|
|
138
132
|
async def asyncio(
|
139
|
-
|
133
|
+
model_name: str,
|
140
134
|
*,
|
141
135
|
client: AuthenticatedClient,
|
142
|
-
) -> Optional[List["
|
143
|
-
"""
|
144
|
-
|
145
|
-
Returns a list of all models for an integration by ID.
|
136
|
+
) -> Optional[List["ResourceLog"]]:
|
137
|
+
"""Returns logs for a model deployment by name.
|
146
138
|
|
147
139
|
Args:
|
148
|
-
|
140
|
+
model_name (str):
|
149
141
|
|
150
142
|
Raises:
|
151
143
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
152
144
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
153
145
|
|
154
146
|
Returns:
|
155
|
-
List['
|
147
|
+
List['ResourceLog']
|
156
148
|
"""
|
157
149
|
|
158
150
|
return (
|
159
151
|
await asyncio_detailed(
|
160
|
-
|
152
|
+
model_name=model_name,
|
161
153
|
client=client,
|
162
154
|
)
|
163
155
|
).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
|
|
@@ -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["ModelDeployment"]]:
|
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["ModelDeployment"]]:
|
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
|
model_name: str,
|
54
54
|
*,
|
55
55
|
client: AuthenticatedClient,
|
56
|
-
) -> Response[
|
56
|
+
) -> Response[list["ModelDeployment"]]:
|
57
57
|
"""List model deployments
|
58
58
|
|
59
59
|
Returns a list of all deployments for a model.
|
@@ -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['ModelDeployment']]
|
70
70
|
"""
|
71
71
|
|
72
72
|
kwargs = _get_kwargs(
|
@@ -84,7 +84,7 @@ def sync(
|
|
84
84
|
model_name: str,
|
85
85
|
*,
|
86
86
|
client: AuthenticatedClient,
|
87
|
-
) -> Optional[
|
87
|
+
) -> Optional[list["ModelDeployment"]]:
|
88
88
|
"""List model deployments
|
89
89
|
|
90
90
|
Returns a list of all deployments for a model.
|
@@ -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['ModelDeployment']
|
101
101
|
"""
|
102
102
|
|
103
103
|
return sync_detailed(
|
@@ -110,7 +110,7 @@ async def asyncio_detailed(
|
|
110
110
|
model_name: str,
|
111
111
|
*,
|
112
112
|
client: AuthenticatedClient,
|
113
|
-
) -> Response[
|
113
|
+
) -> Response[list["ModelDeployment"]]:
|
114
114
|
"""List model deployments
|
115
115
|
|
116
116
|
Returns a list of all deployments for a model.
|
@@ -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['ModelDeployment']]
|
127
127
|
"""
|
128
128
|
|
129
129
|
kwargs = _get_kwargs(
|
@@ -139,7 +139,7 @@ async def asyncio(
|
|
139
139
|
model_name: str,
|
140
140
|
*,
|
141
141
|
client: AuthenticatedClient,
|
142
|
-
) -> Optional[
|
142
|
+
) -> Optional[list["ModelDeployment"]]:
|
143
143
|
"""List model deployments
|
144
144
|
|
145
145
|
Returns a list of all deployments for a model.
|
@@ -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['ModelDeployment']
|
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
|
|
@@ -18,7 +18,7 @@ def _get_kwargs() -> dict[str, Any]:
|
|
18
18
|
return _kwargs
|
19
19
|
|
20
20
|
|
21
|
-
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[
|
21
|
+
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[list["Model"]]:
|
22
22
|
if response.status_code == 200:
|
23
23
|
response_200 = []
|
24
24
|
_response_200 = response.json()
|
@@ -34,7 +34,7 @@ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: htt
|
|
34
34
|
return None
|
35
35
|
|
36
36
|
|
37
|
-
def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[
|
37
|
+
def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[list["Model"]]:
|
38
38
|
return Response(
|
39
39
|
status_code=HTTPStatus(response.status_code),
|
40
40
|
content=response.content,
|
@@ -46,7 +46,7 @@ def _build_response(*, client: Union[AuthenticatedClient, Client], response: htt
|
|
46
46
|
def sync_detailed(
|
47
47
|
*,
|
48
48
|
client: AuthenticatedClient,
|
49
|
-
) -> Response[
|
49
|
+
) -> Response[list["Model"]]:
|
50
50
|
"""List models
|
51
51
|
|
52
52
|
Returns a list of all models in the workspace.
|
@@ -56,7 +56,7 @@ def sync_detailed(
|
|
56
56
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
57
57
|
|
58
58
|
Returns:
|
59
|
-
Response[
|
59
|
+
Response[list['Model']]
|
60
60
|
"""
|
61
61
|
|
62
62
|
kwargs = _get_kwargs()
|
@@ -71,7 +71,7 @@ def sync_detailed(
|
|
71
71
|
def sync(
|
72
72
|
*,
|
73
73
|
client: AuthenticatedClient,
|
74
|
-
) -> Optional[
|
74
|
+
) -> Optional[list["Model"]]:
|
75
75
|
"""List models
|
76
76
|
|
77
77
|
Returns a list of all models in the workspace.
|
@@ -81,7 +81,7 @@ def sync(
|
|
81
81
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
82
82
|
|
83
83
|
Returns:
|
84
|
-
|
84
|
+
list['Model']
|
85
85
|
"""
|
86
86
|
|
87
87
|
return sync_detailed(
|
@@ -92,7 +92,7 @@ def sync(
|
|
92
92
|
async def asyncio_detailed(
|
93
93
|
*,
|
94
94
|
client: AuthenticatedClient,
|
95
|
-
) -> Response[
|
95
|
+
) -> Response[list["Model"]]:
|
96
96
|
"""List models
|
97
97
|
|
98
98
|
Returns a list of all models in the workspace.
|
@@ -102,7 +102,7 @@ async def asyncio_detailed(
|
|
102
102
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
103
103
|
|
104
104
|
Returns:
|
105
|
-
Response[
|
105
|
+
Response[list['Model']]
|
106
106
|
"""
|
107
107
|
|
108
108
|
kwargs = _get_kwargs()
|
@@ -115,7 +115,7 @@ async def asyncio_detailed(
|
|
115
115
|
async def asyncio(
|
116
116
|
*,
|
117
117
|
client: AuthenticatedClient,
|
118
|
-
) -> Optional[
|
118
|
+
) -> Optional[list["Model"]]:
|
119
119
|
"""List models
|
120
120
|
|
121
121
|
Returns a list of all models in the workspace.
|
@@ -125,7 +125,7 @@ async def asyncio(
|
|
125
125
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
126
126
|
|
127
127
|
Returns:
|
128
|
-
|
128
|
+
list['Model']
|
129
129
|
"""
|
130
130
|
|
131
131
|
return (
|