inheritance
Cell<typeof ChatJson>
name
type string
thread_ids
type Array<Uuid>
main_input
type string
view_mode
type ChatViewMode
selected_thread_id
type Uuid | null
main_input_length
type number
main_input_token_count
type number
threads
type Array<Thread>
enabled_threads
selected_thread
type Thread | undefined
current_thread
type Thread | undefined
init_name_status
type AsyncStatus
constructor
type new (options: ChatOptions): Chat
options
add_thread
type (model: Model, select?: boolean | undefined): void
model
select?
boolean | undefinedvoidadd_threads_by_model_tag
type (tag: string): void
tag
stringvoidremove_thread
type (id: string & $brand<"Uuid">): void
id
string & $brand<"Uuid">voidremove_threads
type (ids: (string & $brand<"Uuid">)[]): void
ids
(string & $brand<"Uuid">)[]voidremove_threads_by_model_tag
type (tag: string): void
tag
stringvoidremove_all_threads
type (): void
voidsend_to_all
type (content: string): Promise<void>
content
stringPromise<void>send_to_thread
type (thread_id: string & $brand<"Uuid">, content: string): Promise<void>
thread_id
string & $brand<"Uuid">content
stringPromise<void>init_name_from_turns
Uses an LLM to name the chat based on the user input and AI response. Ignores failures and retries on next intention.
type (user_content: string, assistant_content: string): Promise<void>
user_content
stringassistant_content
stringPromise<void>select_thread
Reorder threads by moving from one index to another
type (thread_id: (string & $brand<"Uuid">) | null): void
thread_id
(string & $brand<"Uuid">) | nullvoidreorder_threads
type (from_index: number, to_index: number): void
from_index
numberto_index
numbervoid