org.llm4s.agent.graph.ThreadQuery
See theThreadQuery companion object
@Experimental
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; anAgent'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), andaftera cursor in that order: withupdatedBefore, what finds a tenant's oldest threads (#3260).
Attributes
- Companion
- object
- Source
- ThreadRegistry.scala
- Graph
-
- Supertypes
Members list
In this article
