concat method

  1. @override
PromptValue concat(
  1. PromptValue other
)
override

Merges this prompt value with another by concatenating the content.

Implementation

@override
PromptValue concat(final PromptValue other) => switch (other) {
  final StringPromptValue other => StringPromptValue(value + other.value),
  final ChatPromptValue other => ChatPromptValue([
    ChatMessage.humanText(value),
    ...other.messages,
  ]),
};