From 64542dea6f060fa0abc0c77cda03fbc212c4a652 Mon Sep 17 00:00:00 2001 From: stainless-bot Date: Mon, 24 Jun 2024 20:20:21 +0000 Subject: [PATCH] feat(api): OpenAPI spec update via Stainless API --- .stats.yml | 2 +- src/resources/prompts.ts | 6 ++++++ tests/api-resources/prompts.test.ts | 4 ++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index fb1264d..a5d9fd9 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 21 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/prompt-foundry%2Fprompt-foundry-sdk-bb0c2179ddf83834412606080e40f875436162cb81210f5af52c5f14aeb9c35b.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/prompt-foundry%2Fprompt-foundry-sdk-f30a850ec208f2c5cde3101faff73304656182d65e1f101e104fc935f5d32c18.yml diff --git a/src/resources/prompts.ts b/src/resources/prompts.ts index f40d8e2..c35ce8c 100644 --- a/src/resources/prompts.ts +++ b/src/resources/prompts.ts @@ -347,6 +347,8 @@ export namespace PromptConfiguration { */ modelName: string; + parallelToolCalls: boolean; + /** * Example: 0 */ @@ -486,6 +488,8 @@ export namespace PromptCreateParams { */ modelName: string; + parallelToolCalls: boolean; + /** * Example: 0 */ @@ -597,6 +601,8 @@ export namespace PromptUpdateParams { */ modelName: string; + parallelToolCalls: boolean; + /** * Example: 0 */ diff --git a/tests/api-resources/prompts.test.ts b/tests/api-resources/prompts.test.ts index 87952b4..a8bc1dc 100644 --- a/tests/api-resources/prompts.test.ts +++ b/tests/api-resources/prompts.test.ts @@ -55,6 +55,7 @@ describe('resource prompts', () => { seed: 0, toolChoice: 'string', stream: true, + parallelToolCalls: true, }, tools: [{ toolId: 'string' }, { toolId: 'string' }, { toolId: 'string' }], }); @@ -113,6 +114,7 @@ describe('resource prompts', () => { seed: 0, toolChoice: 'string', stream: true, + parallelToolCalls: true, }, tools: [{ toolId: 'string' }, { toolId: 'string' }, { toolId: 'string' }], }); @@ -164,6 +166,7 @@ describe('resource prompts', () => { seed: 0, toolChoice: 'string', stream: true, + parallelToolCalls: true, }, tools: [{ toolId: 'string' }, { toolId: 'string' }, { toolId: 'string' }], }); @@ -222,6 +225,7 @@ describe('resource prompts', () => { seed: 0, toolChoice: 'string', stream: true, + parallelToolCalls: true, }, tools: [{ toolId: 'string' }, { toolId: 'string' }, { toolId: 'string' }], });