SDK reference · Node SDK

prov.trace.registry.neurons

prov.trace.registry.neurons in Node SDK. One page of a model's public neurons: {object: "list", data, hasMore, nextCursor} (limit 1–100).

Signature

prov.trace.registry.neurons(modelVersionId: string, params?: ListNeuronsParams): Promise<{ object: "list"; data: TraceNeuron[]; hasMore: boolean; nextCursor: string | null }>

Parameters

modelVersionIdstringRequired
paramsListNeuronsParams

Request fields

idstringpathRequired
The object's ID.
layerintegerquery
The model layer.
qstringquery
Case-insensitive label substring.
cursorstringquery
next_cursor from the previous page.
limitintegerquery
The most items to return, from 1 to 100. The default is 20.

Returns

Promise<{ object: "list"; data: TraceNeuron[]; hasMore: boolean; nextCursor: string | null }> The neurons. Masked neurons stay masked in edges too.

HTTP operation

GET /v1/trace/registry/models/{id}/neurons: List neurons

Errors

Example

const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/trace/registry/models/qwen2.5-0.5b-instruct@7ae55760/neurons?layer=13&limit=2`)).json();

Was this page helpful? Send us feedback

LLM? Read llms.txt.