v0.2
v0.1
Preparing search index...
The search index is not available
LangChain.js - v0.2.14
LangChain.js
langchain-community/stores/message/convex
ConvexChatMessageHistory
Class ConvexChatMessageHistory<DataModel, SessionIdFieldName, TableName, IndexName, MessageTextFieldName, InsertMutation, LookupQuery, DeleteManyMutation>
Type Parameters
DataModel
extends
GenericDataModel
SessionIdFieldName
extends
FieldPaths
<
NamedTableInfo
<
DataModel
,
TableName
>
>
=
"sessionId"
TableName
extends
TableNamesInDataModel
<
DataModel
>
=
"messages"
IndexName
extends
IndexNames
<
NamedTableInfo
<
DataModel
,
TableName
>
>
=
"bySessionId"
MessageTextFieldName
extends
FieldPaths
<
NamedTableInfo
<
DataModel
,
TableName
>
>
=
"message"
InsertMutation
extends
FunctionReference
<
"mutation"
,
"internal"
,
{
document
:
object
;
table
:
string
;
}
>
=
any
LookupQuery
extends
FunctionReference
<
"query"
,
"internal"
,
{
index
:
string
;
key
:
string
;
keyField
:
string
;
table
:
string
;
}
,
object
[]
>
=
any
DeleteManyMutation
extends
FunctionReference
<
"mutation"
,
"internal"
,
{
index
:
string
;
key
:
string
;
keyField
:
string
;
table
:
string
;
}
>
=
any
Hierarchy (
view full
)
Toolkit
ConvexChatMessageHistory
Index
Constructors
constructor
Methods
add
Message
clear
get
Messages
Constructors
constructor
new
Convex
Chat
Message
History
<
DataModel
,
SessionIdFieldName
,
TableName
,
IndexName
,
MessageTextFieldName
,
InsertMutation
,
LookupQuery
,
DeleteManyMutation
>
(
config
)
:
ConvexChatMessageHistory
<
DataModel
,
SessionIdFieldName
,
TableName
,
IndexName
,
MessageTextFieldName
,
InsertMutation
,
LookupQuery
,
DeleteManyMutation
>
Type Parameters
DataModel
extends
GenericDataModel
SessionIdFieldName
extends
string
=
"sessionId"
TableName
extends
string
=
"messages"
IndexName
extends
string
|
number
|
symbol
=
"bySessionId"
MessageTextFieldName
extends
string
=
"message"
InsertMutation
extends
FunctionReference
<
"mutation"
,
"internal"
,
{
document
:
object
;
table
:
string
;
}
>
=
any
LookupQuery
extends
FunctionReference
<
"query"
,
"internal"
,
{
index
:
string
;
key
:
string
;
keyField
:
string
;
table
:
string
;
}
,
object
[]
>
=
any
DeleteManyMutation
extends
FunctionReference
<
"mutation"
,
"internal"
,
{
index
:
string
;
key
:
string
;
keyField
:
string
;
table
:
string
;
}
>
=
any
Parameters
config
:
ConvexChatMessageHistoryInput
<
DataModel
,
TableName
,
IndexName
,
SessionIdFieldName
,
MessageTextFieldName
,
InsertMutation
,
LookupQuery
,
DeleteManyMutation
>
Returns
ConvexChatMessageHistory
<
DataModel
,
SessionIdFieldName
,
TableName
,
IndexName
,
MessageTextFieldName
,
InsertMutation
,
LookupQuery
,
DeleteManyMutation
>
Methods
add
Message
add
Message
(
message
)
:
Promise
<
void
>
Parameters
message
:
BaseMessage
Returns
Promise
<
void
>
clear
clear
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
get
Messages
get
Messages
(
)
:
Promise
<
BaseMessage
[]
>
Returns
Promise
<
BaseMessage
[]
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
add
Message
clear
get
Messages
LangChain.js - v0.2.14
Loading...