LedgeKitDocs
API referenceSwift SDK
Developer documentation

Swift SDK reference

Runtime recording in LedgeKit and optional testing support in LedgeKitTesting.

The package has two products. Import LedgeKit in your app and add LedgeKitTesting to targets that download datasets or upload evaluations.

AreaPublic API
ClientLedgeClient, LedgeAgent, configuration errors
Foundation ModelsLedgeSession, session factories, six respond overloads
Traces and spansLedgeTrace, withTrace, startTrace
Recording valuesLedgeRecording, JSON, references, status, errors, producer metadata
DeliveryDelivery summaries, diagnostics, opaque uploads, custom transports
DatasetsLedgeDatasetClient, snapshots, typed inputs, provenance
EvaluationsSession captures, native responses, durable report delivery

Wire envelopes and transcript serialization types are internal. For other producers, use the HTTP contract. See installation for the matching SDK revision. Reference declarations illustrate signatures and are not complete application snippets.