ThreadMetadata

org.llm4s.agent.graph.ThreadMetadata
See theThreadMetadata companion object
@Experimental
final case class ThreadMetadata

A thread's metadata: a small map of strings its caller sets, for finding the thread again (ThreadQuery.metadata), not for content - it is stored as it is, read by operators, and copied into no event or trace. It is set by a start whose RunConfig.metadata is not empty, and replaced with GraphRuntime.updateMetadata; in the store, by a fenced Commit.metadata. A deleted thread's metadata goes with it.

At most ThreadMetadata.MaxEntries entries; each key is 1 to ThreadMetadata.MaxKeyLength characters of A-Z a-z 0-9 _ . : / -, and each value at most ThreadMetadata.MaxValueLength characters, none of them a control character.

Attributes

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

Members list

Value members

Concrete methods

def isEmpty: Boolean
def matches(filter: ThreadMetadata): Boolean

Whether this holds every entry of filter: the metadata equality ThreadQuery filters by.

Whether this holds every entry of filter: the metadata equality ThreadQuery filters by.

Attributes

def toJson: Obj

As a JSON object, key by key: how a store keeps it.

As a JSON object, key by key: how a store keeps it.

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product