blaxel 0.2.35__py3-none-any.whl → 0.2.36__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/client/api/compute/create_sandbox.py +21 -1
- blaxel/core/client/api/jobs/create_job_execution.py +12 -12
- blaxel/core/client/api/volumes/update_volume.py +187 -0
- blaxel/core/client/models/__init__.py +10 -6
- blaxel/core/client/models/{create_job_execution_response.py → create_job_execution_output.py} +11 -13
- blaxel/core/client/models/{create_job_execution_response_tasks_item.py → create_job_execution_output_tasks_item.py} +5 -5
- blaxel/core/client/models/create_job_execution_request.py +31 -0
- blaxel/core/client/models/create_job_execution_request_env.py +50 -0
- blaxel/core/client/models/function_runtime.py +18 -0
- blaxel/core/client/models/{function_spec_transport.py → function_runtime_transport.py} +2 -2
- blaxel/core/client/models/function_spec.py +0 -18
- blaxel/core/client/models/job_execution_spec.py +35 -0
- blaxel/core/client/models/job_execution_spec_env_override.py +50 -0
- blaxel/core/client/models/port_protocol.py +1 -0
- blaxel/core/common/settings.py +5 -0
- blaxel/core/jobs/__init__.py +60 -88
- blaxel/core/sandbox/default/sandbox.py +69 -2
- blaxel/core/sandbox/sync/sandbox.py +69 -2
- blaxel/core/volume/volume.py +203 -4
- blaxel/langgraph/model.py +25 -14
- blaxel/langgraph/tools.py +16 -12
- blaxel/llamaindex/model.py +33 -24
- blaxel/llamaindex/tools.py +9 -4
- blaxel/pydantic/model.py +26 -12
- {blaxel-0.2.35.dist-info → blaxel-0.2.36.dist-info}/METADATA +1 -1
- {blaxel-0.2.35.dist-info → blaxel-0.2.36.dist-info}/RECORD +29 -28
- blaxel/core/client/api/invitations/__init__.py +0 -0
- blaxel/core/client/api/invitations/list_all_pending_invitations.py +0 -142
- {blaxel-0.2.35.dist-info → blaxel-0.2.36.dist-info}/WHEEL +0 -0
- {blaxel-0.2.35.dist-info → blaxel-0.2.36.dist-info}/licenses/LICENSE +0 -0
blaxel/pydantic/model.py
CHANGED
|
@@ -1,19 +1,7 @@
|
|
|
1
1
|
import logging
|
|
2
2
|
from typing import Any
|
|
3
3
|
|
|
4
|
-
from anthropic import AsyncAnthropic
|
|
5
|
-
from cohere import AsyncClientV2
|
|
6
|
-
from mistralai.sdk import Mistral
|
|
7
4
|
from pydantic_ai.models import Model
|
|
8
|
-
from pydantic_ai.models.anthropic import AnthropicModel
|
|
9
|
-
from pydantic_ai.models.cohere import CohereModel
|
|
10
|
-
from pydantic_ai.models.gemini import GeminiModel
|
|
11
|
-
from pydantic_ai.models.mistral import MistralModel
|
|
12
|
-
from pydantic_ai.models.openai import OpenAIModel
|
|
13
|
-
from pydantic_ai.providers.anthropic import AnthropicProvider
|
|
14
|
-
from pydantic_ai.providers.cohere import CohereProvider
|
|
15
|
-
from pydantic_ai.providers.mistral import MistralProvider
|
|
16
|
-
from pydantic_ai.providers.openai import OpenAIProvider
|
|
17
5
|
|
|
18
6
|
from blaxel.core import bl_model as bl_model_core
|
|
19
7
|
from blaxel.core import settings
|
|
@@ -41,6 +29,10 @@ class TokenRefreshingModel(Model):
|
|
|
41
29
|
kwargs = config.get("kwargs", {})
|
|
42
30
|
|
|
43
31
|
if type == "mistral":
|
|
32
|
+
from mistralai.sdk import Mistral
|
|
33
|
+
from pydantic_ai.models.mistral import MistralModel
|
|
34
|
+
from pydantic_ai.providers.mistral import MistralProvider
|
|
35
|
+
|
|
44
36
|
return MistralModel(
|
|
45
37
|
model_name=model,
|
|
46
38
|
provider=MistralProvider(
|
|
@@ -52,6 +44,10 @@ class TokenRefreshingModel(Model):
|
|
|
52
44
|
),
|
|
53
45
|
)
|
|
54
46
|
elif type == "cohere":
|
|
47
|
+
from cohere import AsyncClientV2
|
|
48
|
+
from pydantic_ai.models.cohere import CohereModel
|
|
49
|
+
from pydantic_ai.providers.cohere import CohereProvider
|
|
50
|
+
|
|
55
51
|
return CohereModel(
|
|
56
52
|
model_name=model,
|
|
57
53
|
provider=CohereProvider(
|
|
@@ -62,6 +58,9 @@ class TokenRefreshingModel(Model):
|
|
|
62
58
|
),
|
|
63
59
|
)
|
|
64
60
|
elif type == "xai":
|
|
61
|
+
from pydantic_ai.models.openai import OpenAIModel
|
|
62
|
+
from pydantic_ai.providers.openai import OpenAIProvider
|
|
63
|
+
|
|
65
64
|
return OpenAIModel(
|
|
66
65
|
model_name=model,
|
|
67
66
|
provider=OpenAIProvider(
|
|
@@ -69,6 +68,9 @@ class TokenRefreshingModel(Model):
|
|
|
69
68
|
),
|
|
70
69
|
)
|
|
71
70
|
elif type == "deepseek":
|
|
71
|
+
from pydantic_ai.models.openai import OpenAIModel
|
|
72
|
+
from pydantic_ai.providers.openai import OpenAIProvider
|
|
73
|
+
|
|
72
74
|
return OpenAIModel(
|
|
73
75
|
model_name=model,
|
|
74
76
|
provider=OpenAIProvider(
|
|
@@ -76,6 +78,9 @@ class TokenRefreshingModel(Model):
|
|
|
76
78
|
),
|
|
77
79
|
)
|
|
78
80
|
elif type == "cerebras":
|
|
81
|
+
from pydantic_ai.models.openai import OpenAIModel
|
|
82
|
+
from pydantic_ai.providers.openai import OpenAIProvider
|
|
83
|
+
|
|
79
84
|
return OpenAIModel(
|
|
80
85
|
model_name=model,
|
|
81
86
|
provider=OpenAIProvider(
|
|
@@ -83,6 +88,10 @@ class TokenRefreshingModel(Model):
|
|
|
83
88
|
),
|
|
84
89
|
)
|
|
85
90
|
elif type == "anthropic":
|
|
91
|
+
from anthropic import AsyncAnthropic
|
|
92
|
+
from pydantic_ai.models.anthropic import AnthropicModel
|
|
93
|
+
from pydantic_ai.providers.anthropic import AnthropicProvider
|
|
94
|
+
|
|
86
95
|
return AnthropicModel(
|
|
87
96
|
model_name=model,
|
|
88
97
|
provider=AnthropicProvider(
|
|
@@ -95,6 +104,8 @@ class TokenRefreshingModel(Model):
|
|
|
95
104
|
),
|
|
96
105
|
)
|
|
97
106
|
elif type == "gemini":
|
|
107
|
+
from pydantic_ai.models.gemini import GeminiModel
|
|
108
|
+
|
|
98
109
|
return GeminiModel(
|
|
99
110
|
model_name=model,
|
|
100
111
|
provider=GoogleGLAProvider(
|
|
@@ -105,6 +116,9 @@ class TokenRefreshingModel(Model):
|
|
|
105
116
|
),
|
|
106
117
|
)
|
|
107
118
|
else:
|
|
119
|
+
from pydantic_ai.models.openai import OpenAIModel
|
|
120
|
+
from pydantic_ai.providers.openai import OpenAIProvider
|
|
121
|
+
|
|
108
122
|
if type != "openai":
|
|
109
123
|
logger.warning(f"Model {model} is not supported by Pydantic, defaulting to OpenAI")
|
|
110
124
|
return OpenAIModel(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
blaxel/__init__.py,sha256=
|
|
1
|
+
blaxel/__init__.py,sha256=RrLMKNMHUF8K_4eL9jNAI3P8MgsXTOcKJQtIocbhCWI,413
|
|
2
2
|
blaxel/core/__init__.py,sha256=CU0gXpVRbuQZNWoCJuuhZS0ZhXPEu0cg-3XzoYMrBm4,1756
|
|
3
3
|
blaxel/core/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
blaxel/core/agents/__init__.py,sha256=MJZga99lU8JWUUPHd4rmUfdo7ALwWgF7CQq95SfT2OI,4456
|
|
@@ -25,7 +25,7 @@ blaxel/core/client/api/agents/list_agent_revisions.py,sha256=uV9yGJE5tGMmiLAddhW
|
|
|
25
25
|
blaxel/core/client/api/agents/list_agents.py,sha256=c8y4GAPX3z02hmxB6woGoVYQ3qEfn_M_lKDZ2M4fvJA,4362
|
|
26
26
|
blaxel/core/client/api/agents/update_agent.py,sha256=R7ISqcxTEwWFC_lSrWq6bK3Il8SFfziWfAhsD_pONLs,6190
|
|
27
27
|
blaxel/core/client/api/compute/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
28
|
-
blaxel/core/client/api/compute/create_sandbox.py,sha256=
|
|
28
|
+
blaxel/core/client/api/compute/create_sandbox.py,sha256=9a8XheL2s7rK0XFWpeRICblSIwOuI9iILHipqudVS-0,7143
|
|
29
29
|
blaxel/core/client/api/compute/create_sandbox_preview.py,sha256=XScjA4uldNuA1K4dPYR4INvSTv3Yb2gwbNyopjNTiv8,4101
|
|
30
30
|
blaxel/core/client/api/compute/create_sandbox_preview_token.py,sha256=qSMA6OmIr5mvGJ9bVbP9fe4ajmcEjigZdSPACGHfQhc,4725
|
|
31
31
|
blaxel/core/client/api/compute/delete_sandbox.py,sha256=lkPm3Ds21SIx4kW7z56GFD2gJw237BS7udtxwYZ_MpA,4670
|
|
@@ -72,11 +72,9 @@ blaxel/core/client/api/integrations/get_integration_connection_model_endpoint_co
|
|
|
72
72
|
blaxel/core/client/api/integrations/list_integration_connection_models.py,sha256=ZeJAPBN3FDW5apiq_15qsUTQM46xzvJkAtIXVsmeNHY,2407
|
|
73
73
|
blaxel/core/client/api/integrations/list_integration_connections.py,sha256=ACmbxsv_JJrxBDeSRv9YkbcZc1WSIJhZkqdDDiWgFsA,4713
|
|
74
74
|
blaxel/core/client/api/integrations/update_integration_connection.py,sha256=gZOVF74iam68wCUY7xL-FwgHgL22b8ay5YkO0cf9ytE,6343
|
|
75
|
-
blaxel/core/client/api/invitations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
76
|
-
blaxel/core/client/api/invitations/list_all_pending_invitations.py,sha256=X6GIFlX49T7sALlxY1m8CkO41-BW8atwRFugodnRQ7M,3963
|
|
77
75
|
blaxel/core/client/api/jobs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
78
76
|
blaxel/core/client/api/jobs/create_job.py,sha256=l7ia5OZ7jUNi5-QhmUYwZpPZAAadU2PkvZ9SCu-GazU,4852
|
|
79
|
-
blaxel/core/client/api/jobs/create_job_execution.py,sha256=
|
|
77
|
+
blaxel/core/client/api/jobs/create_job_execution.py,sha256=M0pCs_353uzA0FWrOleCWcWZasLtbHfliCKbhTTF8bA,5536
|
|
80
78
|
blaxel/core/client/api/jobs/delete_job.py,sha256=PQZEiiF7OD2KvFUlWKJBWmogx9dmQRmNpZiTemt17Ic,3820
|
|
81
79
|
blaxel/core/client/api/jobs/delete_job_execution.py,sha256=my4FR1AgjaSbaQWeUkxm8T8NeTVQM_wPNeTdxZB8PDM,4915
|
|
82
80
|
blaxel/core/client/api/jobs/get_job.py,sha256=tSuhq-_pQomHcE3N945axMh3B57d38vK7Lz9DrIanGQ,4501
|
|
@@ -128,6 +126,7 @@ blaxel/core/client/api/volumes/create_volume.py,sha256=y9IMLzQLVCKKnKHIi9TaPK0Xk
|
|
|
128
126
|
blaxel/core/client/api/volumes/delete_volume.py,sha256=QWAJ8oiPzAZh7nEdbgorg7PPdtsJQEWv0J22MuCnYS0,4702
|
|
129
127
|
blaxel/core/client/api/volumes/get_volume.py,sha256=4vZZdWYGPwiSC5QsUorUK7a88Rqnn4_75USOmdfH5AM,4526
|
|
130
128
|
blaxel/core/client/api/volumes/list_volumes.py,sha256=Kh20lUVoNAxvqtP5YP6h0l5C_eAzwbQIrIs56EpE5kA,4496
|
|
129
|
+
blaxel/core/client/api/volumes/update_volume.py,sha256=X9x3Ejl0m0lR5Fl3Y10hJuIyZORCMJKxUzxdJbgfDhc,4725
|
|
131
130
|
blaxel/core/client/api/workspaces/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
132
131
|
blaxel/core/client/api/workspaces/accept_workspace_invitation.py,sha256=iJXzcIIiE65p9Dz3Z2Yf324bvY3gfWV8ZEfdx3KZYsw,4107
|
|
133
132
|
blaxel/core/client/api/workspaces/check_workspace_availability.py,sha256=BsWDAEy52txrhBvrN-ZKE0oSsAJtLqb2u74ScV78eDw,3951
|
|
@@ -142,7 +141,7 @@ blaxel/core/client/api/workspaces/list_workspaces.py,sha256=SDmlVGU6STRLwJXga1BP
|
|
|
142
141
|
blaxel/core/client/api/workspaces/remove_workspace_user.py,sha256=DBr8GTeoFPK3tCg_oSG1LZZQoDXYdu6eh3a5l4ERu8E,2544
|
|
143
142
|
blaxel/core/client/api/workspaces/update_workspace.py,sha256=D1syH3i4fAN0BdvMtOOfesdrb3wGiIPNAHlB4rZYSxA,5832
|
|
144
143
|
blaxel/core/client/api/workspaces/update_workspace_user_role.py,sha256=z5URMzGjUT1nCkQU6qR-5LPVvgs-ngaoBgzs3xDSHPw,4831
|
|
145
|
-
blaxel/core/client/models/__init__.py,sha256=
|
|
144
|
+
blaxel/core/client/models/__init__.py,sha256=uBc7RXvEJRwDC0-31Hegj3ovxIdeaDhd8ZZ4vvQ169Y,12436
|
|
146
145
|
blaxel/core/client/models/agent.py,sha256=bpcCc0iW3eOtxiw11CgpnWalnx-kQQ9MQ8fOWKY1gts,4490
|
|
147
146
|
blaxel/core/client/models/agent_runtime.py,sha256=MjbTjh2grGc1cSk2SUSvKZ_mPudD8s7rmayBevJftrA,4788
|
|
148
147
|
blaxel/core/client/models/agent_runtime_generation.py,sha256=mGpA8H7gX1VusMU5AtXei_FFJNNhMoY-XI_ZtL-n3zw,467
|
|
@@ -155,10 +154,11 @@ blaxel/core/client/models/continent.py,sha256=MLKHD6pDxRF6DtLm9Vmld9E8gN9mS6lAhl
|
|
|
155
154
|
blaxel/core/client/models/core_event.py,sha256=E5bjhc6aUI05DJQShzOKlR9OJ5ISVpLusAypEYNGHeQ,3170
|
|
156
155
|
blaxel/core/client/models/country.py,sha256=fnnaceOpbTr9P1ajI4n1hFRuml2Pu752KPNkKdRDntI,1900
|
|
157
156
|
blaxel/core/client/models/create_api_key_for_service_account_body.py,sha256=fS13FlW9kLdEO3lMhcli_rse--Ha3n-Pk5CFtmZMZVg,2136
|
|
158
|
-
blaxel/core/client/models/
|
|
157
|
+
blaxel/core/client/models/create_job_execution_output.py,sha256=ug0rq_xDwQWFpWXbAcJdmN5Va5g1d8K-g1ozftNzyEs,4477
|
|
158
|
+
blaxel/core/client/models/create_job_execution_output_tasks_item.py,sha256=7CtkR5oJGPHEgmIq9yRfqs8vXaK7NJYQ7h7O-9XHTfM,1340
|
|
159
|
+
blaxel/core/client/models/create_job_execution_request.py,sha256=213hQ54lvH2UAQpN_NsjlYEMlf40ss8Lf4WCtQEfd_c,5280
|
|
160
|
+
blaxel/core/client/models/create_job_execution_request_env.py,sha256=uC0S_1c1RHJItdzf9Q9vsKLmEwaC52e2-elbyxdqAAE,1473
|
|
159
161
|
blaxel/core/client/models/create_job_execution_request_tasks_item.py,sha256=hvNZSbR2O0MLDKata_fTnCkNX9H1mwUE97W_SQzhroA,1345
|
|
160
|
-
blaxel/core/client/models/create_job_execution_response.py,sha256=S1EZBd1Gdxy_Q4a8aX6NFPGNCD3Qb7v9hK-g6GeRMTA,4518
|
|
161
|
-
blaxel/core/client/models/create_job_execution_response_tasks_item.py,sha256=6IalFD0FJ4BPcm7NiUA9GdVjdyR0OqVn6HDb14U0JTE,1350
|
|
162
162
|
blaxel/core/client/models/create_workspace_service_account_body.py,sha256=raH8PtNC4rdSWh7YPSX1Sww-1SWca00vuOB85fQ0YA4,1965
|
|
163
163
|
blaxel/core/client/models/create_workspace_service_account_response_200.py,sha256=A4EClPVJ5hGswaeXRuyzisG3wJ7rkajsIqq0LeRveFY,3356
|
|
164
164
|
blaxel/core/client/models/custom_domain.py,sha256=tVzVJPzjBs7e47BObUCdagmAiZlOYfVkB5pYhBNIWnY,2611
|
|
@@ -184,10 +184,10 @@ blaxel/core/client/models/form.py,sha256=stmiUp4pv-njkyFNGNyF_i-OxcQssP41m0XYs87
|
|
|
184
184
|
blaxel/core/client/models/form_config.py,sha256=MXpNMPGcCy4YBVpravYqgycF54lGPU4yWE-09MH-FTE,1234
|
|
185
185
|
blaxel/core/client/models/form_secrets.py,sha256=3pYi7arD251_87uAMo0_pPCfnx5wnTEQjfqmo1hTIFE,1240
|
|
186
186
|
blaxel/core/client/models/function.py,sha256=oJLCzfFRnSrRLPKbi3-UFTWp8qpbfL7Hdljn6xWWCDI,4523
|
|
187
|
-
blaxel/core/client/models/function_runtime.py,sha256=
|
|
187
|
+
blaxel/core/client/models/function_runtime.py,sha256=Qo15bnW5wBBHXgy_GguP4V6KFyWmKKqvOPWHdCHQVYY,5618
|
|
188
188
|
blaxel/core/client/models/function_runtime_generation.py,sha256=LH96vnSuPAe54LZ3Lf3yCtRdG7rjCquVhWIFrhUKvvg,473
|
|
189
|
-
blaxel/core/client/models/
|
|
190
|
-
blaxel/core/client/models/
|
|
189
|
+
blaxel/core/client/models/function_runtime_transport.py,sha256=FtyXIkRmleJFY8zuH7tKwubEGDyvA3RJonBR1pD64nU,499
|
|
190
|
+
blaxel/core/client/models/function_spec.py,sha256=kZPQEwA_W32ugOG_1N2ArP3HVMV3MSp4Zl2t5ekSXWg,6115
|
|
191
191
|
blaxel/core/client/models/get_workspace_service_accounts_response_200_item.py,sha256=49f6ZBp7uRbWwLw9EVzn-j_NiVIJbnPA3E5JXAv3udA,2988
|
|
192
192
|
blaxel/core/client/models/image.py,sha256=2SeJ2KLhvTB9LBw5MVb332wtCDHPC2GD-r-dopM_QpU,2129
|
|
193
193
|
blaxel/core/client/models/image_metadata.py,sha256=5RTV0UGU9gaawp4Y-1YfOXFy8s_akJrdTcuYgGKPGjo,3861
|
|
@@ -212,7 +212,8 @@ blaxel/core/client/models/invite_workspace_user_body.py,sha256=GHitEreLk1XvPtqPW
|
|
|
212
212
|
blaxel/core/client/models/job.py,sha256=ceSexL7SENoPGQPNNjZB2G5GHyKmtEVdBwNYlrz9gn0,4442
|
|
213
213
|
blaxel/core/client/models/job_execution.py,sha256=gj2uLjd05AEkffJS93JsK7gtXnWBrprJwa333uQ05Kc,4833
|
|
214
214
|
blaxel/core/client/models/job_execution_metadata.py,sha256=qYNXJE0wZTDOjq88nypnyQAlpptZKxUquoVwZN-7WPk,4457
|
|
215
|
-
blaxel/core/client/models/job_execution_spec.py,sha256=
|
|
215
|
+
blaxel/core/client/models/job_execution_spec.py,sha256=ZbxhGdRpVMN1vsS2FUiEaOXZ-y51QNaZomWZZYx6yb4,4810
|
|
216
|
+
blaxel/core/client/models/job_execution_spec_env_override.py,sha256=pnAsmfZ2feQVt4PIKQgj6XFDsMM65bu8OJg8rGvM7YA,1464
|
|
216
217
|
blaxel/core/client/models/job_execution_stats.py,sha256=Ga2a-fxe055k2f0y6quSgQ_L8QY1BgYTvRK9bHqPmn4,3125
|
|
217
218
|
blaxel/core/client/models/job_execution_status.py,sha256=TbqYy3wyFPn8pofNUVj73voD6cUfeh-W_PAY_yQW2Wk,629
|
|
218
219
|
blaxel/core/client/models/job_execution_task.py,sha256=kX_nmTT97rBBNZnnFkleH-W_ez7ikjtqwJO5I0sgIJI,5132
|
|
@@ -250,7 +251,7 @@ blaxel/core/client/models/policy_resource_type.py,sha256=KoWOd1y-9QIEN8iKVR4viCv
|
|
|
250
251
|
blaxel/core/client/models/policy_spec.py,sha256=ZXz3q0AHQAIL-oRFPUaLmwI57UrBs5b5rxkIvD3diYU,7377
|
|
251
252
|
blaxel/core/client/models/policy_spec_type.py,sha256=aMtlk85f6JtcVFUYQG6xVYdE_c-RinY-HilHt4QNvKU,493
|
|
252
253
|
blaxel/core/client/models/port.py,sha256=GziUHl61HmnLxnvquw4iX59_W_yzMsoZ-J0v316zPhc,2457
|
|
253
|
-
blaxel/core/client/models/port_protocol.py,sha256=
|
|
254
|
+
blaxel/core/client/models/port_protocol.py,sha256=H9RzJ7-MIk1X5_pJtcJNR3iSFjwMbZGckIdV24zkMhI,481
|
|
254
255
|
blaxel/core/client/models/preview.py,sha256=o_7v6ForMbzdhI0sc6yOcZXduYvuq2YOikXVu6nTiO0,2227
|
|
255
256
|
blaxel/core/client/models/preview_metadata.py,sha256=7AoqHpvWzJ6BKzoW5JuSCPniXhhAvNbHtmvsqEepJfs,4347
|
|
256
257
|
blaxel/core/client/models/preview_spec.py,sha256=xYBVwUnKrMgE6zovl-CCXmubK6gbtpiMZpLz-OrcQ-I,6514
|
|
@@ -305,9 +306,9 @@ blaxel/core/common/env.py,sha256=05Jm2mw0-KIgR7QaNVyvZPP91B9OlxlJ6mcx6Mqfji0,123
|
|
|
305
306
|
blaxel/core/common/internal.py,sha256=NDTFh9Duj84os8GkMXjGzn-UVS9zBDyLAcfPxIpoQGA,3218
|
|
306
307
|
blaxel/core/common/logger.py,sha256=Jt0MCJgYDPq36rl7UyKRDJH76a-AwYdfggNeNYJt6N0,4779
|
|
307
308
|
blaxel/core/common/sentry.py,sha256=P_v1vWivlh-usXV1_JeJ603r1OHoWaR5jaYV2JJ6vDM,9759
|
|
308
|
-
blaxel/core/common/settings.py,sha256=
|
|
309
|
+
blaxel/core/common/settings.py,sha256=bpogiYsyNRSE8JDotqaAj-e5DHhx7_GbVBcs0SPsIHI,4759
|
|
309
310
|
blaxel/core/common/webhook.py,sha256=N1f2bamP7wRyPyCfmAZKMdjeB3aQ6d6pcafHyVZKtPk,5330
|
|
310
|
-
blaxel/core/jobs/__init__.py,sha256=
|
|
311
|
+
blaxel/core/jobs/__init__.py,sha256=O_6u10J7AvT2mngX0Xx212WbbNRtjhSv_jz-jqk-O-0,15699
|
|
311
312
|
blaxel/core/mcp/__init__.py,sha256=5VjkiQFb1QWW5QKRgwPHARlxZJ9Xqaz0diJTpM8LLF0,142
|
|
312
313
|
blaxel/core/mcp/client.py,sha256=EZ7l5w3bTXaD41nalHzM-byxfQK-JdcmQqxg3zGpVO4,5509
|
|
313
314
|
blaxel/core/mcp/server.py,sha256=edAztWBlukERw9-dzS2Sk96TP8R3-CSofY1CZDu19ZA,5967
|
|
@@ -401,7 +402,7 @@ blaxel/core/sandbox/default/interpreter.py,sha256=tqnG1dzGV1hky3GDH5Hdq9KPf8AkEg
|
|
|
401
402
|
blaxel/core/sandbox/default/network.py,sha256=3ZvrJB_9JdZrclNkwifZOIciz2OqzV0LQfbebjZXLIY,358
|
|
402
403
|
blaxel/core/sandbox/default/preview.py,sha256=F8MA5Irvmh9CcHhm_zgVDsovNNSB6oHtfUoHSZJ97dw,6215
|
|
403
404
|
blaxel/core/sandbox/default/process.py,sha256=7nI1wJXeZWoveBesC13wur-ghIjP5POZ38G8wqCdJTw,16983
|
|
404
|
-
blaxel/core/sandbox/default/sandbox.py,sha256=
|
|
405
|
+
blaxel/core/sandbox/default/sandbox.py,sha256=b-5_aDo41oCmnj1jAqvf_O1Y1E4NZeMZzZCPrsX9GWM,17269
|
|
405
406
|
blaxel/core/sandbox/default/session.py,sha256=XzVpPOH_az6T38Opp4Hmj3RIg7QCzA1l5wh1YDh7czc,5313
|
|
406
407
|
blaxel/core/sandbox/sync/__init__.py,sha256=iqTRxQYbJyHTXoA4MHaigeXFxi9wtJ3o9XygZuFe3bM,372
|
|
407
408
|
blaxel/core/sandbox/sync/action.py,sha256=9t8nCS9KX6SBflJmzK8dsen_bDim3zElBTebY6N6JQc,2136
|
|
@@ -411,13 +412,13 @@ blaxel/core/sandbox/sync/interpreter.py,sha256=5cAzwnt5BgnByGimagMBotjGW2vMAz4vu
|
|
|
411
412
|
blaxel/core/sandbox/sync/network.py,sha256=QkCFKfFayvwL1J4JYwOuXPGlYQuX4J9Jj55Kf_kD-ig,283
|
|
412
413
|
blaxel/core/sandbox/sync/preview.py,sha256=w3bC8iA3QecHiLkRvITmQ6LTT9Co_93G24QpZFgEQSE,6379
|
|
413
414
|
blaxel/core/sandbox/sync/process.py,sha256=GwDHjOiZpdQyXThOwDEMyZ4C9OBWfBH4JB31AkWRonc,14938
|
|
414
|
-
blaxel/core/sandbox/sync/sandbox.py,sha256=
|
|
415
|
+
blaxel/core/sandbox/sync/sandbox.py,sha256=mkJU3ovQ_c1lt3vzMKtZfNA44n1KcYy25GDtKoIjbKg,14712
|
|
415
416
|
blaxel/core/sandbox/sync/session.py,sha256=e0CVbW2LBRYTwm4RL52S0UdNvhNfuFLo6AYE5hk9DH0,4931
|
|
416
417
|
blaxel/core/tools/__init__.py,sha256=OK2TFqeXAIi6CC7xtL8fFl-4DvCB7jjihkhx6RTld_c,13147
|
|
417
418
|
blaxel/core/tools/common.py,sha256=dAjDRaI2psAoHPqKeUzyqab3N6blgkD-HO0gPMpIzCE,1878
|
|
418
419
|
blaxel/core/tools/types.py,sha256=EXa-10iOOXvd8zB2IsTS0gWrgoC2hqbIv6iK5m6E5t8,693
|
|
419
420
|
blaxel/core/volume/__init__.py,sha256=jZgddogAPJGQnD2OoTcDb9zLqxeT6yYpfC-i1yKUVUM,253
|
|
420
|
-
blaxel/core/volume/volume.py,sha256=
|
|
421
|
+
blaxel/core/volume/volume.py,sha256=pqaDD3LmSkvlD00wIp_CneyAuSY_UkP-qINJ8UKE-EE,22517
|
|
421
422
|
blaxel/crewai/__init__.py,sha256=HdAZxRDgC2zW-O5xYzb_Xuysb66_fMykNJVPxlTmFnY,123
|
|
422
423
|
blaxel/crewai/model.py,sha256=iR-40o8pGBFrktYNKcTaMdqbF_F1SFVavNOhhi2fW3w,1957
|
|
423
424
|
blaxel/crewai/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -427,25 +428,25 @@ blaxel/googleadk/model.py,sha256=iW2VqUnTZjGo4d9keiHVQbzs5B5KngvYYruskYfMTWk,375
|
|
|
427
428
|
blaxel/googleadk/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
428
429
|
blaxel/googleadk/tools.py,sha256=S9yDK5EPR_FrXhPwgd3CBR2FjoHOuKbYzax4X2v_LBo,2238
|
|
429
430
|
blaxel/langgraph/__init__.py,sha256=lw9d7bl5TsYbemToCtus5P6XnhzR4SAcBWM-1Pffc_U,126
|
|
430
|
-
blaxel/langgraph/model.py,sha256=
|
|
431
|
+
blaxel/langgraph/model.py,sha256=XxzD9GAglsAZCRb2zN23ApjHxJDeItGetqnGcwPDi-A,8114
|
|
431
432
|
blaxel/langgraph/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
432
|
-
blaxel/langgraph/tools.py,sha256
|
|
433
|
+
blaxel/langgraph/tools.py,sha256=Uqhr7csG3jxPP_SmpM_F5Farnv1U-5nwNv_ohnlW-wU,2898
|
|
433
434
|
blaxel/langgraph/custom/gemini.py,sha256=ui_nnfA5eqz-_F_bI3Nc8RkL4644Tx_NlnVM5aTGyxM,54572
|
|
434
435
|
blaxel/livekit/__init__.py,sha256=byUwOJ6MHeSXOYXmaVoHnC3ZUmpkqJ55u5mQglXX-SQ,124
|
|
435
436
|
blaxel/livekit/model.py,sha256=Qhl3EVa4Uum1IsT3nyMxJwXrZn2eDvCyj6V8RHOaJsQ,1687
|
|
436
437
|
blaxel/livekit/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
437
438
|
blaxel/livekit/tools.py,sha256=QipxGDnKqma_ktzTUpKgzdp5x4bvpQnxEVoqSTBesu8,1053
|
|
438
439
|
blaxel/llamaindex/__init__.py,sha256=iZ3QbZhlwKvP91ChcqSXVkpRrzurMxJoQfKdZFzE2AA,127
|
|
439
|
-
blaxel/llamaindex/model.py,sha256=
|
|
440
|
+
blaxel/llamaindex/model.py,sha256=_wsCiGScqXeMHbxlRDtl6ucwQsrGGM4AGHNFBdIWu1o,7003
|
|
440
441
|
blaxel/llamaindex/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
441
|
-
blaxel/llamaindex/tools.py,sha256=
|
|
442
|
+
blaxel/llamaindex/tools.py,sha256=5wnPX45sgLduk9fPkhQ0rHRGK3Ekrye0MJNtMdw3GII,1024
|
|
442
443
|
blaxel/llamaindex/custom/cohere.py,sha256=8Kfo5BjrND6EFDZXosHNrgrg98ktvxhYG48ztaWptps,18707
|
|
443
444
|
blaxel/openai/__init__.py,sha256=YkizVtcYL2m9v-z5B1EReYVu9n9V-DCxJhSB2mvqOs0,123
|
|
444
445
|
blaxel/openai/model.py,sha256=OalejbWJHlHhx_LUClP3FRwhiNyeyqME9RzEE41s8zs,1244
|
|
445
446
|
blaxel/openai/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
446
447
|
blaxel/openai/tools.py,sha256=NFiqs1S8Uz2PGtPzAAYjNz2RGCTu3zANndmRE8IsCXo,1936
|
|
447
448
|
blaxel/pydantic/__init__.py,sha256=-UDZ5VSrlgfqErJuiuphcAFwesijzXxYLeyC7yHEDrE,128
|
|
448
|
-
blaxel/pydantic/model.py,sha256=
|
|
449
|
+
blaxel/pydantic/model.py,sha256=fa26oGzgT6ZxWK-cXG_c5urkMVxjE1patco2N4K4S04,6581
|
|
449
450
|
blaxel/pydantic/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
450
451
|
blaxel/pydantic/tools.py,sha256=5ua0Cr98-Hgkyhc92Tc6hzJrDRiNGSbAphmZQtgA5j0,1956
|
|
451
452
|
blaxel/pydantic/custom/gemini.py,sha256=DddpfkP75hPPHokXWCpdk6NZiqObK5KJFxL3TXRN8Kg,1051
|
|
@@ -462,7 +463,7 @@ blaxel/telemetry/instrumentation/map.py,sha256=PCzZJj39yiYVYJrxLBNP-NW-tjjYyTijw
|
|
|
462
463
|
blaxel/telemetry/instrumentation/utils.py,sha256=FGyMY5ZE4f-0JdZpm_R_BCoKLJ18hftz8vsh7ftDwMk,1889
|
|
463
464
|
blaxel/telemetry/log/log.py,sha256=vtzUIFIIj4MTTKUigILDYXN8NHHPOo44OaKukpyIjQg,2407
|
|
464
465
|
blaxel/telemetry/log/logger.py,sha256=IcFWCd1yyWWGAjAd2i0pDYqpZHQ61pmcaQ7Kf4bC8lg,4150
|
|
465
|
-
blaxel-0.2.
|
|
466
|
-
blaxel-0.2.
|
|
467
|
-
blaxel-0.2.
|
|
468
|
-
blaxel-0.2.
|
|
466
|
+
blaxel-0.2.36.dist-info/METADATA,sha256=etjDERPOaATmGJCF39OBBUpe06juazIGxLeYcxtEFJ4,10088
|
|
467
|
+
blaxel-0.2.36.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
468
|
+
blaxel-0.2.36.dist-info/licenses/LICENSE,sha256=p5PNQvpvyDT_0aYBDgmV1fFI_vAD2aSV0wWG7VTgRis,1069
|
|
469
|
+
blaxel-0.2.36.dist-info/RECORD,,
|
|
File without changes
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
from http import HTTPStatus
|
|
2
|
-
from typing import Any, Union, cast
|
|
3
|
-
|
|
4
|
-
import httpx
|
|
5
|
-
|
|
6
|
-
from ... import errors
|
|
7
|
-
from ...client import Client
|
|
8
|
-
from ...models.pending_invitation_render import PendingInvitationRender
|
|
9
|
-
from ...types import Response
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
def _get_kwargs() -> dict[str, Any]:
|
|
13
|
-
_kwargs: dict[str, Any] = {
|
|
14
|
-
"method": "get",
|
|
15
|
-
"url": "/profile/invitations",
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
return _kwargs
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
def _parse_response(
|
|
22
|
-
*, client: Client, response: httpx.Response
|
|
23
|
-
) -> Union[Any, list["PendingInvitationRender"]] | None:
|
|
24
|
-
if response.status_code == 200:
|
|
25
|
-
response_200 = []
|
|
26
|
-
_response_200 = response.json()
|
|
27
|
-
for response_200_item_data in _response_200:
|
|
28
|
-
response_200_item = PendingInvitationRender.from_dict(response_200_item_data)
|
|
29
|
-
|
|
30
|
-
response_200.append(response_200_item)
|
|
31
|
-
|
|
32
|
-
return response_200
|
|
33
|
-
if response.status_code == 404:
|
|
34
|
-
response_404 = cast(Any, None)
|
|
35
|
-
return response_404
|
|
36
|
-
if client.raise_on_unexpected_status:
|
|
37
|
-
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
38
|
-
else:
|
|
39
|
-
return None
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
def _build_response(
|
|
43
|
-
*, client: Client, response: httpx.Response
|
|
44
|
-
) -> Response[Union[Any, list["PendingInvitationRender"]]]:
|
|
45
|
-
return Response(
|
|
46
|
-
status_code=HTTPStatus(response.status_code),
|
|
47
|
-
content=response.content,
|
|
48
|
-
headers=response.headers,
|
|
49
|
-
parsed=_parse_response(client=client, response=response),
|
|
50
|
-
)
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
def sync_detailed(
|
|
54
|
-
*,
|
|
55
|
-
client: Client,
|
|
56
|
-
) -> Response[Union[Any, list["PendingInvitationRender"]]]:
|
|
57
|
-
"""List pending invitations
|
|
58
|
-
|
|
59
|
-
Returns a list of all pending invitations in the workspace.
|
|
60
|
-
|
|
61
|
-
Raises:
|
|
62
|
-
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
63
|
-
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
64
|
-
|
|
65
|
-
Returns:
|
|
66
|
-
Response[Union[Any, list['PendingInvitationRender']]]
|
|
67
|
-
"""
|
|
68
|
-
|
|
69
|
-
kwargs = _get_kwargs()
|
|
70
|
-
|
|
71
|
-
response = client.get_httpx_client().request(
|
|
72
|
-
**kwargs,
|
|
73
|
-
)
|
|
74
|
-
|
|
75
|
-
return _build_response(client=client, response=response)
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
def sync(
|
|
79
|
-
*,
|
|
80
|
-
client: Client,
|
|
81
|
-
) -> Union[Any, list["PendingInvitationRender"]] | None:
|
|
82
|
-
"""List pending invitations
|
|
83
|
-
|
|
84
|
-
Returns a list of all pending invitations in the workspace.
|
|
85
|
-
|
|
86
|
-
Raises:
|
|
87
|
-
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
88
|
-
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
89
|
-
|
|
90
|
-
Returns:
|
|
91
|
-
Union[Any, list['PendingInvitationRender']]
|
|
92
|
-
"""
|
|
93
|
-
|
|
94
|
-
return sync_detailed(
|
|
95
|
-
client=client,
|
|
96
|
-
).parsed
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
async def asyncio_detailed(
|
|
100
|
-
*,
|
|
101
|
-
client: Client,
|
|
102
|
-
) -> Response[Union[Any, list["PendingInvitationRender"]]]:
|
|
103
|
-
"""List pending invitations
|
|
104
|
-
|
|
105
|
-
Returns a list of all pending invitations in the workspace.
|
|
106
|
-
|
|
107
|
-
Raises:
|
|
108
|
-
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
109
|
-
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
110
|
-
|
|
111
|
-
Returns:
|
|
112
|
-
Response[Union[Any, list['PendingInvitationRender']]]
|
|
113
|
-
"""
|
|
114
|
-
|
|
115
|
-
kwargs = _get_kwargs()
|
|
116
|
-
|
|
117
|
-
response = await client.get_async_httpx_client().request(**kwargs)
|
|
118
|
-
|
|
119
|
-
return _build_response(client=client, response=response)
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
async def asyncio(
|
|
123
|
-
*,
|
|
124
|
-
client: Client,
|
|
125
|
-
) -> Union[Any, list["PendingInvitationRender"]] | None:
|
|
126
|
-
"""List pending invitations
|
|
127
|
-
|
|
128
|
-
Returns a list of all pending invitations in the workspace.
|
|
129
|
-
|
|
130
|
-
Raises:
|
|
131
|
-
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
132
|
-
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
133
|
-
|
|
134
|
-
Returns:
|
|
135
|
-
Union[Any, list['PendingInvitationRender']]
|
|
136
|
-
"""
|
|
137
|
-
|
|
138
|
-
return (
|
|
139
|
-
await asyncio_detailed(
|
|
140
|
-
client=client,
|
|
141
|
-
)
|
|
142
|
-
).parsed
|
|
File without changes
|
|
File without changes
|