Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/core / toolContract

Function: toolContract() ​

ts
function toolContract(def): ToolContract;

Defined in: packages/core/src/tools/tool.ts:75

The identity projection: the contract tuple that enters toolsetHash. parameters is the canonicalized derived JSON Schema.

Parameters ​

ParameterType
defToolDef

Returns ​

ToolContract