agentskit.js

MockAdapterOptions

Auto-generated API reference for MockAdapterOptions.

Interface: MockAdapterOptions

Defined in: adapters/src/mock.ts:11

#Properties

#delayMs?

optional delayMs?: number

Defined in: adapters/src/mock.ts:18

ms between yielded chunks. Default 0 (synchronous).


#history?

optional history?: AdapterRequest[]

Defined in: adapters/src/mock.ts:20

Track every request the adapter received. Useful for assertions.


#response

response: MockResponse | MockResponse[]

Defined in: adapters/src/mock.ts:16

Static chunks, a request-aware function, or a sequence of responses (the i-th call returns the i-th item, looping when exhausted).

Explore nearby

✎ Edit this page on GitHubΒ·Found a problem? Open an issue β†’Β·How to contribute β†’

On this page