Builder for constructing a Conversation without using Scala case-class syntax or sequence literals.
Conversation conv = ConversationBuilder.create()
.system("You are a helpful assistant.")
.user("What is the capital of France?")
.build();
Instances are immutable: every method returns a new builder, so a builder may be shared and forked across threads. A null content argument throws NullPointerException immediately.
Returns a Conversation holding the messages added so far, in call order. Building does not change the builder, so it can still be extended or built again afterwards.
Returns a Conversation holding the messages added so far, in call order. Building does not change the builder, so it can still be extended or built again afterwards.