org.llm4s.rag.permissions.CollectionPattern
See theCollectionPattern companion trait
object CollectionPattern
Attributes
- Companion
- trait
- Graph
-
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
CollectionPattern.type
Members list
Type members
Classlikes
case object All extends CollectionPattern
Match all collections
Match all collections
Attributes
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait CollectionPatternclass Objecttrait Matchableclass AnyShow all
- Self type
-
All.type
final case class AllDescendants(prefix: CollectionPath) extends CollectionPattern
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait CollectionPatternclass Objecttrait Matchableclass AnyShow all
final case class Exact(path: CollectionPath) extends CollectionPattern
Match a specific collection by exact path
Match a specific collection by exact path
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait CollectionPatternclass Objecttrait Matchableclass AnyShow all
final case class ImmediateChildren(parent: CollectionPath) extends CollectionPattern
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait CollectionPatternclass Objecttrait Matchableclass AnyShow all
Inherited and Abstract types
The names of the product elements
The names of the product elements
Attributes
- Inherited from:
- Mirror
The name of the type
The name of the type
Attributes
- Inherited from:
- Mirror
Value members
Concrete methods
Parse a pattern string into a CollectionPattern.
Parse a pattern string into a CollectionPattern.
Pattern syntax (where STAR means asterisk):
- STAR → All
- foo → Exact(foo)
- foo/STAR → ImmediateChildren(foo)
- foo/STAR-STAR → AllDescendants(foo)
Value parameters
- pattern
-
The pattern string to parse
Attributes
- Returns
-
Right(CollectionPattern) if valid, Left(error) if invalid
In this article