Skip to content

createCaptureMiddleware

createCaptureMiddleware(config): object

Defined in: fixture-capture.ts:171

Capture middleware - wraps a backend adapter to automatically capture fixtures

Omit<CaptureConfig, "scenario">

object

name: string = 'fixture-capture'

processRequest(request): IRChatRequest

IRChatRequest

IRChatRequest

processResponse(response, request): Promise<IRChatResponse>

IRChatResponse

IRChatRequest

Promise<IRChatResponse>