Skip to content

MockProviderResponse

Defined in: providers.ts:47

Mock provider response configuration.

optional error: Error

Defined in: providers.ts:60

Error to throw instead of returning response


optional latency: number

Defined in: providers.ts:58

Simulated latency in ms


optional response: string

Defined in: providers.ts:49

The text response to return


optional stream: boolean

Defined in: providers.ts:56

Whether the response should stream


optional toolCalls: object[]

Defined in: providers.ts:51

Tool calls to include in response

args: Record<string, unknown>

name: string


optional usage: object

Defined in: providers.ts:62

Usage information

completionTokens: number

promptTokens: number

totalTokens: number