Skip to content

Agent JSON

Module: junjo.agent.json

Documentation channel: Stable release

Portable JSON aliases describe the values accepted by Agent contracts. JsonValue uses mutable lists and dictionaries; FrozenJsonValue describes the recursively immutable tuples and mappings exposed in owned execution records.

FrozenJsonValue: TypeAlias = JsonScalar | tuple['FrozenJsonValue', ...] | Mapping[str, 'FrozenJsonValue']

View source

Public attribute.

JsonScalar: TypeAlias = None | bool | int | float | str

View source

Public attribute.

JsonValue: TypeAlias = JsonScalar | list['JsonValue'] | dict[str, 'JsonValue']

View source

Public attribute.