dashboard-react
Preparing search index...
chatActions
Variable chatActions
Const
chatActions
:
CaseReducerActions
<
{
selectModel
(
state
:
WritableNonArrayDraft
<
ChatState
>
,
action
:
{
payload
:
string
;
type
:
string
}
,
)
:
void
;
addMessage
(
state
:
WritableNonArrayDraft
<
ChatState
>
,
action
:
{
payload
:
ChatMessage
;
type
:
string
}
,
)
:
void
;
deleteMessage
(
state
:
WritableNonArrayDraft
<
ChatState
>
,
action
:
{
payload
:
string
;
type
:
string
}
,
)
:
void
;
editMessage
(
state
:
WritableNonArrayDraft
<
ChatState
>
,
action
:
{
payload
:
{
messageId
:
string
;
content
:
string
}
;
type
:
string
}
,
)
:
void
;
removeLastAssistantMessages
(
state
:
WritableNonArrayDraft
<
ChatState
>
)
:
void
;
newConversation
:
{
reducer
(
state
:
WritableNonArrayDraft
<
ChatState
>
,
action
:
{
payload
:
{
id
:
string
;
modelId
:
string
}
;
type
:
string
}
,
)
:
void
;
prepare
(
modelId
:
string
)
:
{
payload
:
{
id
:
string
;
modelId
:
string
}
}
;
}
;
selectConversation
(
state
:
WritableNonArrayDraft
<
ChatState
>
,
action
:
{
payload
:
string
;
type
:
string
}
,
)
:
void
;
deleteConversation
(
state
:
WritableNonArrayDraft
<
ChatState
>
,
action
:
{
payload
:
string
;
type
:
string
}
,
)
:
void
;
setSummary
(
state
:
WritableNonArrayDraft
<
ChatState
>
,
action
:
{
payload
:
{
conversationId
:
string
;
summary
:
string
}
;
type
:
string
;
}
,
)
:
void
;
}
,
"chat"
,
>
= slice.actions
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
dashboard-react
Loading...