ToolMessage

org.llm4s.llmconnect.model.ToolMessage
See theToolMessage companion object
final case class ToolMessage(content: String, toolCallId: String) extends Message

Represents a message from a tool, typically containing the result of a tool call.

Value parameters

content

Content of the tool message, usually the result of the tool execution, e.g. a json response.

toolCallId

Unique identifier for the tool call (as provided by the ToolCall).

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 findToolCallName(contextMessages: Seq[Message]): String
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
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
Inherited from:
Message

Concrete fields