-
Notifications
You must be signed in to change notification settings - Fork 0
getAgentTools: caching changes
#19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
* refreshCache forces a full refresh when getting agent tools * #agentTools() now fetches ALL servers * getAgentTools() now filters cached results * attempted to clean up the getAgentTools options with discriminated unions etc. * added tests for agent tools caching * updated existing test that needed a tweak to use mock API fetch framework
WalkthroughThe pull request extends Changes
Possibly related PRs
Suggested reviewers
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: ASSERTIVE Plan: Pro ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (6)
🧰 Additional context used🧬 Code graph analysis (3)tests/unit/client.test.ts (2)
src/types.ts (1)
src/client.ts (2)
🔇 Additional comments (8)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Optimize agent tools caching strategy.
Refactored caching behavior for better performance:
#agentTools()now fetches and caches ALL functions from ALL healthy servers oncegetAgentTools()filters cached results by servers and tools parametersrefreshCache: trueoption forces cache regeneration when schemas changeBenefits:
Summary by CodeRabbit
Release Notes
New Features
refreshCacheoption in getAgentTools methodDocumentation
✏️ Tip: You can customize this high-level summary in your review settings.