Class: Braintrust::Models::PathLookupFilter
- Defined in:
- lib/braintrust/models/path_lookup_filter.rb
Defined Under Namespace
Classes: Type
Instance Attribute Summary collapse
-
#path ⇒ Array<String>
List of fields describing the path to the value to be checked against.
-
#type ⇒ Symbol
Denotes the type of filter as a path-lookup filter One of the constants defined in Type.
-
#value ⇒ Object
The value to compare equality-wise against the event value at the specified
path
.
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
#path ⇒ Array<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"]
9 |
# File 'lib/braintrust/models/path_lookup_filter.rb', line 9 required :path, Braintrust::ArrayOf.new(String) |
#type ⇒ Symbol
Denotes the type of filter as a path-lookup filter One of the constants defined in Type
15 |
# File 'lib/braintrust/models/path_lookup_filter.rb', line 15 required :type, enum: -> { Braintrust::Models::PathLookupFilter::Type } |
#value ⇒ Object
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"
20 |
# File 'lib/braintrust/models/path_lookup_filter.rb', line 20 optional :value, Braintrust::Unknown |