Preparing search index...
The search index is not available
Palico App
Palico App
@palico-ai/app
ChatHistoryStore
Class ChatHistoryStore<MessageSchema>
Type Parameters
MessageSchema
Index
Constructors
constructor
Properties
_messages
conversation
Id
Accessors
messages
Methods
append
save
set
Messages
create
As
New
from
Conversation
Constructors
Private
constructor
new
Chat
History
Store
<
MessageSchema
>
(
params
)
:
ChatHistoryStore
<
MessageSchema
>
Type Parameters
MessageSchema
Parameters
params
:
ChatHistoryConstructorParamsParams
<
MessageSchema
>
Returns
ChatHistoryStore
<
MessageSchema
>
Properties
Private
_messages
_messages
:
MessageSchema
[]
Readonly
conversation
Id
conversation
Id
:
string
Accessors
messages
get
messages
(
)
:
MessageSchema
[]
Returns
MessageSchema
[]
Methods
append
append
(
message
)
:
ChatHistoryStore
<
MessageSchema
>
Parameters
message
:
MessageSchema
Returns
ChatHistoryStore
<
MessageSchema
>
save
save
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
set
Messages
set
Messages
(
messages
)
:
ChatHistoryStore
<
MessageSchema
>
Parameters
messages
:
MessageSchema
[]
Returns
ChatHistoryStore
<
MessageSchema
>
Private
Static
create
As
New
create
As
New
<
MessageSchema
>
(
conversationId
)
:
Promise
<
ChatHistoryStore
<
MessageSchema
>
>
Type Parameters
MessageSchema
Parameters
conversationId
:
string
Returns
Promise
<
ChatHistoryStore
<
MessageSchema
>
>
Static
from
Conversation
from
Conversation
<
MessageSchema
>
(
params
)
:
Promise
<
ChatHistoryStore
<
MessageSchema
>
>
Type Parameters
MessageSchema
Parameters
params
:
ChatHistoryFromConversationParams
Returns
Promise
<
ChatHistoryStore
<
MessageSchema
>
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
_messages
conversation
Id
messages
append
save
set
Messages
create
As
New
from
Conversation
Palico App
Loading...