Literal
relationalai.semantics.frontend.base
Literal(value: Any, model: Model, type: Concept | None = None)Wrap a Python value so it can be used in DSL expressions.
Literal objects are typically created implicitly when you pass Python
values (for example 42 or "Alice") to a relationship/property call
or when building fragments via Model.define, Model.where, and
Model.select.
Parameters
Section titled “Parameters”
(valueAny) - The Python value to embed in the DSL.
(modelModel) - The model this literal belongs to.
(typeConcept, default:None) - Explicit concept type for the literal. If omitted, the type is inferred.
Most users should not instantiate this class directly; prefer passing Python
values directly (for example Person.age(30)).