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, LedgeCredentials, LedgeAgent, configuration errors
Foundation ModelsLedgeSession, record, six respond overloads
Traces and spansLedgeTrace, LedgeSpan, withTrace, startTrace, startSpan
Recording valuesLedgeRecording, JSON, references, status, errors, producer metadata
DeliveryDelivery summaries, diagnostics, opaque uploads, custom transports
DatasetsLedgeDatasetClient, snapshots, typed inputs, provenance
EvaluationsNative report files and 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.