def complete(self, prompt: str, **kwargs) -> CompletionResponse:
        """Returns a response that was matched from the given prompt."""
        if self.strict:
            if prompt not in self.prompt_responses:
                err = f"Prompt '{prompt}' not found in prompt_responses. Please recreate this MockLLM with the expected prompts and responses."
                raise ValueError(err)

        response = self.prompt_responses.get(prompt, self.default_response)

        return CompletionResponse(text=response)
Returns a response that was matched from the given prompt.
llama-index-packs/llama-index-packs-koda-retriever/tests/koda_mocking.py