Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/testing / fakeToolCalls

Function: fakeToolCalls()

ts
function fakeToolCalls(...calls): FakeToolCallsValue;

Defined in: packages/testing/src/fake-adapter.ts:43

Scripts a tool-calling turn from a responder.

Parameters

ParameterType
...calls{ args: unknown; name: string; }[]

Returns

FakeToolCallsValue