Message

works.iterative.claude.core.model.Message
See theMessage companion trait
object Message

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 answerText(messages: Seq[Message]): String

The answer a finished query's messages carry, as claude -p prints it: what the result message says. A run that ended without one answers with the text of its last assistant message that has any, and otherwise with nothing.

The answer a finished query's messages carry, as claude -p prints it: what the result message says. A run that ended without one answers with the text of its last assistant message that has any, and otherwise with nothing.

The CLI sends each content block as its own assistant message, so a run that thinks or calls a tool first opens with an assistant message that holds no text at all; the answer is never looked for at the start.

Attributes

Givens

Givens

given derived$CanEqual: CanEqual[Message, Message]