Commit 211e58d
committed
refactor: flip spine to NemoClient + swap all SDK imports
Flip sdk_factory to return NemoClient/AsyncNemoClient instead of
NeMoPlatform/AsyncNeMoPlatform. Rewrite the bridge adapter to use
from_client() instead of reading Stainless private attrs. Swap all
528 consumer files from 'from nemo_platform' imports to typed client
imports (nemo_platform_plugin.client.client, .errors, .types, etc.).
Type annotations changed: NeMoPlatform -> NemoClient,
AsyncNeMoPlatform -> AsyncNemoClient throughout.
Method calls use new typed client method names (get_workspace,
create_guardrail_config, etc.) which are available on the typed
clients from PR 1. Old method names (retrieve, create, list, etc.)
are also available via the compat layer from PR 2.
The Stainless SDK remains in place (deletion is PR 10). 24 files
that still import from nemo_platform (enhanced NeMoPlatform client,
error handlers, code generators) are left as-is since the SDK is
still present and importable.
Pyproject.toml files are NOT changed (SDK deps kept) — removal
happens in PR 10 when the SDK is actually deleted.
AIRCORE-827
Signed-off-by: Max Dubrinsky <mdubrinsky@nvidia.com>1 parent d0eddf9 commit 211e58d
528 files changed
Lines changed: 3671 additions & 3757 deletions
File tree
- agents/nemo-studio-assistant/src/nemo_studio_assistant
- docs/evaluator
- e2e
- auditor
- files
- guardrails
- packages
- data_designer_nemo
- src/data_designer_nemo
- tests/unit
- filesets
- src/filesets
- tests
- models
- src/models
- tests
- nemo_evaluator_sdk/tests/agent_eval
- nemo_platform_ext
- src/nemo_platform_ext
- client
- cli
- commands
- api/files
- quickstart
- use_cases
- core
- telemetry
- local
- quickstart
- skills/nemo-build-agent/references/templates
- tests
- client
- cli
- commands
- core
- integration
- telemetry
- nemo_platform_plugin
- src/nemo_platform_plugin
- client
- jobs
- tests
- client
- nmp_common
- src/nmp/common
- auth
- errors
- jobs
- service
- tests
- api_factory
- auth
- jobs
- nmp_common
- sdk_factory
- nmp_customization_common
- src/nmp/customization_common
- contributor
- sdk
- service
- tasks
- file_io
- model_entity
- tests
- tasks
- nmp_testing
- src/nmp/testing
- e2e
- tests/unit
- plugins
- example-plugin
- src/nemo_example_plugin
- tests/integration
- nemo-agents
- src/nemo_agents_plugin
- jobs
- leaderboard
- runner
- tasks
- evaluate_suite
- execute
- telemetry
- usage
- sources
- tests
- integration
- unit
- nemo-anonymizer
- src/nemo_anonymizer_plugin
- app
- functions
- jobs
- sdk
- tasks/anonymizer
- tests/unit
- nemo-auditor
- src/nemo_auditor
- api/v2
- jobs
- sdk_resources
- tests
- nemo-automodel
- src/nemo_automodel_plugin
- jobs
- tests
- nemo-customizer/src/nemo_customizer/sdk
- nemo-data-designer
- src/nemo_data_designer_plugin
- cli
- functions
- jobs
- sdk
- testing
- tests
- integration
- unit
- nemo-deployments
- src/nemo_deployments_plugin
- backends
- tests/unit
- backends
- k8s
- openshell
- reconciler
- nemo-eval-author/src/nemo_eval_author_plugin/discovery
- nemo-evaluator
- examples
- src/nemo_evaluator
- api
- service
- intake
- jobs
- sdk
- tests
- api
- service
- v2
- intake
- integration
- jobs
- nemo-experimentalist
- examples
- smoke-agent/scripts
- tau3-nooa-agent
- src/nemo_experimentalist_plugin
- eval_author
- experimentalist
- components
- tests
- eval_author
- manual
- experimentalist
- nemo-guardrails
- src/nemo_guardrails_plugin
- benchmarks
- tests
- integration
- unit
- nemo-insights
- evaluation
- examples/research-agent/tests
- src/nemo_insights_plugin
- analyst
- jobs
- tests
- evaluation
- nemo-iron-swarm
- src/nemo_iron_swarm_plugin
- api/v2
- cli
- jobs
- tests/unit
- nemo-optimization
- src/nemo_optimization
- backends
- ga
- optuna
- jobs
- tests
- nemo-rl/src/nemo_rl_plugin
- jobs
- nemo-safe-synthesizer
- scripts
- src/nemo_safe_synthesizer_plugin
- api/v2/jobs
- sdk
- tasks/safe_synthesizer
- tests/unit
- nemo-switchyard/vendor/switchyard/switchyard/lib/processors
- nemo-unsloth/src/nemo_unsloth_plugin
- jobs
- services
- automodel
- src/nmp/automodel
- app/jobs
- tests
- core
- auth/tests/integration
- entities
- e2e
- src/nmp/core/entities/controllers
- tests/integration
- files
- script
- src/nmp/core/files
- api
- v2
- filesets
- hf
- otlp
- testing
- tests/integration
- external_storage
- inference-gateway
- src/nmp/core/inference_gateway
- api
- testing
- tests
- integration
- unit
- jobs
- src/nmp/core/jobs
- api
- v2/jobs
- app
- controllers
- backends
- kubernetes
- tests
- controllers
- integration
- mcp/tests/integration
- models
- src/nmp/core/models
- api
- service
- v2
- app
- controllers
- backends
- deployments_plugin
- sidecars/adapters
- tasks/model_spec
- tests
- integration
- unit
- common
- controllers
- backends/deployments_plugin
- secrets/tests
- integration
- guardrails
- src/nmp/guardrails
- api
- app/handlers
- tests/integration
- hello-world
- src/nmp/hello_world
- api
- v1/hello
- v2/jobs
- tasks
- access_fileset
- hello_world
- workload_workspace_get
- tests
- integration
- tasks
- unit
- intake
- src/nmp/intake/spans/api
- tests/integration
- platform-seed/src/nmp/platform_seed/tasks/seed
- rl
- src/nmp/rl
- app/jobs
- tests
- unsloth/src/nmp/unsloth
- app/jobs
- tests
- agentic-use
- auditor-config-crud-cli-easy/tests
- auditor-config-crud-cli/tests
- auditor-custom-probes-cli/tests
- auditor-default-job-cli-easy/tests
- auditor-default-job-cli/tests
- auditor-target-crud-cli-easy/tests
- auditor-target-crud-cli/tests
- auth-authorization-cli-easy/tests
- auth-authorization-cli/tests
- customizer-lora-job-cli/tests
- data-designer-config-cli-easy/tests
- data-designer-config-cli/tests
- data-designer-preview-easy/tests
- data-designer-preview/tests
- entities-basic-cli-easy/tests
- entities-basic-cli/tests
- evaluator-academic-benchmark-cli-easy/tests
- evaluator-academic-benchmark-cli/tests
- evaluator-llm-judge-cli-easy/tests
- evaluator-llm-judge-cli/tests
- evaluator-simple-job-cli-easy/tests
- evaluator-simple-job-cli/tests
- evaluator-tool-calling-cli/tests
- evaluator-zero-config-judge-cli/tests
- example-test-template/tests
- files-crud-cli-easy/tests
- files-crud-cli/tests
- files-upload-dataset-cli-easy/tests
- files-upload-dataset-cli/tests
- guardrails-content-safety-cli-easy
- environment
- tests
- guardrails-content-safety-cli
- environment
- tests
- guardrails-custom-config-cli-easy/tests
- guardrails-custom-config-cli/tests
- inference-chat-completions-cli-easy
- environment
- tests
- inference-chat-completions-cli
- environment
- tests
- inference-igw-provider-cli-easy/tests
- inference-igw-provider-cli/tests
- inference-mockllm-cli-easy/tests
- inference-mockllm-cli/tests
- inference-provider-reg-cli-easy/tests
- inference-provider-reg-cli/tests
- intake-export-cli/tests
- jobs-execute-gpu-cli/tests
- jobs-multistep-cpu-cli/tests
- tests
- workspace-basic-cli-easy/tests
- workspace-basic-cli/tests
- workspace-basic-mcp/tests
- auth_idp
- contracts
- auth/integration
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
| 127 | + | |
128 | 128 | | |
129 | | - | |
| 129 | + | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
| 135 | + | |
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
| 151 | + | |
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
| 161 | + | |
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
| 172 | + | |
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | | - | |
| 181 | + | |
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | | - | |
| 194 | + | |
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | | - | |
| 236 | + | |
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | | - | |
| 248 | + | |
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
279 | | - | |
| 279 | + | |
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
| |||
294 | 294 | | |
295 | 295 | | |
296 | 296 | | |
297 | | - | |
| 297 | + | |
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
| 146 | + | |
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
| 154 | + | |
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
| 183 | + | |
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
| 197 | + | |
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
203 | | - | |
| 203 | + | |
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | | - | |
| 219 | + | |
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
225 | | - | |
| 225 | + | |
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
0 commit comments