Class: Braintrust::Models::PathLookupFilter

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/braintrust/models/path_lookup_filter.rb

Defined Under Namespace

Classes: Type

Instance Attribute Summary collapse

Method Summary

Methods inherited from BaseModel

#[], #initialize, #inspect, #to_h, #to_s

Constructor Details

This class inherits a constructor from Braintrust::BaseModel

Instance Attribute Details

#pathArray<String>

List of fields describing the path to the value to be checked against. For instance, if you wish to filter on the value of c in {"input": {"a": {"b": {"c": "hello"}}}}, pass path=["input", "a", "b", "c"]

Returns:

  • (Array<String>)


9
# File 'lib/braintrust/models/path_lookup_filter.rb', line 9

required :path, Braintrust::ArrayOf.new(String)

#typeSymbol

Denotes the type of filter as a path-lookup filter One of the constants defined in Type

Returns:

  • (Symbol)


15
# File 'lib/braintrust/models/path_lookup_filter.rb', line 15

required :type, enum: -> { Braintrust::Models::PathLookupFilter::Type }

#valueObject

The value to compare equality-wise against the event value at the specified path. The value must be a "primitive", that is, any JSON-serializable object except for objects and arrays. For instance, if you wish to filter on the value of "input.a.b.c" in the object {"input": {"a": {"b": {"c": "hello"}}}}, pass value="hello"

Returns:

  • (Object)


20
# File 'lib/braintrust/models/path_lookup_filter.rb', line 20

optional :value, Braintrust::Unknown