Skip to content

Commit b5c3d11

Browse files
authored
Merge branch 'main' into I753325-update-orchestration-spec
2 parents 5b3867f + 58464e9 commit b5c3d11

22 files changed

+3931
-3781
lines changed

.changeset/bold-towns-start.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@sap-ai-sdk/langchain': minor
3+
---
4+
5+
[Compatibility Note] Remove structured ouput handling for deprecated gpt-4 & gpt-3 models

.changeset/curly-drinks-taste.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@sap-ai-sdk/orchestration': minor
3+
'@sap-ai-sdk/core': minor
4+
---
5+
6+
[Improvement] Add `cohere--command-a-reasoning`, `mistralai--mistral-medium-instruct` and perplexity-ai `sonar` and `sonar-pro` to model list

.changeset/tricky-buses-feel.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@sap-ai-sdk/ai-api': minor
3+
---
4+
5+
[feat] Update `ai-api` package with the new specification (2509b).

packages/ai-api/src/client/AI_CORE_API/execution-api.ts

Lines changed: 137 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ import type {
1414
AiExecutionModificationRequest,
1515
AiExecutionModificationResponse,
1616
AiExecutionDeletionResponse,
17+
AiExecutionScheduleList,
18+
AiExecutionScheduleCreationData,
19+
AiExecutionScheduleCreationResponse,
20+
AiExecutionSchedule,
21+
AiExecutionScheduleModificationRequest,
22+
AiExecutionScheduleModificationResponse,
23+
AiExecutionScheduleDeletionResponse,
1724
RTALogCommonResponse
1825
} from './schema/index.js';
1926
/**
@@ -162,6 +169,112 @@ export const ExecutionApi = {
162169
},
163170
ExecutionApi._defaultBasePath
164171
),
172+
/**
173+
* Retrieve a list of execution schedules that match the specified filter criteria.
174+
* Filter criteria include executionScheduleStatus or a configurationId.
175+
* With top/skip parameters it is possible to paginate the result list.
176+
*
177+
* @param queryParameters - Object containing the following keys: configurationId, status, $top, $skip.
178+
* @param headerParameters - Object containing the following keys: AI-Resource-Group.
179+
* @returns The request builder, use the `execute()` method to trigger the request.
180+
*/
181+
executionScheduleQuery: (
182+
queryParameters: {
183+
configurationId?: string;
184+
status?: 'ACTIVE' | 'INACTIVE';
185+
$top?: number;
186+
$skip?: number;
187+
},
188+
headerParameters: { 'AI-Resource-Group': string }
189+
) =>
190+
new OpenApiRequestBuilder<AiExecutionScheduleList>(
191+
'get',
192+
'/lm/executionSchedules',
193+
{
194+
queryParameters,
195+
headerParameters
196+
},
197+
ExecutionApi._defaultBasePath
198+
),
199+
/**
200+
* Create an execution schedule using the configuration specified by configurationId, and schedule.
201+
* @param body - Request body.
202+
* @param headerParameters - Object containing the following keys: AI-Resource-Group.
203+
* @returns The request builder, use the `execute()` method to trigger the request.
204+
*/
205+
executionScheduleCreate: (
206+
body: AiExecutionScheduleCreationData,
207+
headerParameters: { 'AI-Resource-Group': string }
208+
) =>
209+
new OpenApiRequestBuilder<AiExecutionScheduleCreationResponse>(
210+
'post',
211+
'/lm/executionSchedules',
212+
{
213+
body,
214+
headerParameters
215+
},
216+
ExecutionApi._defaultBasePath
217+
),
218+
/**
219+
* Retrieve details for execution schedule with executionScheduleId.
220+
* @param executionScheduleId - Execution Schedule identifier
221+
* @param headerParameters - Object containing the following keys: AI-Resource-Group.
222+
* @returns The request builder, use the `execute()` method to trigger the request.
223+
*/
224+
executionScheduleGet: (
225+
executionScheduleId: string,
226+
headerParameters: { 'AI-Resource-Group': string }
227+
) =>
228+
new OpenApiRequestBuilder<AiExecutionSchedule>(
229+
'get',
230+
'/lm/executionSchedules/{executionScheduleId}',
231+
{
232+
pathParameters: { executionScheduleId },
233+
headerParameters
234+
},
235+
ExecutionApi._defaultBasePath
236+
),
237+
/**
238+
* Update details of an execution schedule
239+
* @param executionScheduleId - Execution Schedule identifier
240+
* @param body - Request body.
241+
* @param headerParameters - Object containing the following keys: AI-Resource-Group.
242+
* @returns The request builder, use the `execute()` method to trigger the request.
243+
*/
244+
executionScheduleModify: (
245+
executionScheduleId: string,
246+
body: AiExecutionScheduleModificationRequest,
247+
headerParameters: { 'AI-Resource-Group': string }
248+
) =>
249+
new OpenApiRequestBuilder<AiExecutionScheduleModificationResponse>(
250+
'patch',
251+
'/lm/executionSchedules/{executionScheduleId}',
252+
{
253+
pathParameters: { executionScheduleId },
254+
body,
255+
headerParameters
256+
},
257+
ExecutionApi._defaultBasePath
258+
),
259+
/**
260+
* Delete the execution schedule with executionScheduleId.
261+
* @param executionScheduleId - Execution Schedule identifier
262+
* @param headerParameters - Object containing the following keys: AI-Resource-Group.
263+
* @returns The request builder, use the `execute()` method to trigger the request.
264+
*/
265+
executionScheduleDelete: (
266+
executionScheduleId: string,
267+
headerParameters: { 'AI-Resource-Group': string }
268+
) =>
269+
new OpenApiRequestBuilder<AiExecutionScheduleDeletionResponse>(
270+
'delete',
271+
'/lm/executionSchedules/{executionScheduleId}',
272+
{
273+
pathParameters: { executionScheduleId },
274+
headerParameters
275+
},
276+
ExecutionApi._defaultBasePath
277+
),
165278
/**
166279
* Retrieve the number of available executions. The number can be filtered by
167280
* scenarioId, configurationId, executableIdsList or by execution status.
@@ -196,6 +309,30 @@ export const ExecutionApi = {
196309
},
197310
ExecutionApi._defaultBasePath
198311
),
312+
/**
313+
* Retrieve the number of scheduled executions. The number can be filtered by
314+
* configurationId or executionScheduleStatus.
315+
*
316+
* @param queryParameters - Object containing the following keys: configurationId, status.
317+
* @param headerParameters - Object containing the following keys: AI-Resource-Group.
318+
* @returns The request builder, use the `execute()` method to trigger the request.
319+
*/
320+
executionScheduleCount: (
321+
queryParameters: {
322+
configurationId?: string;
323+
status?: 'ACTIVE' | 'INACTIVE';
324+
},
325+
headerParameters: { 'AI-Resource-Group': string }
326+
) =>
327+
new OpenApiRequestBuilder<number>(
328+
'get',
329+
'/lm/executionSchedules/$count',
330+
{
331+
queryParameters,
332+
headerParameters
333+
},
334+
ExecutionApi._defaultBasePath
335+
),
199336
/**
200337
* Retrieve logs of an execution for getting insight into the execution results or failures.
201338
* @param executionId - Execution identifier

packages/ai-api/src/client/AI_CORE_API/execution-schedule-api.ts

Lines changed: 0 additions & 152 deletions
This file was deleted.

packages/ai-api/src/client/AI_CORE_API/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ export * from './artifact-api.js';
77
export * from './configuration-api.js';
88
export * from './deployment-api.js';
99
export * from './execution-api.js';
10-
export * from './execution-schedule-api.js';
1110
export * from './scenario-api.js';
1211
export * from './executable-api.js';
1312
export * from './meta-api.js';

packages/ai-api/src/client/AI_CORE_API/resource-api.ts

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ import { OpenApiRequestBuilder } from '@sap-ai-sdk/core';
77
import type {
88
BckndResourceGetResponse,
99
BckndResourcePatchBody,
10-
BckndResourcePatchResponse
10+
BckndResourcePatchResponse,
11+
BckndInstanceTypeGetResponse
1112
} from './schema/index.js';
1213
/**
1314
* Representation of the 'ResourceApi'.
@@ -47,5 +48,21 @@ export const ResourceApi = {
4748
headerParameters
4849
},
4950
ResourceApi._defaultBasePath
51+
),
52+
/**
53+
* Lists all the instance types available in the cluster.
54+
* @param headerParameters - Object containing the following keys: Authorization.
55+
* @returns The request builder, use the `execute()` method to trigger the request.
56+
*/
57+
kubesubmitV4InstanceTypesGet: (headerParameters?: {
58+
Authorization?: string;
59+
}) =>
60+
new OpenApiRequestBuilder<BckndInstanceTypeGetResponse>(
61+
'get',
62+
'/admin/resources/instanceTypes',
63+
{
64+
headerParameters
65+
},
66+
ResourceApi._defaultBasePath
5067
)
5168
};

packages/ai-api/src/client/AI_CORE_API/schema/bcknd-generic-secret-details.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* This is a generated file powered by the SAP Cloud SDK for JavaScript.
55
*/
6-
6+
import type { BckndGenericSecretLabels } from './bcknd-generic-secret-labels.js';
77
/**
88
* Representation of the 'BckndGenericSecretDetails' schema.
99
*/
@@ -16,6 +16,7 @@ export type BckndGenericSecretDetails = {
1616
* Timestamp at which secret was created
1717
*/
1818
createdAt: string;
19+
labels?: BckndGenericSecretLabels;
1920
/**
2021
* Sync status of the replicated secrets in all resource groups of the tenant
2122
*/

packages/ai-api/src/client/AI_CORE_API/schema/bcknd-generic-secret-patch-body.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
* This is a generated file powered by the SAP Cloud SDK for JavaScript.
55
*/
66
import type { BckndGenericSecretData } from './bcknd-generic-secret-data.js';
7+
import type { BckndGenericSecretLabels } from './bcknd-generic-secret-labels.js';
78
/**
89
* Representation of the 'BckndGenericSecretPatchBody' schema.
910
*/
1011
export type BckndGenericSecretPatchBody = {
1112
data: BckndGenericSecretData;
13+
labels?: BckndGenericSecretLabels;
1214
} & Record<string, any>;

0 commit comments

Comments
 (0)