Skip to content

rulvar API reference


rulvar API reference / @rulvar/anthropic / IdMap

Class: IdMap

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

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

Constructors

Constructor

ts
new IdMap(mint): IdMap;

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

Parameters

ParameterType
mint() => string

Returns

IdMap

Methods

canonicalFor()

ts
canonicalFor(wireId): string;

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

Parameters

ParameterType
wireIdstring

Returns

string


wireFor()

ts
wireFor(canonicalId): string;

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

Parameters

ParameterType
canonicalIdstring

Returns

string