score submits a programmatic score; it does not start a platform evaluation. Scores use a string value, including numeric values such as "0.95". Export completion is separate from platform persistence and evaluation completion.
See tracing quickstart for provider/framework setup.
Await flush() and shutdown(). Client does not install itself as the global client; init() does. Global helpers return promises where the underlying operation is asynchronous.
On this page
Client, VERSION, flush, getClient, init, score, shutdown.Example
Client
Constructor
Fields and properties
Methods
trace
trace
Create a new
TraceContext.logTrace
logTrace
Queues a prebuilt trace record for export. This is asynchronous ingestion, not confirmation that the trace is persisted.
captureTraces
captureTraces
Capture existing submissions inside an explicit asynchronous application boundary.
score
score
Submit a programmatic score for a trace.
flush
flush
Block until all queued items are sent.
shutdown
shutdown
Flush remaining items and release resources.
onError
onError
Registers a callback for export transport errors. Errors inside the callback are caught by the SDK.
VERSION
"0.5.0".
Value: "0.5.0".
flush
getClient
init
score
shutdown
Signatures and fields are generated from the SDK source. See the import index for available entry points.

