Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/anthropic / IdMap

Class: IdMap ​

Defined in: packages/anthropic/src/wire.ts:24

Bijective canonical-to-wire tool-call id map.

Constructors ​

Constructor ​

ts
new IdMap(mint): IdMap;

Defined in: packages/anthropic/src/wire.ts:29

Parameters ​

ParameterType
mint() => string

Returns ​

IdMap

Methods ​

canonicalFor() ​

ts
canonicalFor(wireId): string;

Defined in: packages/anthropic/src/wire.ts:33

Parameters ​

ParameterType
wireIdstring

Returns ​

string


wireFor() ​

ts
wireFor(canonicalId): string;

Defined in: packages/anthropic/src/wire.ts:44

Parameters ​

ParameterType
canonicalIdstring

Returns ​

string