Record

final class ntoseye.Record

An immutable, ordered set of named fields with attribute access.

__contains__(key: str, /) → bool
__getattr__(name: str, /) → Any
__getitem__(key: str, /) → Any
__iter__() → NameIterator
__len__() → int
get(key: str, default: Any | None = None) → Any

The field, or default when the record has no such field.

items() → list[tuple[str, Any]]

(name, value) pairs, in order.

keys() → list[str]

The field names, in order.

to_dict() → dict[str, Any]

A plain nested dict (records and diagnostics converted throughout), the shape the MCP format=json surface returns.

values() → list[Any]

The field values, in order.