Skip to content

Commit 7703026

Browse files
authored
Merge pull request #99 from openai/update-tool-option-type
Add `ToolOption.persistent`
2 parents aa24e8b + 63c423a commit 7703026

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.changeset/calm-otters-kneel.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@openai/chatkit': patch
3+
---
4+
5+
Add `persistent` field to `ToolOption`

packages/chatkit/types/index.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,14 @@ export type ToolOption = {
437437
* @default false
438438
*/
439439
pinned?: boolean;
440+
441+
/**
442+
* Whether the tool continues to be selected after the user submits a message.
443+
* The default behavior is for tool selection to be cleared after message submission.
444+
*
445+
* @default false
446+
*/
447+
persistent?: boolean;
440448
};
441449

442450
/**

0 commit comments

Comments
 (0)