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
Source
PermissionMiddleware.scala
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

Source
PermissionMiddleware.scala
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

Source
PermissionMiddleware.scala
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

Source
PermissionMiddleware.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product