Skip to content

Commit 9b519a7

Browse files
SDK regeneration (#10)
Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
1 parent 256df30 commit 9b519a7

71 files changed

Lines changed: 620 additions & 1063 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "truefoundry-sdk"
33

44
[tool.poetry]
55
name = "truefoundry-sdk"
6-
version = "0.0.4"
6+
version = "0.0.5"
77
description = ""
88
readme = "README.md"
99
authors = []

reference.md

Lines changed: 28 additions & 170 deletions
Original file line numberDiff line numberDiff line change
@@ -1,160 +1,4 @@
11
# Reference
2-
## V1
3-
<details><summary><code>client.v1.<a href="src/truefoundry_sdk/v1/client.py">apply</a>(...)</code></summary>
4-
<dl>
5-
<dd>
6-
7-
#### 🔌 Usage
8-
9-
<dl>
10-
<dd>
11-
12-
<dl>
13-
<dd>
14-
15-
```python
16-
from truefoundry_sdk import Model, TrueFoundry, TrueFoundryManagedSource
17-
18-
client = TrueFoundry(
19-
api_key="YOUR_API_KEY",
20-
base_url="https://yourhost.com/path/to/api",
21-
)
22-
client.v1.apply(
23-
manifest=Model(
24-
metadata={"key": "value"},
25-
source=TrueFoundryManagedSource(),
26-
),
27-
)
28-
29-
```
30-
</dd>
31-
</dl>
32-
</dd>
33-
</dl>
34-
35-
#### ⚙️ Parameters
36-
37-
<dl>
38-
<dd>
39-
40-
<dl>
41-
<dd>
42-
43-
**manifest:** `Manifest`
44-
45-
</dd>
46-
</dl>
47-
48-
<dl>
49-
<dd>
50-
51-
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
52-
53-
</dd>
54-
</dl>
55-
</dd>
56-
</dl>
57-
58-
59-
</dd>
60-
</dl>
61-
</details>
62-
63-
## Health
64-
<details><summary><code>client.health.<a href="src/truefoundry_sdk/health/client.py">serve_get</a>()</code></summary>
65-
<dl>
66-
<dd>
67-
68-
#### 🔌 Usage
69-
70-
<dl>
71-
<dd>
72-
73-
<dl>
74-
<dd>
75-
76-
```python
77-
from truefoundry_sdk import TrueFoundry
78-
79-
client = TrueFoundry(
80-
api_key="YOUR_API_KEY",
81-
base_url="https://yourhost.com/path/to/api",
82-
)
83-
client.health.serve_get()
84-
85-
```
86-
</dd>
87-
</dl>
88-
</dd>
89-
</dl>
90-
91-
#### ⚙️ Parameters
92-
93-
<dl>
94-
<dd>
95-
96-
<dl>
97-
<dd>
98-
99-
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
100-
101-
</dd>
102-
</dl>
103-
</dd>
104-
</dl>
105-
106-
107-
</dd>
108-
</dl>
109-
</details>
110-
111-
<details><summary><code>client.health.<a href="src/truefoundry_sdk/health/client.py">get</a>()</code></summary>
112-
<dl>
113-
<dd>
114-
115-
#### 🔌 Usage
116-
117-
<dl>
118-
<dd>
119-
120-
<dl>
121-
<dd>
122-
123-
```python
124-
from truefoundry_sdk import TrueFoundry
125-
126-
client = TrueFoundry(
127-
api_key="YOUR_API_KEY",
128-
base_url="https://yourhost.com/path/to/api",
129-
)
130-
client.health.get()
131-
132-
```
133-
</dd>
134-
</dl>
135-
</dd>
136-
</dl>
137-
138-
#### ⚙️ Parameters
139-
140-
<dl>
141-
<dd>
142-
143-
<dl>
144-
<dd>
145-
146-
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
147-
148-
</dd>
149-
</dl>
150-
</dd>
151-
</dl>
152-
153-
154-
</dd>
155-
</dl>
156-
</details>
157-
1582
## V1 Artifacts
1593
<details><summary><code>client.v1.artifacts.<a href="src/truefoundry_sdk/v1/artifacts/client.py">get</a>(...)</code></summary>
1604
<dl>
@@ -375,15 +219,17 @@ for page in response.iter_pages():
375219
<dd>
376220

377221
```python
378-
from truefoundry_sdk import Model, TrueFoundry, TrueFoundryManagedSource
222+
from truefoundry_sdk import ModelManifest, TrueFoundry, TrueFoundryManagedSource
379223

380224
client = TrueFoundry(
381225
api_key="YOUR_API_KEY",
382226
base_url="https://yourhost.com/path/to/api",
383227
)
384228
client.v1.artifacts.create_or_update(
385-
manifest=Model(
229+
manifest=ModelManifest(
230+
name="name",
386231
metadata={"key": "value"},
232+
ml_repo="ml_repo",
387233
source=TrueFoundryManagedSource(),
388234
),
389235
)
@@ -634,15 +480,17 @@ for page in response.iter_pages():
634480
<dd>
635481

636482
```python
637-
from truefoundry_sdk import Model, TrueFoundry, TrueFoundryManagedSource
483+
from truefoundry_sdk import ModelManifest, TrueFoundry, TrueFoundryManagedSource
638484

639485
client = TrueFoundry(
640486
api_key="YOUR_API_KEY",
641487
base_url="https://yourhost.com/path/to/api",
642488
)
643489
client.v1.agents.create_or_update(
644-
manifest=Model(
490+
manifest=ModelManifest(
491+
name="name",
645492
metadata={"key": "value"},
493+
ml_repo="ml_repo",
646494
source=TrueFoundryManagedSource(),
647495
),
648496
)
@@ -893,15 +741,17 @@ for page in response.iter_pages():
893741
<dd>
894742

895743
```python
896-
from truefoundry_sdk import Model, TrueFoundry, TrueFoundryManagedSource
744+
from truefoundry_sdk import ModelManifest, TrueFoundry, TrueFoundryManagedSource
897745

898746
client = TrueFoundry(
899747
api_key="YOUR_API_KEY",
900748
base_url="https://yourhost.com/path/to/api",
901749
)
902750
client.v1.prompts.create_or_update(
903-
manifest=Model(
751+
manifest=ModelManifest(
752+
name="name",
904753
metadata={"key": "value"},
754+
ml_repo="ml_repo",
905755
source=TrueFoundryManagedSource(),
906756
),
907757
)
@@ -1152,15 +1002,17 @@ for page in response.iter_pages():
11521002
<dd>
11531003

11541004
```python
1155-
from truefoundry_sdk import Model, TrueFoundry, TrueFoundryManagedSource
1005+
from truefoundry_sdk import ModelManifest, TrueFoundry, TrueFoundryManagedSource
11561006

11571007
client = TrueFoundry(
11581008
api_key="YOUR_API_KEY",
11591009
base_url="https://yourhost.com/path/to/api",
11601010
)
11611011
client.v1.tools.create_or_update(
1162-
manifest=Model(
1012+
manifest=ModelManifest(
1013+
name="name",
11631014
metadata={"key": "value"},
1015+
ml_repo="ml_repo",
11641016
source=TrueFoundryManagedSource(),
11651017
),
11661018
)
@@ -1419,15 +1271,17 @@ for page in response.iter_pages():
14191271
<dd>
14201272

14211273
```python
1422-
from truefoundry_sdk import Model, TrueFoundry, TrueFoundryManagedSource
1274+
from truefoundry_sdk import ModelManifest, TrueFoundry, TrueFoundryManagedSource
14231275

14241276
client = TrueFoundry(
14251277
api_key="YOUR_API_KEY",
14261278
base_url="https://yourhost.com/path/to/api",
14271279
)
14281280
client.v1.models.create_or_update(
1429-
manifest=Model(
1281+
manifest=ModelManifest(
1282+
name="name",
14301283
metadata={"key": "value"},
1284+
ml_repo="ml_repo",
14311285
source=TrueFoundryManagedSource(),
14321286
),
14331287
)
@@ -1894,15 +1748,17 @@ client.v1.artifact_versions.create_multi_part_upload(
18941748
<dd>
18951749

18961750
```python
1897-
from truefoundry_sdk import Model, TrueFoundry, TrueFoundryManagedSource
1751+
from truefoundry_sdk import ModelManifest, TrueFoundry, TrueFoundryManagedSource
18981752

18991753
client = TrueFoundry(
19001754
api_key="YOUR_API_KEY",
19011755
base_url="https://yourhost.com/path/to/api",
19021756
)
19031757
client.v1.artifact_versions.stage(
1904-
manifest=Model(
1758+
manifest=ModelManifest(
1759+
name="name",
19051760
metadata={"key": "value"},
1761+
ml_repo="ml_repo",
19061762
source=TrueFoundryManagedSource(),
19071763
),
19081764
)
@@ -3368,15 +3224,17 @@ for page in response.iter_pages():
33683224
<dd>
33693225

33703226
```python
3371-
from truefoundry_sdk import Model, TrueFoundry, TrueFoundryManagedSource
3227+
from truefoundry_sdk import ModelManifest, TrueFoundry, TrueFoundryManagedSource
33723228

33733229
client = TrueFoundry(
33743230
api_key="YOUR_API_KEY",
33753231
base_url="https://yourhost.com/path/to/api",
33763232
)
33773233
client.v1.data_directories.create_or_update(
3378-
manifest=Model(
3234+
manifest=ModelManifest(
3235+
name="name",
33793236
metadata={"key": "value"},
3237+
ml_repo="ml_repo",
33803238
source=TrueFoundryManagedSource(),
33813239
),
33823240
)

0 commit comments

Comments
 (0)