Skip to content

Conversation

@github-actions
Copy link

@github-actions github-actions bot commented Sep 2, 2025

Auto-created PR for issue #479

- Add LLMClient base class that wraps existing LLM functions
- Add CachedLLMClient with disk-based caching for tests only
- Add llm_client @cached_property to ElroyContext
- Update test configuration to use TestElroyContext with cached client
- Create comprehensive comments emphasizing test-only usage
- Fixes TypeError: Cannot use cached_property instance without calling __set_name__ on it

The cached client writes responses to tests/fixtures/llm_cache/ for:
- Deterministic test results
- Cost savings during development
- Offline test execution
- Consistent CI/CD runs

Co-authored-by: elroy-bot <elroy-bot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants