agentskit.js

MockAdapterOptions

Auto-generated API reference for MockAdapterOptions.

Interface: MockAdapterOptions

Defined in: mock.ts:10

#Properties

#delayMs?

optional delayMs?: number

Defined in: mock.ts:17

ms between yielded chunks. Default 0 (synchronous).


#history?

optional history?: AdapterRequest[]

Defined in: mock.ts:19

Track every request the adapter received. Useful for assertions.


#response

response: MockResponse | MockResponse[]

Defined in: mock.ts:15

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