v0.3
v0.2
v0.1
Preparing search index...
The search index is not available
LangChain.js
LangChain.js
@langchain/core
runnables
RunnableWithMessageHistoryInputs
Interface RunnableWithMessageHistoryInputs<RunInput, RunOutput>
interface
RunnableWithMessageHistoryInputs
<
RunInput
,
RunOutput
>
{
config
?:
RunnableConfig
<
Record
<
string
,
any
>
>
;
configFactories
?:
(
(
config
:
RunnableConfig
<
Record
<
string
,
any
>
>
)
=>
RunnableConfig
<
Record
<
string
,
any
>
>
)
[]
;
getMessageHistory
:
GetSessionHistoryCallable
;
historyMessagesKey
?:
string
;
inputMessagesKey
?:
string
;
kwargs
?:
Partial
<
RunnableConfig
<
Record
<
string
,
any
>
>
>
;
outputMessagesKey
?:
string
;
runnable
:
Runnable
<
RunInput
,
RunOutput
,
RunnableConfig
<
Record
<
string
,
any
>
>
>
;
}
Type Parameters
RunInput
RunOutput
Hierarchy
Omit
<
RunnableBindingArgs
<
RunInput
,
RunOutput
>
,
"bound"
|
"config"
>
RunnableWithMessageHistoryInputs
Index
Properties
config?
config
Factories?
get
Message
History
history
Messages
Key?
input
Messages
Key?
kwargs?
output
Messages
Key?
runnable
Properties
Optional
config
config
?:
RunnableConfig
<
Record
<
string
,
any
>
>
Optional
config
Factories
config
Factories
?:
(
(
config
:
RunnableConfig
<
Record
<
string
,
any
>
>
)
=>
RunnableConfig
<
Record
<
string
,
any
>
>
)
[]
get
Message
History
get
Message
History
:
GetSessionHistoryCallable
Optional
history
Messages
Key
history
Messages
Key
?:
string
Optional
input
Messages
Key
input
Messages
Key
?:
string
Optional
kwargs
kwargs
?:
Partial
<
RunnableConfig
<
Record
<
string
,
any
>
>
>
Optional
output
Messages
Key
output
Messages
Key
?:
string
runnable
runnable
:
Runnable
<
RunInput
,
RunOutput
,
RunnableConfig
<
Record
<
string
,
any
>
>
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
config
config
Factories
get
Message
History
history
Messages
Key
input
Messages
Key
kwargs
output
Messages
Key
runnable
LangChain.js
Loading...