IncomingQuery
| Name | Type | Description |
|---|---|---|
query | str | The query string. |
operator | str | The operator used in the query. |
exactMatch | bool | Indicates whether the query requires an exact match. |
__init__
| Name | Type | Description |
|---|---|---|
query | str | The query string. |
operator | str | The operator used in the query. |
exactMatch | bool | Indicates whether the query requires an exact match. |
QueryObject
| Name | Type | Description |
|---|---|---|
id | str | The ID of the query object. |
query | RuleGroupType | The query object. |
parse_incoming_query
| Name | Type | Description |
|---|---|---|
incomingQuery | str | The incoming query string. |
| Name | Description |
|---|---|
List[[RuleType](/sdk/python/references/models/prompt)] | A list of RuleType objects. |
evaluate_rule_group
| Name | Type | Description |
|---|---|---|
ruleGroup | RuleGroupType | The rule group to evaluate. |
incomingQueryRules | List[RuleType] | The incoming query rules. |
| Name | Description |
|---|---|
bool | True if the rule group matches, False otherwise. |
check_operator_match
| Name | Type | Description |
|---|---|---|
fieldRule | RuleType | The rule with the operator. |
fieldIncomingRule | RuleType | The incoming rule. |
| Name | Description |
|---|---|
bool | True if the operator matches, False otherwise. |
condition_met
| Name | Type | Description |
|---|---|---|
fieldRule | RuleType | The rule with the condition. |
fieldIncomingRule | RuleType | The incoming rule. |
| Name | Description |
|---|---|
bool | True if the condition is met, False otherwise. |
find_best_match
| Name | Type | Description |
|---|---|---|
objects | List[QueryObject] | The list of objects to search through. |
incomingQuery | IncomingQuery | The incoming query to match against. |
| Name | Description |
|---|---|
Optional[[QueryObject](/sdk/python/references/filter_objects)] | The best match for the incoming query, or None if no match is found. |
find_all_matches
| Name | Type | Description |
|---|---|---|
objects | List[QueryObject] | The list of objects to search through. |
incoming_query | IncomingQuery | The incoming query to match against. |
| Name | Description |
|---|---|
List[[QueryObject](/sdk/python/references/filter_objects)] | A list of all matches for the incoming query. |