v0.2
v0.1
Preparing search index...
The search index is not available
LangChain.js - v0.2.13
LangChain.js
langchain-core/example_selectors
isChatModel
Function isChatModel
is
Chat
Model
(
llm
)
:
llm
is
BaseChatModel
<
BaseChatModelCallOptions
,
BaseMessageChunk
>
Type guard function that checks if a given language model is of type
BaseChatModel
.
Parameters
llm
:
BaseLanguageModelInterface
<
any
,
BaseLanguageModelCallOptions
>
Returns
llm
is
BaseChatModel
<
BaseChatModelCallOptions
,
BaseMessageChunk
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
LangChain.js - v0.2.13
Loading...
Type guard function that checks if a given language model is of type
BaseChatModel
.