Skip to content

Commit 9e16aa7

Browse files
committed
SDK regeneration
1 parent ca2f039 commit 9e16aa7

28 files changed

+148
-67
lines changed

README.md

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@ Instantiate and use the client with the following:
2222
```python
2323
from truefoundry_sdk import TrueFoundry
2424
client = TrueFoundry(api_key="YOUR_API_KEY", base_url="https://yourhost.com/path/to/api", )
25-
client.users.invite_user(accept_invite_client_url='<control plane url>/invite-accept', email='email', )
25+
response = client.applications.list(limit=10, offset=0, )
26+
for item in response:
27+
yield item
28+
# alternatively, you can paginate page-by-page
29+
for page in response.iter_pages():
30+
yield page
2631
```
2732

2833
## Async Client
@@ -34,7 +39,13 @@ from truefoundry_sdk import AsyncTrueFoundry
3439
import asyncio
3540
client = AsyncTrueFoundry(api_key="YOUR_API_KEY", base_url="https://yourhost.com/path/to/api", )
3641
async def main() -> None:
37-
await client.users.invite_user(accept_invite_client_url='<control plane url>/invite-accept', email='email', )
42+
response = await client.applications.list(limit=10, offset=0, )
43+
async for item in response:
44+
yield item
45+
46+
# alternatively, you can paginate page-by-page
47+
async for page in response.iter_pages():
48+
yield page
3849
asyncio.run(main())
3950
```
4051

@@ -46,7 +57,7 @@ will be thrown.
4657
```python
4758
from truefoundry_sdk.core.api_error import ApiError
4859
try:
49-
client.users.invite_user(...)
60+
client.applications.list(...)
5061
except ApiError as e:
5162
print(e.status_code)
5263
print(e.body)
@@ -77,7 +88,7 @@ The `.with_raw_response` property returns a "raw" client that can be used to acc
7788
```python
7889
from truefoundry_sdk import TrueFoundry
7990
client = TrueFoundry(..., )
80-
response = client.users.with_raw_response.invite_user(...)
91+
response = client.applications.with_raw_response.list(...)
8192
print(response.headers) # access the response headers
8293
print(response.data) # access the underlying object
8394
pager = client.users.list(...)
@@ -105,7 +116,7 @@ A request is deemed retryable when any of the following HTTP status codes is ret
105116
Use the `max_retries` request option to configure this behavior.
106117

107118
```python
108-
client.users.invite_user(..., request_options={
119+
client.applications.list(..., request_options={
109120
"max_retries": 1
110121
})
111122
```
@@ -120,7 +131,7 @@ from truefoundry_sdk import TrueFoundry
120131
client = TrueFoundry(..., timeout=20.0, )
121132

122133
# Override timeout for a specific method
123-
client.users.invite_user(..., request_options={
134+
client.applications.list(..., request_options={
124135
"timeout_in_seconds": 1
125136
})
126137
```

src/truefoundry_sdk/__init__.py

Lines changed: 26 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,18 @@
3131
ApplicationSetComponentsItem,
3232
ApplicationType,
3333
ApplyMlEntityResponse,
34+
ApplyMlEntityResponseData,
3435
Artifact,
3536
ArtifactManifest,
37+
ArtifactManifestSource,
3638
ArtifactPath,
3739
ArtifactType,
3840
ArtifactVersion,
3941
ArtifactsCacheVolume,
4042
ArtifactsDownload,
4143
ArtifactsDownloadArtifactsItem,
4244
AssistantMessage,
45+
AssistantMessageContent,
4346
AssistantMessageContentItem,
4447
AsyncProcessorSidecar,
4548
AsyncService,
@@ -82,15 +85,14 @@
8285
ContainerTaskConfig,
8386
ContainerTaskConfigImage,
8487
ContainerTaskConfigMountsItem,
85-
Content,
8688
CoreNatsOutputConfig,
8789
CpuUtilizationMetric,
8890
CreateMultiPartUploadRequest,
8991
CreatePersonalAccessTokenResponse,
9092
CronMetric,
91-
Data,
9293
DataDirectory,
9394
DataDirectoryManifest,
95+
DataDirectoryManifestSource,
9496
DeactivateUserResponse,
9597
DeleteApplicationResponse,
9698
DeleteJobRunResponse,
@@ -105,6 +107,7 @@
105107
DeploymentStatusValue,
106108
DeploymentTransition,
107109
DeveloperMessage,
110+
DeveloperMessageContent,
108111
DockerFileBuild,
109112
DockerFileBuildCommand,
110113
DynamicVolumeConfig,
@@ -134,7 +137,6 @@
134137
FlyteWorkflowId,
135138
FlyteWorkflowTemplate,
136139
ForwardAction,
137-
Framework,
138140
Function,
139141
FunctionSchema,
140142
GcpTpu,
@@ -194,6 +196,7 @@
194196
ImageCommand,
195197
ImageContentPart,
196198
ImageUrl,
199+
ImageUrlUrl,
197200
InferMethodName,
198201
Intercept,
199202
InterceptRulesItem,
@@ -271,6 +274,8 @@
271274
Model,
272275
ModelConfiguration,
273276
ModelManifest,
277+
ModelManifestFramework,
278+
ModelManifestSource,
274279
ModelVersion,
275280
ModelVersionEnvironment,
276281
MultiPartUpload,
@@ -299,6 +304,7 @@
299304
Param,
300305
ParamParamType,
301306
Parameters,
307+
ParametersStop,
302308
Permissions,
303309
Port,
304310
PortAppProtocol,
@@ -342,7 +348,6 @@
342348
SklearnSerializationFormat,
343349
SlackBot,
344350
SlackWebhook,
345-
Source,
346351
SpaCyFramework,
347352
SparkDriverConfig,
348353
SparkExecutorConfig,
@@ -364,23 +369,24 @@
364369
StageArtifactResponse,
365370
StaticVolumeConfig,
366371
StatsModelsFramework,
367-
Stop,
368372
StringDataMount,
369373
Subject,
370374
SubjectType,
371375
SystemMessage,
376+
SystemMessageContent,
372377
TaskDockerFileBuild,
373378
TaskPythonBuild,
374379
Team,
375380
TeamManifest,
376381
TensorFlowFramework,
377382
TerminateJobResponse,
378-
Text,
379383
TextContentPart,
384+
TextContentPartText,
380385
TokenPagination,
381386
Tool,
382387
ToolCall,
383388
ToolMessage,
389+
ToolMessageContent,
384390
ToolSchema,
385391
ToolVersion,
386392
TracingProject,
@@ -393,9 +399,9 @@
393399
UpdateSecretInput,
394400
UpdateUserRolesResponse,
395401
UpgradeData,
396-
Url,
397402
User,
398403
UserMessage,
404+
UserMessageContent,
399405
UserMessageContentItem,
400406
UserMetadata,
401407
ValidationError,
@@ -508,15 +514,18 @@
508514
"ApplicationsListRequestDeviceTypeFilter",
509515
"ApplicationsListRequestLifecycleStage",
510516
"ApplyMlEntityResponse",
517+
"ApplyMlEntityResponseData",
511518
"Artifact",
512519
"ArtifactManifest",
520+
"ArtifactManifestSource",
513521
"ArtifactPath",
514522
"ArtifactType",
515523
"ArtifactVersion",
516524
"ArtifactsCacheVolume",
517525
"ArtifactsDownload",
518526
"ArtifactsDownloadArtifactsItem",
519527
"AssistantMessage",
528+
"AssistantMessageContent",
520529
"AssistantMessageContentItem",
521530
"AsyncProcessorSidecar",
522531
"AsyncService",
@@ -563,15 +572,14 @@
563572
"ContainerTaskConfig",
564573
"ContainerTaskConfigImage",
565574
"ContainerTaskConfigMountsItem",
566-
"Content",
567575
"CoreNatsOutputConfig",
568576
"CpuUtilizationMetric",
569577
"CreateMultiPartUploadRequest",
570578
"CreatePersonalAccessTokenResponse",
571579
"CronMetric",
572-
"Data",
573580
"DataDirectory",
574581
"DataDirectoryManifest",
582+
"DataDirectoryManifestSource",
575583
"DeactivateUserResponse",
576584
"DeleteApplicationResponse",
577585
"DeleteJobRunResponse",
@@ -586,6 +594,7 @@
586594
"DeploymentStatusValue",
587595
"DeploymentTransition",
588596
"DeveloperMessage",
597+
"DeveloperMessageContent",
589598
"DockerFileBuild",
590599
"DockerFileBuildCommand",
591600
"DynamicVolumeConfig",
@@ -618,7 +627,6 @@
618627
"FlyteWorkflowTemplate",
619628
"ForbiddenError",
620629
"ForwardAction",
621-
"Framework",
622630
"Function",
623631
"FunctionSchema",
624632
"GcpTpu",
@@ -678,6 +686,7 @@
678686
"ImageCommand",
679687
"ImageContentPart",
680688
"ImageUrl",
689+
"ImageUrlUrl",
681690
"InferMethodName",
682691
"Intercept",
683692
"InterceptRulesItem",
@@ -756,6 +765,8 @@
756765
"Model",
757766
"ModelConfiguration",
758767
"ModelManifest",
768+
"ModelManifestFramework",
769+
"ModelManifestSource",
759770
"ModelVersion",
760771
"ModelVersionEnvironment",
761772
"MultiPartUpload",
@@ -786,6 +797,7 @@
786797
"Param",
787798
"ParamParamType",
788799
"Parameters",
800+
"ParametersStop",
789801
"Permissions",
790802
"Port",
791803
"PortAppProtocol",
@@ -829,7 +841,6 @@
829841
"SklearnSerializationFormat",
830842
"SlackBot",
831843
"SlackWebhook",
832-
"Source",
833844
"SpaCyFramework",
834845
"SparkDriverConfig",
835846
"SparkExecutorConfig",
@@ -852,23 +863,24 @@
852863
"StageArtifactResponse",
853864
"StaticVolumeConfig",
854865
"StatsModelsFramework",
855-
"Stop",
856866
"StringDataMount",
857867
"Subject",
858868
"SubjectType",
859869
"SystemMessage",
870+
"SystemMessageContent",
860871
"TaskDockerFileBuild",
861872
"TaskPythonBuild",
862873
"Team",
863874
"TeamManifest",
864875
"TensorFlowFramework",
865876
"TerminateJobResponse",
866-
"Text",
867877
"TextContentPart",
878+
"TextContentPartText",
868879
"TokenPagination",
869880
"Tool",
870881
"ToolCall",
871882
"ToolMessage",
883+
"ToolMessageContent",
872884
"ToolSchema",
873885
"ToolVersion",
874886
"TracingProject",
@@ -885,9 +897,9 @@
885897
"UpdateSecretInput",
886898
"UpdateUserRolesResponse",
887899
"UpgradeData",
888-
"Url",
889900
"User",
890901
"UserMessage",
902+
"UserMessageContent",
891903
"UserMessageContentItem",
892904
"UserMetadata",
893905
"ValidationError",

0 commit comments

Comments
 (0)