View as Markdown

SDK reference · Node SDK

prov.trace.inferences

prov.trace.inferences in the Node SDK: 2 methods. Activation profiles of traced inferences (masked through the one chokepoint).

Methods

profile

prov.trace.inferences.profile(traceId: string, params?: { pattern?: string }): Promise<ActivationProfile>

A run's profile; pattern highlights the neurons it matched.

Calls GET /v1/trace/inferences/{id}/profile.

computeProfile

prov.trace.inferences.computeProfile(traceId: string, params?: { topK?: number; messages?: TraceMessage[] }): Promise<ActivationProfile>

Compute one now (metered trace_profile).

Calls POST /v1/trace/inferences/{id}/profile.

Was this page helpful? Send us feedback

LLM? Read llms.txt.