PromptValue.string constructor

PromptValue.string(
  1. String value
)

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.

Implementation

factory PromptValue.string(final String value) {
  return StringPromptValue(value);
}