-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Expand file tree
/
Copy pathclient.tsp
More file actions
482 lines (405 loc) · 23.3 KB
/
Copy pathclient.tsp
File metadata and controls
482 lines (405 loc) · 23.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
//
// This file is used for emitting the Python client (package azure-ai-projects) and
// the JS client (package @azure/ai-projects).
//
// Stable operations (GA routes) with preview features (optional opt-in request headers)
import "./src/agents/routes.tsp";
import "./src/evaluation-rules/routes.tsp";
// Stable operation (GA routes) without preview features
import "./src/connections/routes.tsp";
import "./src/datasets/routes.tsp";
import "./src/deployments/routes.tsp";
import "./src/indexes/routes.tsp";
// Beta operations (preview routes, requiring opt-in request header)
import "./src/evaluation-taxonomies/routes.tsp";
import "./src/evaluators/routes.tsp";
import "./src/insights/routes.tsp";
import "./src/memory-stores/routes.tsp";
import "./src/models/routes.tsp";
import "./src/red-teams/routes.tsp";
import "./src/routines/routes.tsp";
import "./src/schedules/routes.tsp";
import "./src/toolboxes/routes.tsp";
import "./src/skills/routes.tsp";
import "./src/agents-session-files/routes.tsp";
import "./src/data_generation_jobs/routes.tsp";
//import "./src/evaluation-suites/routes.tsp";
import "./src/agents-optimization/routes.tsp";
// Create a ".beta" subclient for the above beta operations
import "./relocate-beta-operations.tsp";
using Azure.ClientGenerator.Core;
using Azure.AI.Projects;
// --------------------------------------------------------------------------------
// Root client
// --------------------------------------------------------------------------------
@@clientName(Azure.AI.Projects, "AIProjectClient");
// --------------------------------------------------------------------------------
// Namespace remapping
// --------------------------------------------------------------------------------
// To fix circular dependency in Python, remaining OpenAI types are emitted as Azure.AI.Projects
@@clientNamespace(OpenAI, "azure.ai.projects", "python");
// ********************************************************************************
// ********************************************************************************
// ********************************************************************************
//
// PART 1 - RELATED TO GA OPERATIONS
//
// ********************************************************************************
// ********************************************************************************
// ********************************************************************************
// --------------------------------------------------------------------------------
// Agents sub‐client
// --------------------------------------------------------------------------------
// Use short form method names
@@clientName(Agents.getAgent, "get");
@@clientName(Agents.deleteAgent, "delete");
@@clientName(Agents.listAgents, "list");
@@clientName(Agents.createAgentVersion, "createVersion");
@@clientName(Agents.getAgentVersion, "getVersion");
@@clientName(Agents.deleteAgentVersion, "deleteVersion");
@@clientName(Agents.listAgentVersions, "listVersions");
@@clientName(
Agents.createAgentVersionFromManifest,
"create_version_from_manifest",
"python"
);
// Exclude these operations entirely from the Python SDK.
// Note that JavaScript SDK already shipped 2.0.0 with these, so they can't be removed.
@@scope(Agents.createAgent, "!(python)");
@@scope(Agents.updateAgent, "!(python)");
@@scope(Agents.createAgentFromManifest, "!(python)");
@@scope(Agents.updateAgentFromManifest, "!(python)");
// Rename models ending with 'Object' to end with 'Details' for Python
@@clientName(AgentObject, "AgentDetails", "python");
@@clientName(AgentVersionObject, "AgentVersionDetails", "python");
@@clientName(Agents.patchAgentObject, "patchAgentDetails", "python");
@@clientName(AgentObject, "Agent", "javascript");
@@clientName(AgentVersionObject, "AgentVersion", "javascript");
// Python emitter creates enum A2_A_PREVIEW = "a2a_preview". Override it here to "A2A_PREVIEW".
@@clientName(_PreviewAgentToolType.a2a_preview, "A2A_PREVIEW", "python");
// Python emitter creates enum values ENUM_1_G = "1g", ENUM_4_G = "4g" etc. Override it here as below.
@@clientName(OpenAI.ContainerMemoryLimit.`1g`, "MEMORY_1GB", "python");
@@clientName(OpenAI.ContainerMemoryLimit.`4g`, "MEMORY_4GB", "python");
@@clientName(OpenAI.ContainerMemoryLimit.`16g`, "MEMORY_16GB", "python");
@@clientName(OpenAI.ContainerMemoryLimit.`64g`, "MEMORY_64GB", "python");
@@clientName(OpenAI.ImageGenActionEnum, "ImageGenAction");
// --------------------------------------------------------------------------------
// Datasets sub‐client
// --------------------------------------------------------------------------------
// Shorter method names for SDK datasets operations
@@clientName(Datasets.listLatest, "list");
@@clientName(Datasets.getVersion, "get");
@@clientName(Datasets.deleteVersion, "delete");
@@clientName(Datasets.createOrUpdateVersion, "createOrUpdate");
@@clientName(Datasets.startPendingUploadVersion, "pendingUpload");
// Data generation jobs — renamed for SDK discoverability
@@clientName(DataGenerationJobs.get, "getGenerationJob");
@@clientName(DataGenerationJobs.list, "listGenerationJobs");
@@clientName(DataGenerationJobs.create, "createGenerationJob");
@@clientName(DataGenerationJobs.cancel, "cancelGenerationJob");
@@clientName(DataGenerationJobs.delete, "deleteGenerationJob");
// More accurate naming
@@clientName(AssetCredentialResponse, "DatasetCredential");
@@clientName(SasCredential, "BlobReferenceSasCredential"); // Not to be confused with class "SASCredentials"
// --------------------------------------------------------------------------------
// Indexes sub‐client
// --------------------------------------------------------------------------------
// Shorter method names for SDK Index operations
@@clientName(Indexes.listLatest, "list");
@@clientName(Indexes.getVersion, "get");
@@clientName(Indexes.deleteVersion, "delete");
@@clientName(Indexes.createOrUpdateVersion, "createOrUpdate");
// --------------------------------------------------------------------------------
// Toolboxes sub-client
// --------------------------------------------------------------------------------
@@clientName(Toolboxes.createToolboxVersion, "create_version");
@@clientName(Toolboxes.updateToolbox, "update");
@@clientName(Toolboxes.getToolbox, "get");
@@clientName(Toolboxes.getToolboxVersion, "get_version");
@@clientName(Toolboxes.listToolboxes, "list");
@@clientName(Toolboxes.listToolboxVersions, "list_versions");
@@clientName(Toolboxes.deleteToolbox, "delete");
@@clientName(Toolboxes.deleteToolboxVersion, "delete_version");
// --------------------------------------------------------------------------------
// Connections sub‐client
// --------------------------------------------------------------------------------
// Make these two internal, since all SDKs hand-write a single public method with boolean "includeCredentials"
// input parameter that calls either on these two.
@@access(Connections.get, Access.internal);
@@access(Connections.getWithCredentials, Access.internal);
// --------------------------------------------------------------------------------
// Deployment sub‐client
// --------------------------------------------------------------------------------
// Less generic names
@@clientName(Sku, "ModelDeploymentSku");
// --------------------------------------------------------------------------------
// Other
// --------------------------------------------------------------------------------
// Rename OpenAI.Error to avoid conflict with Azure.Core.Foundations.Error.
// OpenAI.Error is the object type of the `error` properties in `ApiErrorResponse`
// and `MemoryStoreUpdateResponse`.
@@clientName(OpenAI.Error, "ApiError");
// ********************************************************************************
// ********************************************************************************
// ********************************************************************************
//
// PART 2 - RELATED TO BETA OPERATIONS
//
// ********************************************************************************
// ********************************************************************************
// ********************************************************************************
// --------------------------------------------------------------------------------
// Beta Agents sub-client
// --------------------------------------------------------------------------------
@@clientName(AgentOptimizationJobs.create, "createOptimizationJob");
@@clientName(AgentOptimizationJobs.get, "getOptimizationJob");
@@clientName(AgentOptimizationJobs.list, "listOptimizationJobs");
@@clientName(AgentOptimizationJobs.cancel, "cancelOptimizationJob");
@@clientName(AgentOptimizationJobs.delete, "deleteOptimizationJob");
@@clientName(
AgentOptimizationJobs.listCandidates,
"listOptimizationCandidates"
);
@@clientName(AgentOptimizationJobs.getCandidate, "getOptimizationCandidate");
@@clientName(
AgentOptimizationJobs.getCandidateConfig,
"getOptimizationCandidateConfig"
);
@@clientName(
AgentOptimizationJobs.getCandidateResults,
"getOptimizationCandidateResults"
);
// DatasetItem model has a property `response_items?: OpenAI.OutputItem[]`. It is used
// to define Agent optimization request. If emitted as-is, it pulls in a lot of
// OpenAI responses classes. We want Foundry SDK to be free of those, therefore for the
// time being we define output item as a generic dictionary.
@@alternateType(OpenAI.OutputItem, Record<unknown>);
// Make this method internal, since it's patched with a new one that supports either binary or file-path input
@@access(AgentSessionFiles.uploadSessionFile, Access.internal, "python");
@@usage(SessionFileWriteResponse, Usage.output);
@@access(SessionFileWriteResponse, Access.public);
// Exclude these operations entirely from emitted SDK. These are convenience REST APIs that we don't think bring
// real value on SDK surface. We can do everything using createAgentVersionFromCode.
@@scope(Agents.createAgentFromCode, "!(python, javascript)");
@@scope(Agents.updateAgentFromCode, "!(python, javascript)");
@@clientName(Agents.downloadAgentCode, "download_code", "python");
@@clientName(Agents.createAgentVersionFromCode, "createVersionFromCode");
@@clientName(DownloadAgentCodeResponse, "DownloadAgentCodeResult", "python");
@@clientName(
SessionDirectoryListResponse,
"SessionDirectoryListResult",
"python"
);
@@clientName(SessionFileWriteResponse, "SessionFileWriteResult", "python");
// --------------------------------------------------------------------------------
// Class renames related to Responses
// --------------------------------------------------------------------------------
// Allow assigning a `dict[str, Any]` object directly to the "schema" property of TextResponseFormatJsonSchema
@@alternateType(OpenAI.ResponseFormatJsonSchemaSchema, Record<unknown>);
// Note there is also OpenAI.TextResponseFormatJsonSchema (which extends OpenAI.TextResponseFormatConfiguration). It already has a good name.
@@clientName(OpenAI.TextResponseFormatConfiguration, "TextResponseFormat");
@@clientName(
OpenAI.TextResponseFormatConfigurationResponseFormatText,
"TextResponseFormatText"
);
@@clientName(
OpenAI.TextResponseFormatConfigurationResponseFormatJsonObject,
"TextResponseFormatJsonObject"
);
// --------------------------------------------------------------------------------
// Beta Memories sub-client
// --------------------------------------------------------------------------------
@@clientName(MemoryStores.createMemoryStore, "create");
@@clientName(MemoryStores.updateMemoryStore, "update");
@@clientName(MemoryStores.getMemoryStore, "get");
@@clientName(MemoryStores.listMemoryStores, "list");
@@clientName(MemoryStores.deleteMemoryStore, "delete");
@@clientName(MemoryStoreSearchResponse, "MemoryStoreSearchResult", "python");
@@clientName(DeleteMemoryStoreResponse, "DeleteMemoryStoreResult", "python");
@@clientName(DeleteMemoryResponse, "DeleteMemoryResult", "python");
@@clientName(MemoryStoreUpdateResponse, "MemoryStoreUpdateResult", "python");
@@clientName(
MemoryStoreDeleteScopeResponse,
"MemoryStoreDeleteScopeResult",
"python"
);
// For Python and JS, Memory Stores update and search operations are the only Foundry operations that
// define OpenAI.InputItem as inputs. This pulls in ~100 OpenAI classes related to input items. We want the
// Foundry SDK to be free of those, therefore for the time being we define input item as a generic dictionary.
@@alternateType(OpenAI.InputItem, Record<unknown>);
// Note the doc string replacement below is for JavaScript only, because for Python we hand-write the
// relevant methods with proper doc strings (see `begin_update_memories` and `search_memories` methods)
@@clientDoc(
MemoryStoreUpdateRequest.items,
"A list of messages to store in memory, each one represented as an object with `role`, `content` and `type` keys. Similar to how OpenAI defines input items in Responses operations. Example of an item: {\"role\": \"user\", \"type\": \"message\", \"content\": \"my user message\"}. Only messages with `type` equals `message` are currently processed. Others are ignored.",
DocumentationMode.replace,
"javascript"
);
@@clientDoc(
MemoryStoreSearchRequest.items,
"A list of messages used to extract relevant memories, each one represented as an object with `role`, `content` and `type` keys. Similar to how OpenAI defines input items in Responses operations. Example of an item: {\"role\": \"user\", \"type\": \"message\", \"content\": \"my user message\"}. Only messages with `type` equals `message` are currently processed. Others are ignored.",
DocumentationMode.replace,
"javascript"
);
// The Python SDK will have custom code to handle LRO memory updates, and
// new input "items" specified via OpenAI classes.
@@access(MemoryStores.updateMemories, Access.internal, "python");
@@scope(MemoryStores.getUpdateResult, "!(python)");
@@usage(MemoryStoreUpdateCompletedResult, Usage.output);
@@access(MemoryStoreUpdateCompletedResult, Access.public);
@@usage(MemoryStoreUpdateResponse, Usage.output);
@@access(MemoryStoreUpdateResponse, Access.public);
// The Python SDK will have custom code to handle memory search, with
// new input "items" specified via OpenAI classes.
@@access(MemoryStores.searchMemories, Access.internal, "python");
@@access(MemoryStoreSearchResponse, Access.public, "python");
// Rename models ending with 'Object' to end with 'Details' for Python
@@clientName(MemoryStoreObject, "MemoryStoreDetails", "python");
// Remove 'Object' suffix for JS client
@@clientName(MemoryStoreObject, "MemoryStore", "javascript");
// --------------------------------------------------------------------------------
// Beta Routines sub-client
// --------------------------------------------------------------------------------
@@clientName(Routines.createOrUpdateRoutine, "createOrUpdate");
@@clientName(Routines.getRoutine, "get");
@@clientName(Routines.enableRoutine, "enable");
@@clientName(Routines.disableRoutine, "disable");
@@clientName(Routines.listRoutines, "list");
@@clientName(Routines.deleteRoutine, "delete");
@@clientName(Routines.listRoutineRuns, "listRuns");
@@clientName(Routines.dispatchRoutineAsync, "dispatch");
@@clientName(DispatchRoutineResponse, "DispatchRoutineResult", "python");
// --------------------------------------------------------------------------------
// Beta Evaluators sub‐client
// --------------------------------------------------------------------------------
// Need to explicitly mention both languages to avoid compile error
@@clientName(Evaluators.listLatestVersions, "list", "python, javascript");
// Evaluator pending upload
@@clientName(Evaluators.startPendingUpload, "pendingUpload");
// Evaluator generation jobs — renamed for SDK discoverability
@@clientName(EvaluatorGenerationJobs.create, "createGenerationJob");
@@clientName(EvaluatorGenerationJobs.get, "getGenerationJob");
@@clientName(EvaluatorGenerationJobs.list, "listGenerationJobs");
@@clientName(EvaluatorGenerationJobs.cancel, "cancelGenerationJob");
@@clientName(EvaluatorGenerationJobs.delete, "deleteGenerationJob");
// EvaluatorVersion datetime fields are typed as string in the spec but carry ISO-8601 timestamps
@@alternateType(EvaluatorVersion.created_at, utcDateTime, "python");
@@alternateType(EvaluatorVersion.modified_at, utcDateTime, "python");
// // EvaluationSuites versioned operations
// @@clientName(EvaluationSuites.listVersions, "list_evaluation_suite_versions");
// @@clientName(EvaluationSuites.listLatest, "list_evaluation_suites");
// @@clientName(EvaluationSuites.getVersion, "get_evaluation_suite");
// @@clientName(EvaluationSuites.deleteVersion, "delete_evaluation_suite");
// @@clientName(EvaluationSuites.createOrUpdateVersion, "create_or_update_evaluation_suite");
// @@clientName(EvaluationSuites.createEvaluationSuiteVersion, "create_evaluation_suite");
// @@clientName(EvaluationSuites.run, "run_evaluation_suite");
// @@clientName(EvaluationSuites.listVersions, "listEvaluationSuiteVersions", "javascript");
// @@clientName(EvaluationSuites.listLatest, "listEvaluationSuites", "javascript");
// @@clientName(EvaluationSuites.getVersion, "getEvaluationSuite", "javascript");
// @@clientName(EvaluationSuites.deleteVersion, "deleteEvaluationSuite", "javascript");
// @@clientName(EvaluationSuites.createOrUpdateVersion, "createOrUpdateEvaluationSuite", "javascript");
// @@clientName(EvaluationSuites.createEvaluationSuiteVersion, "createEvaluationSuite", "javascript");
// @@clientName(EvaluationSuites.run, "runEvaluationSuite", "javascript");
// // Evaluation Suite Generation Jobs — unscoped names (fixes AllScopes conflict)
// @@clientName(EvaluationSuiteGenerationJobs.create, "create_generation_suite_job");
// @@clientName(EvaluationSuiteGenerationJobs.get, "get_generation_suite_job");
// @@clientName(EvaluationSuiteGenerationJobs.list, "list_generation_suite_jobs");
// @@clientName(EvaluationSuiteGenerationJobs.cancel, "cancel_generation_suite_job");
// @@clientName(EvaluationSuiteGenerationJobs.delete, "delete_generation_suite_job");
// // Evaluation Suite Generation Jobs — renamed for JavaScript SDK discoverability
// @@clientName(EvaluationSuiteGenerationJobs.create, "createGenerationSuiteJob", "javascript");
// @@clientName(EvaluationSuiteGenerationJobs.get, "getGenerationSuiteJob", "javascript");
// @@clientName(EvaluationSuiteGenerationJobs.list, "listGenerationSuiteJobs", "javascript");
// @@clientName(EvaluationSuiteGenerationJobs.cancel, "cancelGenerationSuiteJob", "javascript");
// @@clientName(EvaluationSuiteGenerationJobs.delete, "deleteGenerationSuiteJob", "javascript");
// --------------------------------------------------------------------------------
// Beta Insights sub‐client
// --------------------------------------------------------------------------------
@@clientName(Azure.AI.Projects.Insight.id, "insight_id");
@@clientName(InsightsGetParams.id, "insight_id");
// --------------------------------------------------------------------------------
// Beta Models sub‐client
// --------------------------------------------------------------------------------
// Shorter method names for SDK models operations
@@clientName(Models.listLatest, "list");
@@clientName(Models.listVersions, "listVersions");
@@clientName(Models.getVersion, "get");
@@clientName(Models.deleteVersion, "delete");
@@clientName(Models.createOrUpdateVersion, "update");
@@clientName(Models.startPendingUpload, "pendingUpload");
@@clientName(Models.getCredentials, "getCredentials");
@@clientName(Models.createAsync, "pendingCreateVersion");
@@clientName(
CreateModelVersionAsyncResponse,
"ModelPendingCreateVersionResult",
"python"
);
@@clientName(
CreateModelVersionAsyncResponse,
"ModelPendingCreateVersionResponse",
"javascript"
);
// --------------------------------------------------------------------------------
// Beta Schedules sub‐client
// --------------------------------------------------------------------------------
@@clientName(SchedulesCreateOrUpdateParams.resource, "schedule");
@@clientName(Schedule.id, "schedule_id");
// Schedule trigger datetime fields are typed as string in the spec but carry ISO-8601 timestamps
@@alternateType(RecurrenceTrigger.startTime, utcDateTime, "python");
@@alternateType(RecurrenceTrigger.endTime, utcDateTime, "python");
@@alternateType(OneTimeTrigger.triggerAt, utcDateTime, "python");
@@alternateType(CronTrigger.startTime, utcDateTime, "python");
@@alternateType(CronTrigger.endTime, utcDateTime, "python");
@@alternateType(ScheduleRun.triggerTime, utcDateTime, "python");
// --------------------------------------------------------------------------------
// Beta Skills sub-client
// --------------------------------------------------------------------------------
@@clientName(Skills.createSkillVersion, "create");
@@clientName(Skills.createSkillVersionFromFiles, "create_from_files");
@@clientName(Skills.deleteSkill, "delete");
@@clientName(Skills.deleteSkillVersion, "delete_version");
@@clientName(Skills.getSkill, "get");
@@clientName(Skills.getSkillContent, "download");
@@clientName(Skills.getSkillVersion, "get_version");
@@clientName(Skills.getSkillVersionContent, "download_version");
@@clientName(Skills.listSkills, "list");
@@clientName(Skills.listSkillVersions, "list_versions");
@@clientName(Skills.updateSkill, "update");
@@clientName(Skill, "SkillDetails", "python");
@@clientName(DeleteSkillResponse, "DeleteSkillResult", "python");
@@clientName(DeleteSkillVersionResponse, "DeleteSkillVersionResult", "python");
@@clientName(DownloadSkillResponse, "DownloadSkillResult", "python");
// --------------------------------------------------------------------------------
// Beta Evaluation Taxonomies sub-client
// --------------------------------------------------------------------------------
// Note that we can't rename it in src\openai-evaluations\models.tsp, since in
// src\evaluations\models.tsp we already define EvaluationTarget (not for v1).
// If/when src\evaluations will be removed, consider doing the rename in
// src\openai-evaluations\models.tsp instead.
@@clientName(Target, "EvaluationTarget");
// --------------------------------------------------------------------------------
// To support custom client-side handling of "opt-in" to preview features.
// --------------------------------------------------------------------------------
// Remove foundry_features input arguments from public methods, as they are set internally.
@@scope(WithConditionalFoundryPreviewHeader.foundry_features, "!python");
@@scope(WithRequiredFoundryPreviewHeader.foundry_features, "!python");
// Force emitting these two, as patched code uses values from these enums to internally set Foundry-Features header.
@@usage(AgentDefinitionOptInKeys, Usage.input, "python");
@@access(AgentDefinitionOptInKeys, Access.internal, "python");
@@clientName(AgentDefinitionOptInKeys, "_AgentDefinitionOptInKeys", "python");
@@usage(FoundryFeaturesOptInKeys, Usage.input, "python");
@@access(FoundryFeaturesOptInKeys, Access.internal, "python");
@@clientName(FoundryFeaturesOptInKeys, "_FoundryFeaturesOptInKeys", "python");
// Add optional boolean "allow_preview" client initialization parameter
// See: https://azure.github.io/typespec-azure/docs/howtos/generate-client-libraries/03client/#adding-client-initialization-parameters
model AIProjectClientOptions {
@doc("Whether to enable preview features. Must be specified and set to True to enable preview features.")
allow_preview?: boolean;
}
@@clientInitialization(
Azure.AI.Projects,
{
parameters: AIProjectClientOptions,
},
"python"
);