MessageRole

org.llm4s.llmconnect.model.MessageRole
See theMessageRole companion object
sealed trait MessageRole

Identifies the participant that authored a Message.

Maps directly to the role field in provider API payloads. The string representation returned by toString is the lowercase name forwarded verbatim to the provider (e.g. "user", "assistant").

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Assistant
object System
object Tool
object User

Members list

Value members

Abstract methods

def name: String

Concrete methods

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any