Message

org.llm4s.llmconnect.model.Message
See theMessage companion trait
object Message

Message validation with comprehensive conversation flow rules

Attributes

Companion
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Message.type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def assistant(content: String, toolCalls: List[ToolCall]): Result[AssistantMessage]
def system(content: String): Result[SystemMessage]
def tool(content: String, toolCallId: String): Result[ToolMessage]
def user(content: String): Result[UserMessage]
def validateConversation(messages: List[Message]): Result[Unit]

Validates a list of messages for conversation consistency

Validates a list of messages for conversation consistency

CRITICAL MISSING METHOD - NOW IMPLEMENTED

Attributes

Implicits

Implicits

implicit val rw: ReadWriter[Message]