Skip to content

Function: computeDigest()

ts
function computeDigest(contract): Promise<BehaviorDigestResult>;

Defined in: packages/core/src/introspection/BehaviorDigest.ts:91

Compute the behavioral digest for a single tool contract.

The digest is deterministic: same contract → same digest. It uses canonical JSON serialization (sorted keys) to ensure platform-independent consistency.

Parameters

ParameterTypeDescription
contractToolContractThe materialized tool contract

Returns

Promise<BehaviorDigestResult>

Content-addressed digest with per-section components