Skip to content

Commit 6177b74

Browse files
feat(api): OpenAPI spec update via Stainless API (#152)
1 parent 1d3647b commit 6177b74

File tree

6 files changed

+557
-196
lines changed

6 files changed

+557
-196
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
pull_request:
77
branches:
88
- main
9+
- next
910

1011
jobs:
1112
lint:

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 21
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/prompt-foundry%2Fprompt-foundry-sdk-5d4722a755a01f8917b975ab7e6528e590f53d09891baac758abba1e28df15d1.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/prompt-foundry%2Fprompt-foundry-sdk-a552977d2b7ab16d16020c083420cadbca97d5766ea0df7b49b3ed275626b995.yml

tests/api-resources/evaluation-assertions.test.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ const promptFoundry = new PromptFoundry({
1111
describe('resource evaluationAssertions', () => {
1212
test('create: only required params', async () => {
1313
const responsePromise = promptFoundry.evaluationAssertions.create({
14-
evaluationId: 'string',
15-
jsonPath: 'string',
16-
targetValue: 'string',
17-
toolName: 'string',
14+
evaluationId: 'evaluationId',
15+
jsonPath: 'jsonPath',
16+
targetValue: 'targetValue',
17+
toolName: 'toolName',
1818
type: 'CONTAINS',
1919
});
2020
const rawResponse = await responsePromise.asResponse();
@@ -28,20 +28,20 @@ describe('resource evaluationAssertions', () => {
2828

2929
test('create: required and optional params', async () => {
3030
const response = await promptFoundry.evaluationAssertions.create({
31-
evaluationId: 'string',
32-
jsonPath: 'string',
33-
targetValue: 'string',
34-
toolName: 'string',
31+
evaluationId: 'evaluationId',
32+
jsonPath: 'jsonPath',
33+
targetValue: 'targetValue',
34+
toolName: 'toolName',
3535
type: 'CONTAINS',
3636
});
3737
});
3838

3939
test('update: only required params', async () => {
4040
const responsePromise = promptFoundry.evaluationAssertions.update('1212121', {
41-
evaluationId: 'string',
42-
jsonPath: 'string',
43-
targetValue: 'string',
44-
toolName: 'string',
41+
evaluationId: 'evaluationId',
42+
jsonPath: 'jsonPath',
43+
targetValue: 'targetValue',
44+
toolName: 'toolName',
4545
type: 'CONTAINS',
4646
});
4747
const rawResponse = await responsePromise.asResponse();
@@ -55,10 +55,10 @@ describe('resource evaluationAssertions', () => {
5555

5656
test('update: required and optional params', async () => {
5757
const response = await promptFoundry.evaluationAssertions.update('1212121', {
58-
evaluationId: 'string',
59-
jsonPath: 'string',
60-
targetValue: 'string',
61-
toolName: 'string',
58+
evaluationId: 'evaluationId',
59+
jsonPath: 'jsonPath',
60+
targetValue: 'targetValue',
61+
toolName: 'toolName',
6262
type: 'CONTAINS',
6363
});
6464
});

0 commit comments

Comments
 (0)