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

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
String value to use as the prompt.
final

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