RecordingLlm
Wraps another OnDeviceLlm (a FakeOnDeviceLlm by default) and records every call that reaches it — so a test can assert what an app's OWN caller actually sent (a CompositeOnDeviceLlm's PromptGuard-wrapped text, a retry, a prompt the caller built up itself) without inspecting that caller's internals. Every non-recording member (isAvailable, supportsImage, capabilities) delegates straight through to delegate via by — this class only intercepts the four call entry points to log them before forwarding.
Properties
Link copied to clipboard
The plain text of the LAST call, when it was a single LlmPart.Text (the common generate(prompt) case).
Link copied to clipboard