blaxel 0.2.33__py3-none-any.whl → 0.2.35__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.
- blaxel/__init__.py +2 -2
- blaxel/core/__init__.py +2 -1
- blaxel/core/client/api/agents/create_agent.py +64 -19
- blaxel/core/client/api/agents/delete_agent.py +44 -15
- blaxel/core/client/api/agents/get_agent.py +43 -14
- blaxel/core/client/api/agents/list_agents.py +40 -11
- blaxel/core/client/api/agents/update_agent.py +60 -19
- blaxel/core/client/api/compute/create_sandbox.py +60 -23
- blaxel/core/client/api/compute/delete_sandbox.py +40 -19
- blaxel/core/client/api/compute/get_sandbox.py +39 -18
- blaxel/core/client/api/compute/list_sandboxes.py +40 -19
- blaxel/core/client/api/compute/update_sandbox.py +56 -23
- blaxel/core/client/api/configurations/get_configuration.py +16 -4
- blaxel/core/client/api/customdomains/create_custom_domain.py +12 -0
- blaxel/core/client/api/customdomains/list_custom_domains.py +16 -4
- blaxel/core/client/api/default/get_template.py +8 -4
- blaxel/core/client/api/functions/create_function.py +62 -19
- blaxel/core/client/api/functions/delete_function.py +46 -15
- blaxel/core/client/api/functions/get_function.py +45 -14
- blaxel/core/client/api/functions/list_functions.py +44 -15
- blaxel/core/client/api/functions/update_function.py +62 -19
- blaxel/core/client/api/images/cleanup_images.py +12 -12
- blaxel/core/client/api/images/delete_image.py +12 -8
- blaxel/core/client/api/images/delete_image_tag.py +12 -8
- blaxel/core/client/api/images/get_image.py +12 -8
- blaxel/core/client/api/images/list_images.py +12 -8
- blaxel/core/client/api/integrations/create_integration_connection.py +56 -23
- blaxel/core/client/api/integrations/delete_integration_connection.py +48 -19
- blaxel/core/client/api/integrations/get_integration.py +12 -8
- blaxel/core/client/api/integrations/get_integration_connection.py +44 -19
- blaxel/core/client/api/integrations/get_integration_connection_model.py +2 -2
- blaxel/core/client/api/integrations/list_integration_connections.py +36 -19
- blaxel/core/client/api/integrations/update_integration_connection.py +52 -19
- blaxel/core/client/api/jobs/create_job.py +20 -12
- blaxel/core/client/api/jobs/create_job_execution.py +22 -16
- blaxel/core/client/api/jobs/delete_job.py +12 -8
- blaxel/core/client/api/jobs/delete_job_execution.py +12 -8
- blaxel/core/client/api/jobs/get_job.py +24 -20
- blaxel/core/client/api/jobs/get_job_execution.py +8 -4
- blaxel/core/client/api/jobs/list_job_executions.py +8 -4
- blaxel/core/client/api/jobs/list_jobs.py +12 -8
- blaxel/core/client/api/jobs/update_job.py +20 -12
- blaxel/core/client/api/locations/list_locations.py +12 -8
- blaxel/core/client/api/{default → mcphub}/list_mcp_hub_definitions.py +20 -4
- blaxel/core/client/api/models/create_model.py +52 -23
- blaxel/core/client/api/models/delete_model.py +40 -19
- blaxel/core/client/api/models/get_model.py +40 -19
- blaxel/core/client/api/models/list_models.py +40 -19
- blaxel/core/client/api/models/update_model.py +52 -23
- blaxel/core/client/api/policies/create_policy.py +12 -8
- blaxel/core/client/api/policies/delete_policy.py +12 -8
- blaxel/core/client/api/policies/get_policy.py +12 -8
- blaxel/core/client/api/policies/list_policies.py +12 -8
- blaxel/core/client/api/policies/update_policy.py +12 -8
- blaxel/core/client/api/public_ipslist/list_public_ips.py +37 -5
- blaxel/core/client/api/sandboxhub/__init__.py +0 -0
- blaxel/core/client/api/{default → sandboxhub}/list_sandbox_hub_definitions.py +20 -4
- blaxel/core/client/api/service_accounts/create_api_key_for_service_account.py +12 -8
- blaxel/core/client/api/service_accounts/create_workspace_service_account.py +12 -8
- blaxel/core/client/api/service_accounts/delete_api_key_for_service_account.py +6 -4
- blaxel/core/client/api/service_accounts/delete_workspace_service_account.py +12 -8
- blaxel/core/client/api/service_accounts/get_workspace_service_accounts.py +12 -8
- blaxel/core/client/api/service_accounts/list_api_keys_for_service_account.py +12 -8
- blaxel/core/client/api/service_accounts/update_workspace_service_account.py +8 -8
- blaxel/core/client/api/templates/list_templates.py +12 -8
- blaxel/core/client/api/volume_templates/create_volume_template.py +8 -4
- blaxel/core/client/api/volume_templates/list_volume_templates.py +8 -4
- blaxel/core/client/api/volumes/create_volume.py +56 -23
- blaxel/core/client/api/volumes/delete_volume.py +44 -19
- blaxel/core/client/api/volumes/get_volume.py +40 -19
- blaxel/core/client/api/volumes/list_volumes.py +40 -19
- blaxel/core/client/api/workspaces/create_workspace.py +54 -23
- blaxel/core/client/api/workspaces/delete_workspace.py +42 -19
- blaxel/core/client/api/workspaces/get_workspace.py +42 -19
- blaxel/core/client/api/workspaces/invite_workspace_user.py +8 -4
- blaxel/core/client/api/workspaces/list_workspace_users.py +12 -8
- blaxel/core/client/api/workspaces/list_workspaces.py +36 -19
- blaxel/core/client/api/workspaces/update_workspace.py +50 -19
- blaxel/core/client/models/__init__.py +76 -146
- blaxel/core/client/models/agent.py +43 -47
- blaxel/core/client/models/agent_runtime.py +139 -0
- blaxel/core/client/models/agent_runtime_generation.py +18 -0
- blaxel/core/client/models/agent_spec.py +33 -110
- blaxel/core/client/models/api_key.py +5 -4
- blaxel/core/client/models/core_event.py +5 -5
- blaxel/core/client/models/create_api_key_for_service_account_body.py +2 -1
- blaxel/core/client/models/create_job_execution_request.py +1 -1
- blaxel/core/client/models/create_job_execution_response.py +13 -9
- blaxel/core/client/models/custom_domain.py +19 -36
- blaxel/core/client/models/custom_domain_metadata.py +4 -3
- blaxel/core/client/models/custom_domain_spec.py +14 -5
- blaxel/core/client/models/custom_domain_spec_status.py +19 -0
- blaxel/core/client/models/entrypoint.py +39 -13
- blaxel/core/client/models/{workspace_labels.py → entrypoint_args_item.py} +6 -6
- blaxel/core/client/models/entrypoint_env.py +3 -3
- blaxel/core/client/models/{job_metrics_executions_total.py → entrypoint_super_gateway_args_item.py} +6 -6
- blaxel/core/client/models/{spec_configuration.py → env.py} +17 -8
- blaxel/core/{sandbox/client/models/welcome_response.py → client/models/error.py} +26 -23
- blaxel/core/client/models/expiration_policy.py +30 -11
- blaxel/core/client/models/expiration_policy_action.py +17 -0
- blaxel/core/client/models/expiration_policy_type.py +19 -0
- blaxel/core/client/models/flavor.py +13 -5
- blaxel/core/client/models/flavor_type.py +18 -0
- blaxel/core/client/models/form.py +6 -6
- blaxel/core/client/models/function.py +43 -47
- blaxel/core/client/models/function_runtime.py +138 -0
- blaxel/core/client/models/function_runtime_generation.py +18 -0
- blaxel/core/client/models/function_spec.py +27 -73
- blaxel/core/client/models/function_spec_transport.py +18 -0
- blaxel/core/client/models/image.py +19 -36
- blaxel/core/client/models/integration_connection.py +25 -39
- blaxel/core/client/models/integration_connection_spec.py +8 -5
- blaxel/core/client/models/integration_connection_spec_config.py +1 -1
- blaxel/core/client/models/integration_connection_spec_secret.py +1 -1
- blaxel/core/client/models/integration_endpoint.py +41 -11
- blaxel/core/client/models/integration_endpoint_ignore_models_item.py +45 -0
- blaxel/core/client/models/{mcp_definition_entrypoint.py → integration_endpoint_models_item.py} +6 -6
- blaxel/core/client/models/job.py +43 -47
- blaxel/core/client/models/job_execution.py +30 -37
- blaxel/core/client/models/job_execution_metadata.py +3 -3
- blaxel/core/client/models/job_execution_spec.py +2 -2
- blaxel/core/client/models/job_execution_stats.py +5 -5
- blaxel/core/client/models/job_execution_status.py +24 -0
- blaxel/core/client/models/job_execution_task.py +12 -4
- blaxel/core/client/models/job_execution_task_metadata.py +1 -1
- blaxel/core/client/models/job_execution_task_spec.py +2 -2
- blaxel/core/client/models/job_execution_task_status.py +23 -0
- blaxel/core/client/models/job_runtime.py +172 -0
- blaxel/core/client/models/job_runtime_generation.py +18 -0
- blaxel/core/client/models/job_spec.py +20 -88
- blaxel/core/client/models/location_response.py +5 -5
- blaxel/core/client/models/mcp_definition.py +30 -17
- blaxel/core/client/models/{job_metrics_tasks_total.py → mcp_definition_categories_item.py} +6 -6
- blaxel/core/client/models/metadata.py +23 -17
- blaxel/core/client/models/metadata_labels.py +4 -1
- blaxel/core/client/models/model.py +43 -47
- blaxel/core/client/models/model_runtime.py +99 -0
- blaxel/core/client/models/model_runtime_type.py +34 -0
- blaxel/core/client/models/model_spec.py +12 -58
- blaxel/core/client/models/o_auth.py +23 -6
- blaxel/core/client/models/{form_oauth.py → o_auth_scope_item.py} +6 -6
- blaxel/core/client/models/pending_invitation_accept.py +2 -1
- blaxel/core/client/models/pending_invitation_workspace_details.py +27 -6
- blaxel/core/client/models/{metrics_request_total_per_code.py → pending_invitation_workspace_details_emails_item.py} +6 -6
- blaxel/core/client/models/policy.py +20 -36
- blaxel/core/client/models/policy_location.py +13 -5
- blaxel/core/client/models/policy_location_type.py +19 -0
- blaxel/core/client/models/policy_max_tokens.py +6 -6
- blaxel/core/client/models/policy_resource_type.py +20 -0
- blaxel/core/client/models/policy_spec.py +31 -10
- blaxel/core/client/models/policy_spec_type.py +19 -0
- blaxel/core/client/models/port.py +25 -15
- blaxel/core/client/models/port_protocol.py +19 -0
- blaxel/core/client/models/preview.py +19 -36
- blaxel/core/client/models/preview_metadata.py +12 -10
- blaxel/core/client/models/preview_token.py +19 -36
- blaxel/core/client/models/preview_token_metadata.py +8 -6
- blaxel/core/client/models/repository.py +2 -2
- blaxel/core/client/models/revision_configuration.py +3 -3
- blaxel/core/client/models/sandbox.py +45 -58
- blaxel/core/client/models/sandbox_definition.py +37 -22
- blaxel/core/client/models/sandbox_definition_categories_item.py +45 -0
- blaxel/core/client/models/sandbox_error.py +148 -0
- blaxel/core/client/models/sandbox_error_details.py +45 -0
- blaxel/core/client/models/sandbox_lifecycle.py +3 -2
- blaxel/core/client/models/sandbox_runtime.py +145 -0
- blaxel/core/client/models/sandbox_spec.py +33 -134
- blaxel/core/client/models/status.py +25 -0
- blaxel/core/client/models/template.py +8 -7
- blaxel/core/client/models/template_variable.py +5 -5
- blaxel/core/client/models/trigger.py +14 -6
- blaxel/core/client/models/trigger_configuration.py +7 -6
- blaxel/core/client/models/trigger_type.py +19 -0
- blaxel/core/client/models/volume.py +35 -47
- blaxel/core/client/models/volume_attachment.py +6 -4
- blaxel/core/client/models/volume_spec.py +7 -4
- blaxel/core/client/models/volume_state.py +3 -3
- blaxel/core/client/models/volume_template.py +19 -33
- blaxel/core/client/models/volume_template_state.py +12 -4
- blaxel/core/client/models/volume_template_state_status.py +19 -0
- blaxel/core/client/models/volume_template_version.py +12 -4
- blaxel/core/client/models/volume_template_version_status.py +19 -0
- blaxel/core/client/models/workspace.py +35 -25
- blaxel/core/client/models/workspace_runtime.py +3 -2
- blaxel/core/client/models/workspace_status.py +22 -0
- blaxel/core/common/__init__.py +1 -1
- blaxel/core/jobs/__init__.py +0 -1
- blaxel/core/sandbox/__init__.py +2 -0
- blaxel/core/sandbox/client/api/process/post_process.py +8 -4
- blaxel/core/sandbox/client/models/__init__.py +0 -2
- blaxel/core/sandbox/client/models/process_response.py +16 -0
- blaxel/core/sandbox/client/models/process_response_status.py +9 -0
- blaxel/core/sandbox/default/__init__.py +2 -0
- blaxel/core/sandbox/default/interpreter.py +5 -1
- blaxel/core/sandbox/default/preview.py +3 -1
- blaxel/core/sandbox/default/sandbox.py +85 -26
- blaxel/core/sandbox/sync/process.py +2 -1
- blaxel/core/sandbox/sync/sandbox.py +68 -23
- blaxel/core/sandbox/types.py +3 -0
- blaxel/core/tools/common.py +16 -2
- blaxel/core/volume/__init__.py +2 -2
- blaxel/core/volume/volume.py +227 -11
- blaxel/langgraph/tools.py +34 -2
- blaxel/openai/tools.py +33 -1
- {blaxel-0.2.33.dist-info → blaxel-0.2.35.dist-info}/METADATA +3 -3
- {blaxel-0.2.33.dist-info → blaxel-0.2.35.dist-info}/RECORD +209 -248
- blaxel/core/client/models/acl.py +0 -133
- blaxel/core/client/models/billable_time_metric.py +0 -89
- blaxel/core/client/models/core_spec.py +0 -194
- blaxel/core/client/models/core_spec_configurations.py +0 -77
- blaxel/core/client/models/histogram_bucket.py +0 -79
- blaxel/core/client/models/histogram_stats.py +0 -88
- blaxel/core/client/models/integration_model.py +0 -162
- blaxel/core/client/models/job_execution_config.py +0 -79
- blaxel/core/client/models/job_metrics.py +0 -262
- blaxel/core/client/models/jobs_chart_value.py +0 -70
- blaxel/core/client/models/jobs_network_chart.py +0 -102
- blaxel/core/client/models/jobs_success_failed_chart.py +0 -147
- blaxel/core/client/models/jobs_total.py +0 -88
- blaxel/core/client/models/last_n_requests_metric.py +0 -97
- blaxel/core/client/models/latency_metric.py +0 -148
- blaxel/core/client/models/logs_response.py +0 -63
- blaxel/core/client/models/logs_response_data.py +0 -99
- blaxel/core/client/models/mcp_definition_form.py +0 -45
- blaxel/core/client/models/memory_allocation_by_name.py +0 -70
- blaxel/core/client/models/memory_allocation_metric.py +0 -61
- blaxel/core/client/models/metric.py +0 -79
- blaxel/core/client/models/metrics.py +0 -273
- blaxel/core/client/models/metrics_models.py +0 -45
- blaxel/core/client/models/metrics_rps_per_code.py +0 -45
- blaxel/core/client/models/pod_template_spec.py +0 -45
- blaxel/core/client/models/request_duration_over_time_metric.py +0 -97
- blaxel/core/client/models/request_duration_over_time_metrics.py +0 -84
- blaxel/core/client/models/request_total_by_origin_metric.py +0 -129
- blaxel/core/client/models/request_total_by_origin_metric_request_total_by_origin.py +0 -45
- blaxel/core/client/models/request_total_by_origin_metric_request_total_by_origin_and_code.py +0 -45
- blaxel/core/client/models/request_total_metric.py +0 -155
- blaxel/core/client/models/request_total_metric_request_total_per_code.py +0 -45
- blaxel/core/client/models/request_total_metric_rps_per_code.py +0 -45
- blaxel/core/client/models/request_total_response_data.py +0 -97
- blaxel/core/client/models/resource.py +0 -99
- blaxel/core/client/models/resource_log.py +0 -88
- blaxel/core/client/models/resource_log_chart.py +0 -133
- blaxel/core/client/models/resource_log_response.py +0 -83
- blaxel/core/client/models/resource_metrics.py +0 -618
- blaxel/core/client/models/resource_metrics_request_total_per_code.py +0 -45
- blaxel/core/client/models/resource_metrics_request_total_per_code_previous.py +0 -45
- blaxel/core/client/models/resource_metrics_rps_per_code.py +0 -45
- blaxel/core/client/models/resource_metrics_rps_per_code_previous.py +0 -45
- blaxel/core/client/models/resource_trace.py +0 -97
- blaxel/core/client/models/runtime.py +0 -317
- blaxel/core/client/models/runtime_configuration.py +0 -45
- blaxel/core/client/models/runtime_startup_probe.py +0 -45
- blaxel/core/client/models/sandbox_metrics.py +0 -88
- blaxel/core/client/models/serverless_config.py +0 -117
- blaxel/core/client/models/serverless_config_configuration.py +0 -45
- blaxel/core/client/models/start_sandbox.py +0 -98
- blaxel/core/client/models/stop_sandbox.py +0 -98
- blaxel/core/client/models/store_agent.py +0 -181
- blaxel/core/client/models/store_agent_labels.py +0 -45
- blaxel/core/client/models/store_configuration.py +0 -156
- blaxel/core/client/models/store_configuration_option.py +0 -79
- blaxel/core/client/models/time_to_first_token_over_time_metrics.py +0 -87
- blaxel/core/client/models/token_rate_metric.py +0 -106
- blaxel/core/client/models/token_rate_metrics.py +0 -124
- blaxel/core/client/models/token_total_metric.py +0 -112
- blaxel/core/client/models/trace_ids_response.py +0 -45
- blaxel/core/client/models/websocket_channel.py +0 -97
- blaxel/core/client/models/websocket_message.py +0 -106
- blaxel/core/sandbox/client/api/root/delete.py +0 -130
- blaxel/core/sandbox/client/api/root/get.py +0 -130
- blaxel/core/sandbox/client/api/root/options.py +0 -130
- blaxel/core/sandbox/client/api/root/patch.py +0 -130
- blaxel/core/sandbox/client/api/root/post.py +0 -130
- blaxel/core/sandbox/client/api/root/put.py +0 -130
- /blaxel/core/{sandbox/client/api/root → client/api/mcphub}/__init__.py +0 -0
- {blaxel-0.2.33.dist-info → blaxel-0.2.35.dist-info}/WHEEL +0 -0
- {blaxel-0.2.33.dist-info → blaxel-0.2.35.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
"""Contains all the data models used in inputs/outputs"""
|
|
2
2
|
|
|
3
|
-
from .acl import ACL
|
|
4
3
|
from .agent import Agent
|
|
4
|
+
from .agent_runtime import AgentRuntime
|
|
5
|
+
from .agent_runtime_generation import AgentRuntimeGeneration
|
|
5
6
|
from .agent_spec import AgentSpec
|
|
6
7
|
from .api_key import ApiKey
|
|
7
|
-
from .billable_time_metric import BillableTimeMetric
|
|
8
8
|
from .check_workspace_availability_body import CheckWorkspaceAvailabilityBody
|
|
9
9
|
from .cleanup_images_response_200 import CleanupImagesResponse200
|
|
10
10
|
from .configuration import Configuration
|
|
11
11
|
from .continent import Continent
|
|
12
12
|
from .core_event import CoreEvent
|
|
13
|
-
from .core_spec import CoreSpec
|
|
14
|
-
from .core_spec_configurations import CoreSpecConfigurations
|
|
15
13
|
from .country import Country
|
|
16
14
|
from .create_api_key_for_service_account_body import CreateApiKeyForServiceAccountBody
|
|
17
15
|
from .create_job_execution_request import CreateJobExecutionRequest
|
|
@@ -23,25 +21,33 @@ from .create_workspace_service_account_response_200 import CreateWorkspaceServic
|
|
|
23
21
|
from .custom_domain import CustomDomain
|
|
24
22
|
from .custom_domain_metadata import CustomDomainMetadata
|
|
25
23
|
from .custom_domain_spec import CustomDomainSpec
|
|
24
|
+
from .custom_domain_spec_status import CustomDomainSpecStatus
|
|
26
25
|
from .custom_domain_spec_txt_records import CustomDomainSpecTxtRecords
|
|
27
26
|
from .delete_sandbox_preview_token_response_200 import DeleteSandboxPreviewTokenResponse200
|
|
28
27
|
from .delete_volume_template_version_response_200 import DeleteVolumeTemplateVersionResponse200
|
|
29
28
|
from .delete_workspace_service_account_response_200 import DeleteWorkspaceServiceAccountResponse200
|
|
30
29
|
from .entrypoint import Entrypoint
|
|
30
|
+
from .entrypoint_args_item import EntrypointArgsItem
|
|
31
31
|
from .entrypoint_env import EntrypointEnv
|
|
32
|
+
from .entrypoint_super_gateway_args_item import EntrypointSuperGatewayArgsItem
|
|
33
|
+
from .env import Env
|
|
34
|
+
from .error import Error
|
|
32
35
|
from .expiration_policy import ExpirationPolicy
|
|
36
|
+
from .expiration_policy_action import ExpirationPolicyAction
|
|
37
|
+
from .expiration_policy_type import ExpirationPolicyType
|
|
33
38
|
from .flavor import Flavor
|
|
39
|
+
from .flavor_type import FlavorType
|
|
34
40
|
from .form import Form
|
|
35
41
|
from .form_config import FormConfig
|
|
36
|
-
from .form_oauth import FormOauth
|
|
37
42
|
from .form_secrets import FormSecrets
|
|
38
43
|
from .function import Function
|
|
44
|
+
from .function_runtime import FunctionRuntime
|
|
45
|
+
from .function_runtime_generation import FunctionRuntimeGeneration
|
|
39
46
|
from .function_spec import FunctionSpec
|
|
47
|
+
from .function_spec_transport import FunctionSpecTransport
|
|
40
48
|
from .get_workspace_service_accounts_response_200_item import (
|
|
41
49
|
GetWorkspaceServiceAccountsResponse200Item,
|
|
42
50
|
)
|
|
43
|
-
from .histogram_bucket import HistogramBucket
|
|
44
|
-
from .histogram_stats import HistogramStats
|
|
45
51
|
from .image import Image
|
|
46
52
|
from .image_metadata import ImageMetadata
|
|
47
53
|
from .image_spec import ImageSpec
|
|
@@ -53,52 +59,40 @@ from .integration_connection_spec import IntegrationConnectionSpec
|
|
|
53
59
|
from .integration_connection_spec_config import IntegrationConnectionSpecConfig
|
|
54
60
|
from .integration_connection_spec_secret import IntegrationConnectionSpecSecret
|
|
55
61
|
from .integration_endpoint import IntegrationEndpoint
|
|
62
|
+
from .integration_endpoint_ignore_models_item import IntegrationEndpointIgnoreModelsItem
|
|
63
|
+
from .integration_endpoint_models_item import IntegrationEndpointModelsItem
|
|
56
64
|
from .integration_endpoint_token import IntegrationEndpointToken
|
|
57
65
|
from .integration_endpoints import IntegrationEndpoints
|
|
58
66
|
from .integration_headers import IntegrationHeaders
|
|
59
|
-
from .integration_model import IntegrationModel
|
|
60
67
|
from .integration_organization import IntegrationOrganization
|
|
61
68
|
from .integration_query_params import IntegrationQueryParams
|
|
62
69
|
from .integration_repository import IntegrationRepository
|
|
63
70
|
from .invite_workspace_user_body import InviteWorkspaceUserBody
|
|
64
71
|
from .job import Job
|
|
65
72
|
from .job_execution import JobExecution
|
|
66
|
-
from .job_execution_config import JobExecutionConfig
|
|
67
73
|
from .job_execution_metadata import JobExecutionMetadata
|
|
68
74
|
from .job_execution_spec import JobExecutionSpec
|
|
69
75
|
from .job_execution_stats import JobExecutionStats
|
|
76
|
+
from .job_execution_status import JobExecutionStatus
|
|
70
77
|
from .job_execution_task import JobExecutionTask
|
|
71
78
|
from .job_execution_task_condition import JobExecutionTaskCondition
|
|
72
79
|
from .job_execution_task_metadata import JobExecutionTaskMetadata
|
|
73
80
|
from .job_execution_task_spec import JobExecutionTaskSpec
|
|
74
|
-
from .
|
|
75
|
-
from .
|
|
76
|
-
from .
|
|
81
|
+
from .job_execution_task_status import JobExecutionTaskStatus
|
|
82
|
+
from .job_runtime import JobRuntime
|
|
83
|
+
from .job_runtime_generation import JobRuntimeGeneration
|
|
77
84
|
from .job_spec import JobSpec
|
|
78
|
-
from .jobs_chart_value import JobsChartValue
|
|
79
|
-
from .jobs_network_chart import JobsNetworkChart
|
|
80
|
-
from .jobs_success_failed_chart import JobsSuccessFailedChart
|
|
81
|
-
from .jobs_total import JobsTotal
|
|
82
|
-
from .last_n_requests_metric import LastNRequestsMetric
|
|
83
|
-
from .latency_metric import LatencyMetric
|
|
84
85
|
from .location_response import LocationResponse
|
|
85
|
-
from .logs_response import LogsResponse
|
|
86
|
-
from .logs_response_data import LogsResponseData
|
|
87
86
|
from .mcp_definition import MCPDefinition
|
|
88
|
-
from .
|
|
89
|
-
from .mcp_definition_form import MCPDefinitionForm
|
|
90
|
-
from .memory_allocation_by_name import MemoryAllocationByName
|
|
91
|
-
from .memory_allocation_metric import MemoryAllocationMetric
|
|
87
|
+
from .mcp_definition_categories_item import MCPDefinitionCategoriesItem
|
|
92
88
|
from .metadata import Metadata
|
|
93
89
|
from .metadata_labels import MetadataLabels
|
|
94
|
-
from .metric import Metric
|
|
95
|
-
from .metrics import Metrics
|
|
96
|
-
from .metrics_models import MetricsModels
|
|
97
|
-
from .metrics_request_total_per_code import MetricsRequestTotalPerCode
|
|
98
|
-
from .metrics_rps_per_code import MetricsRpsPerCode
|
|
99
90
|
from .model import Model
|
|
91
|
+
from .model_runtime import ModelRuntime
|
|
92
|
+
from .model_runtime_type import ModelRuntimeType
|
|
100
93
|
from .model_spec import ModelSpec
|
|
101
94
|
from .o_auth import OAuth
|
|
95
|
+
from .o_auth_scope_item import OAuthScopeItem
|
|
102
96
|
from .owner_fields import OwnerFields
|
|
103
97
|
from .pending_invitation import PendingInvitation
|
|
104
98
|
from .pending_invitation_accept import PendingInvitationAccept
|
|
@@ -106,12 +100,18 @@ from .pending_invitation_render import PendingInvitationRender
|
|
|
106
100
|
from .pending_invitation_render_invited_by import PendingInvitationRenderInvitedBy
|
|
107
101
|
from .pending_invitation_render_workspace import PendingInvitationRenderWorkspace
|
|
108
102
|
from .pending_invitation_workspace_details import PendingInvitationWorkspaceDetails
|
|
109
|
-
from .
|
|
103
|
+
from .pending_invitation_workspace_details_emails_item import (
|
|
104
|
+
PendingInvitationWorkspaceDetailsEmailsItem,
|
|
105
|
+
)
|
|
110
106
|
from .policy import Policy
|
|
111
107
|
from .policy_location import PolicyLocation
|
|
108
|
+
from .policy_location_type import PolicyLocationType
|
|
112
109
|
from .policy_max_tokens import PolicyMaxTokens
|
|
110
|
+
from .policy_resource_type import PolicyResourceType
|
|
113
111
|
from .policy_spec import PolicySpec
|
|
112
|
+
from .policy_spec_type import PolicySpecType
|
|
114
113
|
from .port import Port
|
|
114
|
+
from .port_protocol import PortProtocol
|
|
115
115
|
from .preview import Preview
|
|
116
116
|
from .preview_metadata import PreviewMetadata
|
|
117
117
|
from .preview_spec import PreviewSpec
|
|
@@ -125,61 +125,24 @@ from .public_ip import PublicIp
|
|
|
125
125
|
from .public_ips import PublicIps
|
|
126
126
|
from .region import Region
|
|
127
127
|
from .repository import Repository
|
|
128
|
-
from .request_duration_over_time_metric import RequestDurationOverTimeMetric
|
|
129
|
-
from .request_duration_over_time_metrics import RequestDurationOverTimeMetrics
|
|
130
|
-
from .request_total_by_origin_metric import RequestTotalByOriginMetric
|
|
131
|
-
from .request_total_by_origin_metric_request_total_by_origin import (
|
|
132
|
-
RequestTotalByOriginMetricRequestTotalByOrigin,
|
|
133
|
-
)
|
|
134
|
-
from .request_total_by_origin_metric_request_total_by_origin_and_code import (
|
|
135
|
-
RequestTotalByOriginMetricRequestTotalByOriginAndCode,
|
|
136
|
-
)
|
|
137
|
-
from .request_total_metric import RequestTotalMetric
|
|
138
|
-
from .request_total_metric_request_total_per_code import RequestTotalMetricRequestTotalPerCode
|
|
139
|
-
from .request_total_metric_rps_per_code import RequestTotalMetricRpsPerCode
|
|
140
|
-
from .request_total_response_data import RequestTotalResponseData
|
|
141
|
-
from .resource import Resource
|
|
142
|
-
from .resource_log import ResourceLog
|
|
143
|
-
from .resource_log_chart import ResourceLogChart
|
|
144
|
-
from .resource_log_response import ResourceLogResponse
|
|
145
|
-
from .resource_metrics import ResourceMetrics
|
|
146
|
-
from .resource_metrics_request_total_per_code import ResourceMetricsRequestTotalPerCode
|
|
147
|
-
from .resource_metrics_request_total_per_code_previous import (
|
|
148
|
-
ResourceMetricsRequestTotalPerCodePrevious,
|
|
149
|
-
)
|
|
150
|
-
from .resource_metrics_rps_per_code import ResourceMetricsRpsPerCode
|
|
151
|
-
from .resource_metrics_rps_per_code_previous import ResourceMetricsRpsPerCodePrevious
|
|
152
|
-
from .resource_trace import ResourceTrace
|
|
153
128
|
from .revision_configuration import RevisionConfiguration
|
|
154
129
|
from .revision_metadata import RevisionMetadata
|
|
155
|
-
from .runtime import Runtime
|
|
156
|
-
from .runtime_configuration import RuntimeConfiguration
|
|
157
|
-
from .runtime_startup_probe import RuntimeStartupProbe
|
|
158
130
|
from .sandbox import Sandbox
|
|
159
131
|
from .sandbox_definition import SandboxDefinition
|
|
132
|
+
from .sandbox_definition_categories_item import SandboxDefinitionCategoriesItem
|
|
133
|
+
from .sandbox_error import SandboxError
|
|
134
|
+
from .sandbox_error_details import SandboxErrorDetails
|
|
160
135
|
from .sandbox_lifecycle import SandboxLifecycle
|
|
161
|
-
from .
|
|
136
|
+
from .sandbox_runtime import SandboxRuntime
|
|
162
137
|
from .sandbox_spec import SandboxSpec
|
|
163
|
-
from .
|
|
164
|
-
from .serverless_config_configuration import ServerlessConfigConfiguration
|
|
165
|
-
from .spec_configuration import SpecConfiguration
|
|
166
|
-
from .start_sandbox import StartSandbox
|
|
167
|
-
from .stop_sandbox import StopSandbox
|
|
168
|
-
from .store_agent import StoreAgent
|
|
169
|
-
from .store_agent_labels import StoreAgentLabels
|
|
170
|
-
from .store_configuration import StoreConfiguration
|
|
171
|
-
from .store_configuration_option import StoreConfigurationOption
|
|
138
|
+
from .status import Status
|
|
172
139
|
from .template import Template
|
|
173
140
|
from .template_variable import TemplateVariable
|
|
174
141
|
from .time_fields import TimeFields
|
|
175
|
-
from .time_to_first_token_over_time_metrics import TimeToFirstTokenOverTimeMetrics
|
|
176
|
-
from .token_rate_metric import TokenRateMetric
|
|
177
|
-
from .token_rate_metrics import TokenRateMetrics
|
|
178
|
-
from .token_total_metric import TokenTotalMetric
|
|
179
|
-
from .trace_ids_response import TraceIdsResponse
|
|
180
142
|
from .trigger import Trigger
|
|
181
143
|
from .trigger_configuration import TriggerConfiguration
|
|
182
144
|
from .trigger_configuration_task import TriggerConfigurationTask
|
|
145
|
+
from .trigger_type import TriggerType
|
|
183
146
|
from .update_workspace_service_account_body import UpdateWorkspaceServiceAccountBody
|
|
184
147
|
from .update_workspace_service_account_response_200 import UpdateWorkspaceServiceAccountResponse200
|
|
185
148
|
from .update_workspace_user_role_body import UpdateWorkspaceUserRoleBody
|
|
@@ -190,27 +153,25 @@ from .volume_state import VolumeState
|
|
|
190
153
|
from .volume_template import VolumeTemplate
|
|
191
154
|
from .volume_template_spec import VolumeTemplateSpec
|
|
192
155
|
from .volume_template_state import VolumeTemplateState
|
|
156
|
+
from .volume_template_state_status import VolumeTemplateStateStatus
|
|
193
157
|
from .volume_template_version import VolumeTemplateVersion
|
|
194
|
-
from .
|
|
195
|
-
from .websocket_message import WebsocketMessage
|
|
158
|
+
from .volume_template_version_status import VolumeTemplateVersionStatus
|
|
196
159
|
from .workspace import Workspace
|
|
197
|
-
from .workspace_labels import WorkspaceLabels
|
|
198
160
|
from .workspace_runtime import WorkspaceRuntime
|
|
161
|
+
from .workspace_status import WorkspaceStatus
|
|
199
162
|
from .workspace_user import WorkspaceUser
|
|
200
163
|
|
|
201
164
|
__all__ = (
|
|
202
|
-
"ACL",
|
|
203
165
|
"Agent",
|
|
166
|
+
"AgentRuntime",
|
|
167
|
+
"AgentRuntimeGeneration",
|
|
204
168
|
"AgentSpec",
|
|
205
169
|
"ApiKey",
|
|
206
|
-
"BillableTimeMetric",
|
|
207
170
|
"CheckWorkspaceAvailabilityBody",
|
|
208
171
|
"CleanupImagesResponse200",
|
|
209
172
|
"Configuration",
|
|
210
173
|
"Continent",
|
|
211
174
|
"CoreEvent",
|
|
212
|
-
"CoreSpec",
|
|
213
|
-
"CoreSpecConfigurations",
|
|
214
175
|
"Country",
|
|
215
176
|
"CreateApiKeyForServiceAccountBody",
|
|
216
177
|
"CreateJobExecutionRequest",
|
|
@@ -222,23 +183,31 @@ __all__ = (
|
|
|
222
183
|
"CustomDomain",
|
|
223
184
|
"CustomDomainMetadata",
|
|
224
185
|
"CustomDomainSpec",
|
|
186
|
+
"CustomDomainSpecStatus",
|
|
225
187
|
"CustomDomainSpecTxtRecords",
|
|
226
188
|
"DeleteSandboxPreviewTokenResponse200",
|
|
227
189
|
"DeleteVolumeTemplateVersionResponse200",
|
|
228
190
|
"DeleteWorkspaceServiceAccountResponse200",
|
|
229
191
|
"Entrypoint",
|
|
192
|
+
"EntrypointArgsItem",
|
|
230
193
|
"EntrypointEnv",
|
|
194
|
+
"EntrypointSuperGatewayArgsItem",
|
|
195
|
+
"Env",
|
|
196
|
+
"Error",
|
|
231
197
|
"ExpirationPolicy",
|
|
198
|
+
"ExpirationPolicyAction",
|
|
199
|
+
"ExpirationPolicyType",
|
|
232
200
|
"Flavor",
|
|
201
|
+
"FlavorType",
|
|
233
202
|
"Form",
|
|
234
203
|
"FormConfig",
|
|
235
|
-
"FormOauth",
|
|
236
204
|
"FormSecrets",
|
|
237
205
|
"Function",
|
|
206
|
+
"FunctionRuntime",
|
|
207
|
+
"FunctionRuntimeGeneration",
|
|
238
208
|
"FunctionSpec",
|
|
209
|
+
"FunctionSpecTransport",
|
|
239
210
|
"GetWorkspaceServiceAccountsResponse200Item",
|
|
240
|
-
"HistogramBucket",
|
|
241
|
-
"HistogramStats",
|
|
242
211
|
"Image",
|
|
243
212
|
"ImageMetadata",
|
|
244
213
|
"ImageSpec",
|
|
@@ -250,52 +219,40 @@ __all__ = (
|
|
|
250
219
|
"IntegrationConnectionSpecConfig",
|
|
251
220
|
"IntegrationConnectionSpecSecret",
|
|
252
221
|
"IntegrationEndpoint",
|
|
222
|
+
"IntegrationEndpointIgnoreModelsItem",
|
|
223
|
+
"IntegrationEndpointModelsItem",
|
|
253
224
|
"IntegrationEndpoints",
|
|
254
225
|
"IntegrationEndpointToken",
|
|
255
226
|
"IntegrationHeaders",
|
|
256
|
-
"IntegrationModel",
|
|
257
227
|
"IntegrationOrganization",
|
|
258
228
|
"IntegrationQueryParams",
|
|
259
229
|
"IntegrationRepository",
|
|
260
230
|
"InviteWorkspaceUserBody",
|
|
261
231
|
"Job",
|
|
262
232
|
"JobExecution",
|
|
263
|
-
"JobExecutionConfig",
|
|
264
233
|
"JobExecutionMetadata",
|
|
265
234
|
"JobExecutionSpec",
|
|
266
235
|
"JobExecutionStats",
|
|
236
|
+
"JobExecutionStatus",
|
|
267
237
|
"JobExecutionTask",
|
|
268
238
|
"JobExecutionTaskCondition",
|
|
269
239
|
"JobExecutionTaskMetadata",
|
|
270
240
|
"JobExecutionTaskSpec",
|
|
271
|
-
"
|
|
272
|
-
"
|
|
273
|
-
"
|
|
274
|
-
"JobsChartValue",
|
|
275
|
-
"JobsNetworkChart",
|
|
241
|
+
"JobExecutionTaskStatus",
|
|
242
|
+
"JobRuntime",
|
|
243
|
+
"JobRuntimeGeneration",
|
|
276
244
|
"JobSpec",
|
|
277
|
-
"JobsSuccessFailedChart",
|
|
278
|
-
"JobsTotal",
|
|
279
|
-
"LastNRequestsMetric",
|
|
280
|
-
"LatencyMetric",
|
|
281
245
|
"LocationResponse",
|
|
282
|
-
"LogsResponse",
|
|
283
|
-
"LogsResponseData",
|
|
284
246
|
"MCPDefinition",
|
|
285
|
-
"
|
|
286
|
-
"MCPDefinitionForm",
|
|
287
|
-
"MemoryAllocationByName",
|
|
288
|
-
"MemoryAllocationMetric",
|
|
247
|
+
"MCPDefinitionCategoriesItem",
|
|
289
248
|
"Metadata",
|
|
290
249
|
"MetadataLabels",
|
|
291
|
-
"Metric",
|
|
292
|
-
"Metrics",
|
|
293
|
-
"MetricsModels",
|
|
294
|
-
"MetricsRequestTotalPerCode",
|
|
295
|
-
"MetricsRpsPerCode",
|
|
296
250
|
"Model",
|
|
251
|
+
"ModelRuntime",
|
|
252
|
+
"ModelRuntimeType",
|
|
297
253
|
"ModelSpec",
|
|
298
254
|
"OAuth",
|
|
255
|
+
"OAuthScopeItem",
|
|
299
256
|
"OwnerFields",
|
|
300
257
|
"PendingInvitation",
|
|
301
258
|
"PendingInvitationAccept",
|
|
@@ -303,12 +260,16 @@ __all__ = (
|
|
|
303
260
|
"PendingInvitationRenderInvitedBy",
|
|
304
261
|
"PendingInvitationRenderWorkspace",
|
|
305
262
|
"PendingInvitationWorkspaceDetails",
|
|
306
|
-
"
|
|
263
|
+
"PendingInvitationWorkspaceDetailsEmailsItem",
|
|
307
264
|
"Policy",
|
|
308
265
|
"PolicyLocation",
|
|
266
|
+
"PolicyLocationType",
|
|
309
267
|
"PolicyMaxTokens",
|
|
268
|
+
"PolicyResourceType",
|
|
310
269
|
"PolicySpec",
|
|
270
|
+
"PolicySpecType",
|
|
311
271
|
"Port",
|
|
272
|
+
"PortProtocol",
|
|
312
273
|
"Preview",
|
|
313
274
|
"PreviewMetadata",
|
|
314
275
|
"PreviewSpec",
|
|
@@ -322,55 +283,24 @@ __all__ = (
|
|
|
322
283
|
"PublicIps",
|
|
323
284
|
"Region",
|
|
324
285
|
"Repository",
|
|
325
|
-
"RequestDurationOverTimeMetric",
|
|
326
|
-
"RequestDurationOverTimeMetrics",
|
|
327
|
-
"RequestTotalByOriginMetric",
|
|
328
|
-
"RequestTotalByOriginMetricRequestTotalByOrigin",
|
|
329
|
-
"RequestTotalByOriginMetricRequestTotalByOriginAndCode",
|
|
330
|
-
"RequestTotalMetric",
|
|
331
|
-
"RequestTotalMetricRequestTotalPerCode",
|
|
332
|
-
"RequestTotalMetricRpsPerCode",
|
|
333
|
-
"RequestTotalResponseData",
|
|
334
|
-
"Resource",
|
|
335
|
-
"ResourceLog",
|
|
336
|
-
"ResourceLogChart",
|
|
337
|
-
"ResourceLogResponse",
|
|
338
|
-
"ResourceMetrics",
|
|
339
|
-
"ResourceMetricsRequestTotalPerCode",
|
|
340
|
-
"ResourceMetricsRequestTotalPerCodePrevious",
|
|
341
|
-
"ResourceMetricsRpsPerCode",
|
|
342
|
-
"ResourceMetricsRpsPerCodePrevious",
|
|
343
|
-
"ResourceTrace",
|
|
344
286
|
"RevisionConfiguration",
|
|
345
287
|
"RevisionMetadata",
|
|
346
|
-
"Runtime",
|
|
347
|
-
"RuntimeConfiguration",
|
|
348
|
-
"RuntimeStartupProbe",
|
|
349
288
|
"Sandbox",
|
|
350
289
|
"SandboxDefinition",
|
|
290
|
+
"SandboxDefinitionCategoriesItem",
|
|
291
|
+
"SandboxError",
|
|
292
|
+
"SandboxErrorDetails",
|
|
351
293
|
"SandboxLifecycle",
|
|
352
|
-
"
|
|
294
|
+
"SandboxRuntime",
|
|
353
295
|
"SandboxSpec",
|
|
354
|
-
"
|
|
355
|
-
"ServerlessConfigConfiguration",
|
|
356
|
-
"SpecConfiguration",
|
|
357
|
-
"StartSandbox",
|
|
358
|
-
"StopSandbox",
|
|
359
|
-
"StoreAgent",
|
|
360
|
-
"StoreAgentLabels",
|
|
361
|
-
"StoreConfiguration",
|
|
362
|
-
"StoreConfigurationOption",
|
|
296
|
+
"Status",
|
|
363
297
|
"Template",
|
|
364
298
|
"TemplateVariable",
|
|
365
299
|
"TimeFields",
|
|
366
|
-
"TimeToFirstTokenOverTimeMetrics",
|
|
367
|
-
"TokenRateMetric",
|
|
368
|
-
"TokenRateMetrics",
|
|
369
|
-
"TokenTotalMetric",
|
|
370
|
-
"TraceIdsResponse",
|
|
371
300
|
"Trigger",
|
|
372
301
|
"TriggerConfiguration",
|
|
373
302
|
"TriggerConfigurationTask",
|
|
303
|
+
"TriggerType",
|
|
374
304
|
"UpdateWorkspaceServiceAccountBody",
|
|
375
305
|
"UpdateWorkspaceServiceAccountResponse200",
|
|
376
306
|
"UpdateWorkspaceUserRoleBody",
|
|
@@ -381,11 +311,11 @@ __all__ = (
|
|
|
381
311
|
"VolumeTemplate",
|
|
382
312
|
"VolumeTemplateSpec",
|
|
383
313
|
"VolumeTemplateState",
|
|
314
|
+
"VolumeTemplateStateStatus",
|
|
384
315
|
"VolumeTemplateVersion",
|
|
385
|
-
"
|
|
386
|
-
"WebsocketMessage",
|
|
316
|
+
"VolumeTemplateVersionStatus",
|
|
387
317
|
"Workspace",
|
|
388
|
-
"WorkspaceLabels",
|
|
389
318
|
"WorkspaceRuntime",
|
|
319
|
+
"WorkspaceStatus",
|
|
390
320
|
"WorkspaceUser",
|
|
391
321
|
)
|
|
@@ -3,6 +3,7 @@ from typing import TYPE_CHECKING, Any, TypeVar, Union
|
|
|
3
3
|
from attrs import define as _attrs_define
|
|
4
4
|
from attrs import field as _attrs_field
|
|
5
5
|
|
|
6
|
+
from ..models.status import Status
|
|
6
7
|
from ..types import UNSET, Unset
|
|
7
8
|
|
|
8
9
|
if TYPE_CHECKING:
|
|
@@ -16,22 +17,35 @@ T = TypeVar("T", bound="Agent")
|
|
|
16
17
|
|
|
17
18
|
@_attrs_define
|
|
18
19
|
class Agent:
|
|
19
|
-
"""
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
"""Serverless AI agent deployment that runs your custom agent code as an auto-scaling API endpoint. Agents are deployed
|
|
21
|
+
from your code repository and expose a global inference URL for querying.
|
|
22
|
+
|
|
23
|
+
Attributes:
|
|
24
|
+
metadata (Metadata): Common metadata fields shared by all Blaxel resources including name, labels, timestamps,
|
|
25
|
+
and ownership information
|
|
26
|
+
spec (AgentSpec): Configuration for an AI agent including runtime settings, repository source, and deployment
|
|
27
|
+
triggers
|
|
28
|
+
events (Union[Unset, list['CoreEvent']]): Events happening on a resource deployed on Blaxel
|
|
29
|
+
status (Union[Unset, Status]): Deployment status of a resource deployed on Blaxel
|
|
26
30
|
"""
|
|
27
31
|
|
|
32
|
+
metadata: "Metadata"
|
|
33
|
+
spec: "AgentSpec"
|
|
28
34
|
events: Union[Unset, list["CoreEvent"]] = UNSET
|
|
29
|
-
|
|
30
|
-
spec: Union[Unset, "AgentSpec"] = UNSET
|
|
31
|
-
status: Union[Unset, str] = UNSET
|
|
35
|
+
status: Union[Unset, Status] = UNSET
|
|
32
36
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
33
37
|
|
|
34
38
|
def to_dict(self) -> dict[str, Any]:
|
|
39
|
+
if type(self.metadata) is dict:
|
|
40
|
+
metadata = self.metadata
|
|
41
|
+
else:
|
|
42
|
+
metadata = self.metadata.to_dict()
|
|
43
|
+
|
|
44
|
+
if type(self.spec) is dict:
|
|
45
|
+
spec = self.spec
|
|
46
|
+
else:
|
|
47
|
+
spec = self.spec.to_dict()
|
|
48
|
+
|
|
35
49
|
events: Union[Unset, list[dict[str, Any]]] = UNSET
|
|
36
50
|
if not isinstance(self.events, Unset):
|
|
37
51
|
events = []
|
|
@@ -44,33 +58,20 @@ class Agent:
|
|
|
44
58
|
)
|
|
45
59
|
events.append(componentsschemas_core_events_item)
|
|
46
60
|
|
|
47
|
-
|
|
48
|
-
if (
|
|
49
|
-
self.
|
|
50
|
-
and not isinstance(self.metadata, Unset)
|
|
51
|
-
and not isinstance(self.metadata, dict)
|
|
52
|
-
):
|
|
53
|
-
metadata = self.metadata.to_dict()
|
|
54
|
-
elif self.metadata and isinstance(self.metadata, dict):
|
|
55
|
-
metadata = self.metadata
|
|
56
|
-
|
|
57
|
-
spec: Union[Unset, dict[str, Any]] = UNSET
|
|
58
|
-
if self.spec and not isinstance(self.spec, Unset) and not isinstance(self.spec, dict):
|
|
59
|
-
spec = self.spec.to_dict()
|
|
60
|
-
elif self.spec and isinstance(self.spec, dict):
|
|
61
|
-
spec = self.spec
|
|
62
|
-
|
|
63
|
-
status = self.status
|
|
61
|
+
status: Union[Unset, str] = UNSET
|
|
62
|
+
if not isinstance(self.status, Unset):
|
|
63
|
+
status = self.status.value
|
|
64
64
|
|
|
65
65
|
field_dict: dict[str, Any] = {}
|
|
66
66
|
field_dict.update(self.additional_properties)
|
|
67
|
-
field_dict.update(
|
|
67
|
+
field_dict.update(
|
|
68
|
+
{
|
|
69
|
+
"metadata": metadata,
|
|
70
|
+
"spec": spec,
|
|
71
|
+
}
|
|
72
|
+
)
|
|
68
73
|
if events is not UNSET:
|
|
69
74
|
field_dict["events"] = events
|
|
70
|
-
if metadata is not UNSET:
|
|
71
|
-
field_dict["metadata"] = metadata
|
|
72
|
-
if spec is not UNSET:
|
|
73
|
-
field_dict["spec"] = spec
|
|
74
75
|
if status is not UNSET:
|
|
75
76
|
field_dict["status"] = status
|
|
76
77
|
|
|
@@ -85,6 +86,10 @@ class Agent:
|
|
|
85
86
|
if not src_dict:
|
|
86
87
|
return None
|
|
87
88
|
d = src_dict.copy()
|
|
89
|
+
metadata = Metadata.from_dict(d.pop("metadata"))
|
|
90
|
+
|
|
91
|
+
spec = AgentSpec.from_dict(d.pop("spec"))
|
|
92
|
+
|
|
88
93
|
events = []
|
|
89
94
|
_events = d.pop("events", UNSET)
|
|
90
95
|
for componentsschemas_core_events_item_data in _events or []:
|
|
@@ -94,26 +99,17 @@ class Agent:
|
|
|
94
99
|
|
|
95
100
|
events.append(componentsschemas_core_events_item)
|
|
96
101
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
if isinstance(
|
|
100
|
-
|
|
102
|
+
_status = d.pop("status", UNSET)
|
|
103
|
+
status: Union[Unset, Status]
|
|
104
|
+
if isinstance(_status, Unset):
|
|
105
|
+
status = UNSET
|
|
101
106
|
else:
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
_spec = d.pop("spec", UNSET)
|
|
105
|
-
spec: Union[Unset, AgentSpec]
|
|
106
|
-
if isinstance(_spec, Unset):
|
|
107
|
-
spec = UNSET
|
|
108
|
-
else:
|
|
109
|
-
spec = AgentSpec.from_dict(_spec)
|
|
110
|
-
|
|
111
|
-
status = d.pop("status", UNSET)
|
|
107
|
+
status = Status(_status)
|
|
112
108
|
|
|
113
109
|
agent = cls(
|
|
114
|
-
events=events,
|
|
115
110
|
metadata=metadata,
|
|
116
111
|
spec=spec,
|
|
112
|
+
events=events,
|
|
117
113
|
status=status,
|
|
118
114
|
)
|
|
119
115
|
|