PermissionRule

org.llm4s.agent.graph.middleware.PermissionRule
See thePermissionRule companion object
@Experimental
final case class PermissionRule(operation: Operation, target: Glob, decision: PermissionDecision)

Decides operations on targets target matches. In a PermissionMiddleware, the first matching rule wins.

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 covers(resource: ToolResource): Boolean

Whether this rule decides every target of resource's envelope: the same operation, and a glob covering it.

Whether this rule decides every target of resource's envelope: the same operation, and a glob covering it.

Attributes

def matches(resource: ToolResource): Boolean

Whether this rule decides resource: the same operation, and a target the glob matches.

Whether this rule decides resource: the same operation, and a target the glob matches.

Attributes

def overlaps(resource: ToolResource): Boolean

Whether this rule decides some target of resource's envelope: the same operation, and an overlapping glob.

Whether this rule decides some target of resource's envelope: the same operation, and an overlapping glob.

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product