Skip to content

Commit 03801e8

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): OpenAPI spec update via Stainless API (#45)
1 parent a06c11e commit 03801e8

File tree

5 files changed

+39
-39
lines changed

5 files changed

+39
-39
lines changed

.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-ae96c71f2fee5c8745ff8f5a5b2662ab5215347f78480be8f07566939c7c259f.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/prompt-foundry%2Fprompt-foundry-sdk-d11a80a8e845d3ff7fbbdc68e2b7f12f33012cc681c34c56f2e549832bbe3bb3.yml

src/resources/evaluations.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export namespace Evaluation {
7171
*/
7272
content: string | null;
7373

74-
role: 'USER' | 'ASSISTANT' | 'SYSTEM' | 'TOOL';
74+
role: 'user' | 'assistant' | 'system' | 'tool';
7575

7676
toolCallId: string | null;
7777

@@ -142,7 +142,7 @@ export namespace EvaluationCreateParams {
142142
*/
143143
content: string | null;
144144

145-
role: 'USER' | 'ASSISTANT' | 'SYSTEM' | 'TOOL';
145+
role: 'user' | 'assistant' | 'system' | 'tool';
146146

147147
toolCallId: string | null;
148148

@@ -207,7 +207,7 @@ export namespace EvaluationUpdateParams {
207207
*/
208208
content: string | null;
209209

210-
role: 'USER' | 'ASSISTANT' | 'SYSTEM' | 'TOOL';
210+
role: 'user' | 'assistant' | 'system' | 'tool';
211211

212212
toolCallId: string | null;
213213

src/resources/prompts.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ export namespace PromptConfiguration {
291291
*/
292292
content: string | null;
293293

294-
role: 'USER' | 'ASSISTANT' | 'SYSTEM' | 'TOOL';
294+
role: 'user' | 'assistant' | 'system' | 'tool';
295295

296296
toolCallId: string | null;
297297

@@ -431,7 +431,7 @@ export namespace PromptCreateParams {
431431
*/
432432
content: string | null;
433433

434-
role: 'USER' | 'ASSISTANT' | 'SYSTEM' | 'TOOL';
434+
role: 'user' | 'assistant' | 'system' | 'tool';
435435

436436
toolCallId: string | null;
437437

@@ -543,7 +543,7 @@ export namespace PromptUpdateParams {
543543
*/
544544
content: string | null;
545545

546-
role: 'USER' | 'ASSISTANT' | 'SYSTEM' | 'TOOL';
546+
role: 'user' | 'assistant' | 'system' | 'tool';
547547

548548
toolCallId: string | null;
549549

@@ -669,7 +669,7 @@ export namespace PromptGetParametersParams {
669669
*/
670670
content: string | null;
671671

672-
role: 'USER' | 'ASSISTANT' | 'SYSTEM' | 'TOOL';
672+
role: 'user' | 'assistant' | 'system' | 'tool';
673673

674674
toolCallId: string | null;
675675

@@ -718,7 +718,7 @@ export namespace PromptGetParametersParams {
718718
*/
719719
content: string | null;
720720

721-
role: 'USER' | 'ASSISTANT' | 'SYSTEM' | 'TOOL';
721+
role: 'user' | 'assistant' | 'system' | 'tool';
722722

723723
toolCallId: string | null;
724724

tests/api-resources/evaluations.test.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ describe('resource evaluations', () => {
1414
appendedMessages: [
1515
{
1616
content: 'string',
17-
role: 'USER',
17+
role: 'user',
1818
toolCallId: 'string',
1919
toolCalls: [
2020
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
@@ -24,7 +24,7 @@ describe('resource evaluations', () => {
2424
},
2525
{
2626
content: 'string',
27-
role: 'USER',
27+
role: 'user',
2828
toolCallId: 'string',
2929
toolCalls: [
3030
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
@@ -34,7 +34,7 @@ describe('resource evaluations', () => {
3434
},
3535
{
3636
content: 'string',
37-
role: 'USER',
37+
role: 'user',
3838
toolCallId: 'string',
3939
toolCalls: [
4040
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
@@ -60,7 +60,7 @@ describe('resource evaluations', () => {
6060
appendedMessages: [
6161
{
6262
content: 'string',
63-
role: 'USER',
63+
role: 'user',
6464
toolCallId: 'string',
6565
toolCalls: [
6666
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
@@ -70,7 +70,7 @@ describe('resource evaluations', () => {
7070
},
7171
{
7272
content: 'string',
73-
role: 'USER',
73+
role: 'user',
7474
toolCallId: 'string',
7575
toolCalls: [
7676
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
@@ -80,7 +80,7 @@ describe('resource evaluations', () => {
8080
},
8181
{
8282
content: 'string',
83-
role: 'USER',
83+
role: 'user',
8484
toolCallId: 'string',
8585
toolCalls: [
8686
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
@@ -99,7 +99,7 @@ describe('resource evaluations', () => {
9999
appendedMessages: [
100100
{
101101
content: 'string',
102-
role: 'USER',
102+
role: 'user',
103103
toolCallId: 'string',
104104
toolCalls: [
105105
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
@@ -109,7 +109,7 @@ describe('resource evaluations', () => {
109109
},
110110
{
111111
content: 'string',
112-
role: 'USER',
112+
role: 'user',
113113
toolCallId: 'string',
114114
toolCalls: [
115115
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
@@ -119,7 +119,7 @@ describe('resource evaluations', () => {
119119
},
120120
{
121121
content: 'string',
122-
role: 'USER',
122+
role: 'user',
123123
toolCallId: 'string',
124124
toolCalls: [
125125
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
@@ -145,7 +145,7 @@ describe('resource evaluations', () => {
145145
appendedMessages: [
146146
{
147147
content: 'string',
148-
role: 'USER',
148+
role: 'user',
149149
toolCallId: 'string',
150150
toolCalls: [
151151
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
@@ -155,7 +155,7 @@ describe('resource evaluations', () => {
155155
},
156156
{
157157
content: 'string',
158-
role: 'USER',
158+
role: 'user',
159159
toolCallId: 'string',
160160
toolCalls: [
161161
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
@@ -165,7 +165,7 @@ describe('resource evaluations', () => {
165165
},
166166
{
167167
content: 'string',
168-
role: 'USER',
168+
role: 'user',
169169
toolCallId: 'string',
170170
toolCalls: [
171171
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },

tests/api-resources/prompts.test.ts

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ describe('resource prompts', () => {
1414
messages: [
1515
{
1616
content: 'string',
17-
role: 'USER',
17+
role: 'user',
1818
toolCallId: 'string',
1919
toolCalls: [
2020
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
@@ -24,7 +24,7 @@ describe('resource prompts', () => {
2424
},
2525
{
2626
content: 'string',
27-
role: 'USER',
27+
role: 'user',
2828
toolCallId: 'string',
2929
toolCalls: [
3030
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
@@ -34,7 +34,7 @@ describe('resource prompts', () => {
3434
},
3535
{
3636
content: 'string',
37-
role: 'USER',
37+
role: 'user',
3838
toolCallId: 'string',
3939
toolCalls: [
4040
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
@@ -71,7 +71,7 @@ describe('resource prompts', () => {
7171
messages: [
7272
{
7373
content: 'string',
74-
role: 'USER',
74+
role: 'user',
7575
toolCallId: 'string',
7676
toolCalls: [
7777
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
@@ -81,7 +81,7 @@ describe('resource prompts', () => {
8181
},
8282
{
8383
content: 'string',
84-
role: 'USER',
84+
role: 'user',
8585
toolCallId: 'string',
8686
toolCalls: [
8787
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
@@ -91,7 +91,7 @@ describe('resource prompts', () => {
9191
},
9292
{
9393
content: 'string',
94-
role: 'USER',
94+
role: 'user',
9595
toolCallId: 'string',
9696
toolCalls: [
9797
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
@@ -121,7 +121,7 @@ describe('resource prompts', () => {
121121
messages: [
122122
{
123123
content: 'string',
124-
role: 'USER',
124+
role: 'user',
125125
toolCallId: 'string',
126126
toolCalls: [
127127
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
@@ -131,7 +131,7 @@ describe('resource prompts', () => {
131131
},
132132
{
133133
content: 'string',
134-
role: 'USER',
134+
role: 'user',
135135
toolCallId: 'string',
136136
toolCalls: [
137137
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
@@ -141,7 +141,7 @@ describe('resource prompts', () => {
141141
},
142142
{
143143
content: 'string',
144-
role: 'USER',
144+
role: 'user',
145145
toolCallId: 'string',
146146
toolCalls: [
147147
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
@@ -178,7 +178,7 @@ describe('resource prompts', () => {
178178
messages: [
179179
{
180180
content: 'string',
181-
role: 'USER',
181+
role: 'user',
182182
toolCallId: 'string',
183183
toolCalls: [
184184
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
@@ -188,7 +188,7 @@ describe('resource prompts', () => {
188188
},
189189
{
190190
content: 'string',
191-
role: 'USER',
191+
role: 'user',
192192
toolCallId: 'string',
193193
toolCalls: [
194194
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
@@ -198,7 +198,7 @@ describe('resource prompts', () => {
198198
},
199199
{
200200
content: 'string',
201-
role: 'USER',
201+
role: 'user',
202202
toolCallId: 'string',
203203
toolCalls: [
204204
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
@@ -304,7 +304,7 @@ describe('resource prompts', () => {
304304
appendMessages: [
305305
{
306306
content: 'string',
307-
role: 'USER',
307+
role: 'user',
308308
toolCallId: 'string',
309309
toolCalls: [
310310
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
@@ -314,7 +314,7 @@ describe('resource prompts', () => {
314314
},
315315
{
316316
content: 'string',
317-
role: 'USER',
317+
role: 'user',
318318
toolCallId: 'string',
319319
toolCalls: [
320320
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
@@ -324,7 +324,7 @@ describe('resource prompts', () => {
324324
},
325325
{
326326
content: 'string',
327-
role: 'USER',
327+
role: 'user',
328328
toolCallId: 'string',
329329
toolCalls: [
330330
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
@@ -336,7 +336,7 @@ describe('resource prompts', () => {
336336
overrideMessages: [
337337
{
338338
content: 'string',
339-
role: 'USER',
339+
role: 'user',
340340
toolCallId: 'string',
341341
toolCalls: [
342342
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
@@ -346,7 +346,7 @@ describe('resource prompts', () => {
346346
},
347347
{
348348
content: 'string',
349-
role: 'USER',
349+
role: 'user',
350350
toolCallId: 'string',
351351
toolCalls: [
352352
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
@@ -356,7 +356,7 @@ describe('resource prompts', () => {
356356
},
357357
{
358358
content: 'string',
359-
role: 'USER',
359+
role: 'user',
360360
toolCallId: 'string',
361361
toolCalls: [
362362
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },

0 commit comments

Comments
 (0)