agentfootprint
Version:
The explainable agent framework — backtrack a wrong answer to the exact context that caused it (evidence, not guesses). Built on footprintjs.
12 lines • 598 B
TypeScript
/**
* softmax — numerically-stable softmax over raw scores.
*
* Used by `skillGraph().entryByRelevance(embedder)` to turn per-entry cosine
* similarities into a relevance distribution (the surfaced `relevance` %): the
* shares sum to 1, so they read as "how much of the match each entry owns".
* Internal helper — not a public export (the public surface is `relevance`).
*
* `temperature > 0` sharpens (<1) or flattens (>1) the distribution; default 1.
*/
export declare function softmax(scores: readonly number[], temperature?: number): number[];
//# sourceMappingURL=softmax.d.ts.map