ThreadQuery

org.llm4s.agent.graph.ThreadQuery
See theThreadQuery companion object
@Experimental
final case class ThreadQuery

A search of the thread registry (Checkpointer.threads): the root threads of one tenant - None and Some differ, as for claims: None finds only threads of no tenant - narrowed by every filter given, newest first by ThreadSummary.updatedAt, at most limit at a time (1 to ThreadQuery.MaxLimit), starting after after.

  • status: only threads of that ThreadStatus;
  • agent: only threads whose latest checkpoint is of that graph (GraphSnapshot.graphId; an Agent's is its id);
  • metadata: only threads whose metadata holds every one of these entries (ThreadMetadata.matches);
  • updatedSince: only threads the store changed at or after this instant, by its clock;
  • updatedBefore: only threads the store last changed before this instant, by its clock (#3260);
  • oldestFirst: the page's order, oldest first by ThreadSummary.updatedAt (ties by thread id, ascending), and after a cursor in that order: with updatedBefore, what finds a tenant's oldest threads (#3260).

Attributes

Companion
object
Source
ThreadRegistry.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def matches(thread: ThreadSummary): Boolean

Whether thread passes every filter but the page's position and size.

Whether thread passes every filter but the page's position and size.

Attributes

Source
ThreadRegistry.scala

Attributes

Source
ThreadRegistry.scala

Attributes

Source
ThreadRegistry.scala

Attributes

Source
ThreadRegistry.scala

Attributes

Source
ThreadRegistry.scala

Attributes

Source
ThreadRegistry.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product