Skip to main content

Interface: ThreadStore

Interface: ThreadStore

Methods

addMessage()

addMessage(
   threadId: string, 
   userId: string, 
message: Message): Promise<void>;

Parameters

ParameterType
threadIdstring
userIdstring
messageMessage

Returns

Promise<void>


create()

create(userId: string): Promise<Thread>;

Parameters

ParameterType
userIdstring

Returns

Promise<Thread>


delete()

delete(threadId: string, userId: string): Promise<boolean>;

Parameters

ParameterType
threadIdstring
userIdstring

Returns

Promise<boolean>


get()

get(threadId: string, userId: string): Promise<Thread | null>;

Parameters

ParameterType
threadIdstring
userIdstring

Returns

Promise<Thread | null>


list()

list(userId: string): Promise<Thread[]>;

Parameters

ParameterType
userIdstring

Returns

Promise<Thread[]>

Databricks Developer Hub

Ready to ship your next agentic app in minutes?

Read docs