rulvar API reference / @rulvar/testing / FakeResponder
Type Alias: FakeResponder
ts
type FakeResponder = string | ((call) => unknown) | object;Defined in: packages/testing/src/fake-adapter.ts:31
A static string (plain text output), a static value (structured output), or a function of the call. Thrown errors become terminal error events. fakeToolCalls() and fakeWireError() values script tool-calling turns and typed wire failures (M3).