Custom

org.llm4s.agent.memory.MemoryFilter.Custom
final case class Custom(predicate: Memory => Boolean) extends MemoryFilter

Custom filter using a predicate function.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait MemoryFilter
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def matches(memory: Memory): Boolean

Test if a memory matches this filter.

Test if a memory matches this filter.

Value parameters

memory

The memory to test

Attributes

Returns

True if the memory matches the filter criteria, False otherwise

Inherited methods

Alias for and.

Alias for and.

Attributes

Inherited from:
MemoryFilter

Combine this filter with another using AND logic.

Combine this filter with another using AND logic.

Value parameters

other

The other filter to combine with

Attributes

Returns

A new MemoryFilter that matches if both filters match

Inherited from:
MemoryFilter

Negate this filter.

Negate this filter.

Attributes

Returns

A new MemoryFilter that matches if this filter does not match

Inherited from:
MemoryFilter

Combine this filter with another using OR logic.

Combine this filter with another using OR logic.

Value parameters

other

The other filter to combine with

Attributes

Returns

A new MemoryFilter that matches if either filter matches

Inherited from:
MemoryFilter
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Alias for not.

Alias for not.

Attributes

Inherited from:
MemoryFilter

Alias for or.

Alias for or.

Attributes

Inherited from:
MemoryFilter