Package-level declarations
Types
Link copied to clipboard
class CapturingLLMClient(executeResponses: List<Message.Response> = emptyList(), streamingChunks: List<String> = emptyList(), choices: List<LLMChoice> = emptyList(), moderationResult: ModerationResult = ModerationResult(isHarmful = false, categories = emptyMap())) : 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.