v0.2
v0.1
Preparing search index...
The search index is not available
LangChain.js - v0.2.8
LangChain.js
langchain-core/prompt_values
BasePromptValue
Class BasePromptValue
Abstract
Base PromptValue class. All prompt values should extend this class.
Hierarchy (
view full
)
Serializable
BasePromptValue
StringPromptValue
ChatPromptValue
ImagePromptValue
Implements
BasePromptValueInterface
Index
Constructors
constructor
Methods
to
Chat
Messages
toJSON
toJSONNot
Implemented
to
String
Constructors
constructor
new
Base
Prompt
Value
(
kwargs
?
,
...
_args
)
:
BasePromptValue
Parameters
Optional
kwargs
:
SerializedFields
Rest
...
_args
:
never
[]
Returns
BasePromptValue
Methods
Abstract
to
Chat
Messages
to
Chat
Messages
(
)
:
BaseMessage
[]
Returns
BaseMessage
[]
toJSON
toJSON
(
)
:
Serialized
Returns
Serialized
toJSONNot
Implemented
toJSONNot
Implemented
(
)
:
SerializedNotImplemented
Returns
SerializedNotImplemented
Abstract
to
String
to
String
(
)
:
string
Returns
string
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
constructor
to
Chat
Messages
toJSON
toJSONNot
Implemented
to
String
LangChain.js - v0.2.8
Loading...
Base PromptValue class. All prompt values should extend this class.