Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/calm-otters-kneel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@openai/chatkit': patch
---

Add `persistent` field to `ToolOption`
8 changes: 8 additions & 0 deletions packages/chatkit/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,14 @@ export type ToolOption = {
* @default false
*/
pinned?: boolean;

/**
* Whether the tool continues to be selected after the user submits a message.
* The default behavior is for tool selection to be cleared after message submission.
*
* @default false
*/
persistent?: boolean;
};

/**
Expand Down