Analyze Relevance
analyze_relevanceStatically analyze a relevance expression without evaluating it to validate syntax, infer types, classify session or client dialect, and flag unknown inspectors or unbound 'it' before running queries.
Instructions
Statically analyze a relevance expression WITHOUT evaluating it anywhere.
Offline and instant: checks that the expression parses (with a positioned error when it does not), infers types, classifies the dialect (session vs client), flags inspectors no reference dump defines, finds unbound 'it', and scores complexity/evaluation cost. Use it to validate a query before session_relevance_query or client_query, or to understand a relevance error after one.
Advisory: the inspector table is a snapshot, so an unknown inspector is a warning (the live server may still know it), and a clean report does not guarantee the server will accept the query.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dialect | No | Pin the dialect: 'session' (root server) or 'client' (agent). Default: classify automatically from the text. | |
| platform | No | Narrow client inspector lookups to one platform, e.g. 'windows', 'macos', 'ubuntu'. | |
| relevance | Yes | Relevance expression to analyze. It is never evaluated. | |
| include_sexpr | No | Include the parsed tree as an S-expression. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||