Preparing search index...
The search index is not available
LangChain.js - v0.1.30
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
Theme
OS
Light
Dark
On This Page
constructor
add
Message
clear
get
Messages
LangChain.js - v0.1.30
langchain-anthropic
langchain-azure-openai
langchain-cloudflare
langchain-cohere
langchain-community
agents/toolkits
aws_sfn
base
connery
caches
cloudflare_kv
ioredis
momento
upstash_redis
callbacks/handlers
llmonitor
lunary
chat_models
alibaba_tongyi
baiduwenxin
bedrock
Loading...
Generated using
TypeDoc