AssistantMessage

org.llm4s.llmconnect.model.AssistantMessage
See theAssistantMessage companion object
case class AssistantMessage(contentOpt: Option[String], toolCalls: Seq[ToolCall]) extends Message

Represents a message from the LLM assistant, which may include text, tool calls or both.

Value parameters

contentOpt

Optional content of the message.

toolCalls

Sequence of tool calls made by the assistant.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Message
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def content: String
def hasToolCalls: Boolean
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
Message -> Any
override def validate: Result[Message]

Validates individual message

Validates individual message

Attributes

Definition Classes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields