View Source Guesswork.Ast.Statement.Opts (Guesswork v0.6.0)
Defines the options used by the Guesswork.Ast.Statement
protocol, as well as
the current state of the query.
The following fields are available:
:knowledge_base
(term/0
) - TheGuesswork.KnowledgeBase
used to resolve queries. The default value isGuesswork.EmptyCollection
.:query_id
(String.t/0
) - The id used to report telemetry. Defaults to a newUUID
(v4).:precompute_count
(integer/0
) - How many answer sets to precmpute, shuffle, and share when queries have repeated fact statements that result in the same matches and substitutions. The default value is100
.
Summary
Types
@type t() :: %Guesswork.Ast.Statement.Opts{ call_depth: non_neg_integer(), knowledge_base: module(), negated: boolean(), precompute_count: non_neg_integer(), query_id: String.t() }