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.
| Area | Public API |
|---|---|
| Client | LedgeClient, LedgeCredentials, LedgeAgent, configuration errors |
| Foundation Models | LedgeSession, record, six respond overloads |
| Traces and spans | LedgeTrace, LedgeSpan, withTrace, startTrace, startSpan |
| Recording values | LedgeRecording, JSON, references, status, errors, producer metadata |
| Delivery | Delivery summaries, diagnostics, opaque uploads, custom transports |
| Datasets | LedgeDatasetClient, snapshots, typed inputs, provenance |
| Evaluations | Native 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.