# prov.trace.inferences

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

## Methods

### [profile](https://provenanceauth.com/docs/sdks/node/trace-inferences/profile.md)

```ts
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](https://provenanceauth.com/docs/sdks/node/trace-inferences/compute-profile.md)

```ts
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`.
