Glimpse
Schema-neutral summary helper. Customer code supplies the domain-specific fields; glimpse(...) only normalizes the result into JSON-compatible values and produces a {count...
Schema-neutral summary helper. Customer code supplies the domain-specific
fields; glimpse(...) only normalizes the result into JSON-compatible
values and produces a {count, sample} fallback for sequence inputs.
glimpse
glimpse(value: 'Any', *, max_items: 'int' = 3) -> 'dict[str, Any]'
| Parameter | Type | Default |
|---|---|---|
value | Any | required |
max_items | int | 3 |
Returns: dict[str, Any]
Build a small schema-neutral glimpse from customer-provided data.
Domain-specific fields belong in customer code. For example, a customer can
pass a hand-built summary dict from ReferenceSpec.glimpse and this helper
will only normalize it to JSON-compatible values.
Unions
Discriminated-union factory for action and event schemas. TaggedUnion(...) returns a Pydantic discriminated union over the kind field by default.
Changelog
1.0.0a1 is the Python package version for the v1.0.0-alpha.1 private preview tag. The public API is stable enough to build against, but breaking changes are still possible during...
