Skip to content

refactor: persist cache across tool calls#153

Open
simba-git wants to merge 1 commit intomainfrom
codex/fix-local-caching-across-tool-calls
Open

refactor: persist cache across tool calls#153
simba-git wants to merge 1 commit intomainfrom
codex/fix-local-caching-across-tool-calls

Conversation

@simba-git
Copy link
Copy Markdown
Contributor

Summary

  • maintain a shared ContextCache on the app so request-level caches survive across tool invocations
  • remove automatic EnrichContext parameter injection; tools call app.get_context() when needed
  • update tests to reflect manual context retrieval and verify cache reuse

Testing

  • pre-commit run --files src/enrichmcp/app.py tests/test_cache.py tests/test_enrichparameter.py
  • make test

https://chatgpt.com/codex/tasks/task_e_689cba56ad98832a9b7b342f5012660d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant