Package-level declarations

Types

Link copied to clipboard
class CapturingLLMClient @JvmOverloads constructor(executeResponse: Message.Assistant? = null, streamingChunks: List<StreamFrame> = emptyList(), choices: LLMChoice? = null, moderationResult: ModerationResult = ModerationResult(isHarmful = false, categories = emptyMap()), embedResult: List<Double> = emptyList(), batchEmbedResult: List<List<Double>> = emptyList(), llmProvider: LLMProvider = LLMProvider.OpenAI) : LLMClient

A test double implementation of LLMClient that captures the last inputs provided to each API and returns predefined responses. This is useful in unit and integration tests to assert that a component under test interacts with an LLM client as expected without making real network calls.