Skip to content

Commit 060795b

Browse files
feat: AI-2090: Add skip_turn tool type to assistant config schema
1 parent b099936 commit 060795b

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 921
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/telnyx%2Ftelnyx-cfd489bbb67075950668dda5fa30e2d2a40940f826b68be2101bfe5fcf4fe2c6.yml
3-
openapi_spec_hash: 0e628bb4b2ebb80659d4e2e18094db05
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/telnyx%2Ftelnyx-139139a61ab836ff7de71d0c6111592d91006af4bb23ddd2c41ac65e07f3f554.yml
3+
openapi_spec_hash: b17de900dc1a361c5e273136dade72a1
44
config_hash: f988dc81794e1f58a39055ee99dac184

src/resources/ai/assistants/assistants.ts

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,8 @@ export type AssistantTool =
369369
| AssistantTool.Transfer
370370
| AssistantTool.Refer
371371
| AssistantTool.SendDtmf
372-
| AssistantTool.SendMessage;
372+
| AssistantTool.SendMessage
373+
| AssistantTool.SkipTurn;
373374

374375
export namespace AssistantTool {
375376
/**
@@ -697,6 +698,21 @@ export namespace AssistantTool {
697698

698699
type: 'send_message';
699700
}
701+
702+
export interface SkipTurn {
703+
skip_turn: SkipTurn.SkipTurn;
704+
705+
type: 'skip_turn';
706+
}
707+
708+
export namespace SkipTurn {
709+
export interface SkipTurn {
710+
/**
711+
* The description of the function that will be passed to the assistant.
712+
*/
713+
description?: string;
714+
}
715+
}
700716
}
701717

702718
export interface AssistantsList {

0 commit comments

Comments
 (0)