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:40

Scripts a tool-calling turn from a responder.

Parameters

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

Returns

FakeToolCallsValue