StringPromptValue class
Prompt value whose value is a string.
When toString is called, it returns the string value. When toChatMessages is called, it returns a HumanChatMessage with the value as content.
- Implemented types
- Annotations
-
- @immutable
Constructors
- StringPromptValue(String value)
-
Prompt value whose value is a string.
const
Properties
Methods
-
concat(
PromptValue other) → PromptValue -
Merges this prompt value with another by concatenating the content.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toChatMessages(
) → List< ChatMessage> -
Returns a list of messages representing the prompt.
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
covariant StringPromptValue other) → bool -
The equality operator.
override