Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Jun 15, 2024
1 parent 656da5d commit 1d62298
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 39 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 21
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/prompt-foundry%2Fprompt-foundry-sdk-ae96c71f2fee5c8745ff8f5a5b2662ab5215347f78480be8f07566939c7c259f.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/prompt-foundry%2Fprompt-foundry-sdk-d11a80a8e845d3ff7fbbdc68e2b7f12f33012cc681c34c56f2e549832bbe3bb3.yml
6 changes: 3 additions & 3 deletions src/resources/evaluations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export namespace Evaluation {
*/
content: string | null;

role: 'USER' | 'ASSISTANT' | 'SYSTEM' | 'TOOL';
role: 'user' | 'assistant' | 'system' | 'tool';

toolCallId: string | null;

Expand Down Expand Up @@ -142,7 +142,7 @@ export namespace EvaluationCreateParams {
*/
content: string | null;

role: 'USER' | 'ASSISTANT' | 'SYSTEM' | 'TOOL';
role: 'user' | 'assistant' | 'system' | 'tool';

toolCallId: string | null;

Expand Down Expand Up @@ -207,7 +207,7 @@ export namespace EvaluationUpdateParams {
*/
content: string | null;

role: 'USER' | 'ASSISTANT' | 'SYSTEM' | 'TOOL';
role: 'user' | 'assistant' | 'system' | 'tool';

toolCallId: string | null;

Expand Down
10 changes: 5 additions & 5 deletions src/resources/prompts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ export namespace PromptConfiguration {
*/
content: string | null;

role: 'USER' | 'ASSISTANT' | 'SYSTEM' | 'TOOL';
role: 'user' | 'assistant' | 'system' | 'tool';

toolCallId: string | null;

Expand Down Expand Up @@ -431,7 +431,7 @@ export namespace PromptCreateParams {
*/
content: string | null;

role: 'USER' | 'ASSISTANT' | 'SYSTEM' | 'TOOL';
role: 'user' | 'assistant' | 'system' | 'tool';

toolCallId: string | null;

Expand Down Expand Up @@ -543,7 +543,7 @@ export namespace PromptUpdateParams {
*/
content: string | null;

role: 'USER' | 'ASSISTANT' | 'SYSTEM' | 'TOOL';
role: 'user' | 'assistant' | 'system' | 'tool';

toolCallId: string | null;

Expand Down Expand Up @@ -669,7 +669,7 @@ export namespace PromptGetParametersParams {
*/
content: string | null;

role: 'USER' | 'ASSISTANT' | 'SYSTEM' | 'TOOL';
role: 'user' | 'assistant' | 'system' | 'tool';

toolCallId: string | null;

Expand Down Expand Up @@ -718,7 +718,7 @@ export namespace PromptGetParametersParams {
*/
content: string | null;

role: 'USER' | 'ASSISTANT' | 'SYSTEM' | 'TOOL';
role: 'user' | 'assistant' | 'system' | 'tool';

toolCallId: string | null;

Expand Down
24 changes: 12 additions & 12 deletions tests/api-resources/evaluations.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe('resource evaluations', () => {
appendedMessages: [
{
content: 'string',
role: 'USER',
role: 'user',
toolCallId: 'string',
toolCalls: [
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
Expand All @@ -24,7 +24,7 @@ describe('resource evaluations', () => {
},
{
content: 'string',
role: 'USER',
role: 'user',
toolCallId: 'string',
toolCalls: [
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
Expand All @@ -34,7 +34,7 @@ describe('resource evaluations', () => {
},
{
content: 'string',
role: 'USER',
role: 'user',
toolCallId: 'string',
toolCalls: [
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
Expand All @@ -60,7 +60,7 @@ describe('resource evaluations', () => {
appendedMessages: [
{
content: 'string',
role: 'USER',
role: 'user',
toolCallId: 'string',
toolCalls: [
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
Expand All @@ -70,7 +70,7 @@ describe('resource evaluations', () => {
},
{
content: 'string',
role: 'USER',
role: 'user',
toolCallId: 'string',
toolCalls: [
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
Expand All @@ -80,7 +80,7 @@ describe('resource evaluations', () => {
},
{
content: 'string',
role: 'USER',
role: 'user',
toolCallId: 'string',
toolCalls: [
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
Expand All @@ -99,7 +99,7 @@ describe('resource evaluations', () => {
appendedMessages: [
{
content: 'string',
role: 'USER',
role: 'user',
toolCallId: 'string',
toolCalls: [
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
Expand All @@ -109,7 +109,7 @@ describe('resource evaluations', () => {
},
{
content: 'string',
role: 'USER',
role: 'user',
toolCallId: 'string',
toolCalls: [
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
Expand All @@ -119,7 +119,7 @@ describe('resource evaluations', () => {
},
{
content: 'string',
role: 'USER',
role: 'user',
toolCallId: 'string',
toolCalls: [
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
Expand All @@ -145,7 +145,7 @@ describe('resource evaluations', () => {
appendedMessages: [
{
content: 'string',
role: 'USER',
role: 'user',
toolCallId: 'string',
toolCalls: [
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
Expand All @@ -155,7 +155,7 @@ describe('resource evaluations', () => {
},
{
content: 'string',
role: 'USER',
role: 'user',
toolCallId: 'string',
toolCalls: [
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
Expand All @@ -165,7 +165,7 @@ describe('resource evaluations', () => {
},
{
content: 'string',
role: 'USER',
role: 'user',
toolCallId: 'string',
toolCalls: [
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
Expand Down
36 changes: 18 additions & 18 deletions tests/api-resources/prompts.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe('resource prompts', () => {
messages: [
{
content: 'string',
role: 'USER',
role: 'user',
toolCallId: 'string',
toolCalls: [
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
Expand All @@ -24,7 +24,7 @@ describe('resource prompts', () => {
},
{
content: 'string',
role: 'USER',
role: 'user',
toolCallId: 'string',
toolCalls: [
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
Expand All @@ -34,7 +34,7 @@ describe('resource prompts', () => {
},
{
content: 'string',
role: 'USER',
role: 'user',
toolCallId: 'string',
toolCalls: [
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
Expand Down Expand Up @@ -71,7 +71,7 @@ describe('resource prompts', () => {
messages: [
{
content: 'string',
role: 'USER',
role: 'user',
toolCallId: 'string',
toolCalls: [
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
Expand All @@ -81,7 +81,7 @@ describe('resource prompts', () => {
},
{
content: 'string',
role: 'USER',
role: 'user',
toolCallId: 'string',
toolCalls: [
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
Expand All @@ -91,7 +91,7 @@ describe('resource prompts', () => {
},
{
content: 'string',
role: 'USER',
role: 'user',
toolCallId: 'string',
toolCalls: [
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
Expand Down Expand Up @@ -121,7 +121,7 @@ describe('resource prompts', () => {
messages: [
{
content: 'string',
role: 'USER',
role: 'user',
toolCallId: 'string',
toolCalls: [
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
Expand All @@ -131,7 +131,7 @@ describe('resource prompts', () => {
},
{
content: 'string',
role: 'USER',
role: 'user',
toolCallId: 'string',
toolCalls: [
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
Expand All @@ -141,7 +141,7 @@ describe('resource prompts', () => {
},
{
content: 'string',
role: 'USER',
role: 'user',
toolCallId: 'string',
toolCalls: [
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
Expand Down Expand Up @@ -178,7 +178,7 @@ describe('resource prompts', () => {
messages: [
{
content: 'string',
role: 'USER',
role: 'user',
toolCallId: 'string',
toolCalls: [
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
Expand All @@ -188,7 +188,7 @@ describe('resource prompts', () => {
},
{
content: 'string',
role: 'USER',
role: 'user',
toolCallId: 'string',
toolCalls: [
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
Expand All @@ -198,7 +198,7 @@ describe('resource prompts', () => {
},
{
content: 'string',
role: 'USER',
role: 'user',
toolCallId: 'string',
toolCalls: [
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
Expand Down Expand Up @@ -304,7 +304,7 @@ describe('resource prompts', () => {
appendMessages: [
{
content: 'string',
role: 'USER',
role: 'user',
toolCallId: 'string',
toolCalls: [
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
Expand All @@ -314,7 +314,7 @@ describe('resource prompts', () => {
},
{
content: 'string',
role: 'USER',
role: 'user',
toolCallId: 'string',
toolCalls: [
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
Expand All @@ -324,7 +324,7 @@ describe('resource prompts', () => {
},
{
content: 'string',
role: 'USER',
role: 'user',
toolCallId: 'string',
toolCalls: [
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
Expand All @@ -336,7 +336,7 @@ describe('resource prompts', () => {
overrideMessages: [
{
content: 'string',
role: 'USER',
role: 'user',
toolCallId: 'string',
toolCalls: [
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
Expand All @@ -346,7 +346,7 @@ describe('resource prompts', () => {
},
{
content: 'string',
role: 'USER',
role: 'user',
toolCallId: 'string',
toolCalls: [
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
Expand All @@ -356,7 +356,7 @@ describe('resource prompts', () => {
},
{
content: 'string',
role: 'USER',
role: 'user',
toolCallId: 'string',
toolCalls: [
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
Expand Down

0 comments on commit 1d62298

Please sign in to comment.