Header menu logo Nao

JsonRead Module

Strict, schema-driven loading of definition JSON. Each definition is deserialized directly into a well-typed object via System.Text.Json with full F# support (records, options, unions, lists, maps). The schema is described once by the `*Wire` records below; anything that does not match it — a wrong type, an unknown union tag, an unknown property, or a missing required field — throws instead of being silently defaulted. There are no aliases and no value fallbacks: omission is the ONLY leniency, and only for fields modelled as `option`, which then resolve to their type's natural empty value.

Functions and values

Function or value Description

JsonRead.agentDef json

Full Usage: JsonRead.agentDef json

Parameters:
    json : string

Returns: AgentDef
json : string
Returns: AgentDef

JsonRead.constitutionDef json

Full Usage: JsonRead.constitutionDef json

Parameters:
    json : string

Returns: ConstitutionDef
json : string
Returns: ConstitutionDef

JsonRead.evalSuiteDef json

Full Usage: JsonRead.evalSuiteDef json

Parameters:
    json : string

Returns: EvalSuiteDef
json : string
Returns: EvalSuiteDef

JsonRead.toolDef json

Full Usage: JsonRead.toolDef json

Parameters:
    json : string

Returns: ToolDef
json : string
Returns: ToolDef

Type something to start searching.