inheritance
Cell<typeof ChatsJson>
items
type IndexedCollection<Chat>
selected_id_last_non_null
type Uuid | null
selected
type Chat | undefined
selected_id_error
type boolean
show_sort_controls
Controls visibility of sort controls in the chats list.
type boolean
ordered_items
Ordered array of chats derived from the manual_order index.
type Array<Chat>
items_by_name
constructor
type new (options: ChatsOptions): Chats
options
add
type (json?: { id?: string | undefined; created?: string | undefined; updated?: string | undefined; name?: string | undefined; thread_ids?: string[] | undefined; main_input?: string | undefined; view_mode?: "simple" | ... 1 more ... | undefined; selected_thread_id?: string | ... 1 more ... | undefined; } | undefined, select?: boolean | undefined): Chat
json?
{ id?: string | undefined; created?: string | undefined; updated?: string | undefined; name?: string | undefined; thread_ids?: string[] | undefined; main_input?: string | undefined; view_mode?: "simple" | ... 1 more ... | undefined; selected_thread_id?: string | ... 1 more ... | undefined; } | undefinedselect?
boolean | undefinedgenerate_unique_name
type (base_name?: string): string
base_name
string'new chat'stringadd_chat
type (chat: Chat, select?: boolean | undefined): Chat
chat
select?
boolean | undefinedadd_many
type (chats_json: { id?: string | undefined; created?: string | undefined; updated?: string | undefined; name?: string | undefined; thread_ids?: string[] | undefined; main_input?: string | undefined; view_mode?: "simple" | ... 1 more ... | undefined; selected_thread_id?: string | ... 1 more ... | undefined; }[], select?: number | ... 1 more ... | undefined): Chat[]
chats_json
{ id?: string | undefined; created?: string | undefined; updated?: string | undefined; name?: string | undefined; thread_ids?: string[] | undefined; main_input?: string | undefined; view_mode?: "simple" | ... 1 more ... | undefined; selected_thread_id?: string | ... 1 more ... | undefined; }[]select?
number | boolean | undefinedChat[]remove
type (id: string & $brand<"Uuid">): void
id
string & $brand<"Uuid">voidremove_many
type (ids: (string & $brand<"Uuid">)[]): number
ids
(string & $brand<"Uuid">)[]numberselect
type (chat_id: (string & $brand<"Uuid">) | null): Promise<void>
chat_id
(string & $brand<"Uuid">) | nullPromise<void>select_next
type (): Promise<void>
Promise<void>navigate_to
type (chat_id: (string & $brand<"Uuid">) | null, force?: boolean): Promise<void>
chat_id
(string & $brand<"Uuid">) | nullforce
booleanfalsePromise<void>reorder_chats
type (from_index: number, to_index: number): void
from_index
numberto_index
numbervoidtoggle_sort_controls
Toggles the visibility of sort controls in the chats list.
type (value?: boolean): void
value
boolean!this.show_sort_controlsvoidchat_templates
get_template_by_id
type (id: string): ChatTemplate | undefined
id
stringChatTemplate | undefinedget_default_template
type (): ChatTemplate