Skip to content

Fix LLMAgent tool definition refresh#355

Merged
ModerRAS merged 3 commits into
masterfrom
codex/fix-mcp-tool-discovery
May 22, 2026
Merged

Fix LLMAgent tool definition refresh#355
ModerRAS merged 3 commits into
masterfrom
codex/fix-mcp-tool-discovery

Conversation

@ModerRAS
Copy link
Copy Markdown
Owner

Summary

  • add an agent-side tool registry refresher that imports proxy tool definitions from Redis after the agent heartbeat is visible
  • refresh proxy tool definitions before each agent task so long-lived agents pick up newly exported built-in/MCP tools
  • keep exported agent tool definitions persistent in Redis instead of expiring after 24 hours

Tests

  • dotnet test TelegramSearchBot.LLM.Test\TelegramSearchBot.LLM.Test.csproj --configuration Release --no-restore
  • dotnet test TelegramSearchBot.Test\TelegramSearchBot.Test.csproj --configuration Release --no-restore --filter "FullyQualifiedName~Agent"
  • dotnet build TelegramSearchBot.sln --configuration Release --no-restore -m:1

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 22, 2026

Warning

Rate limit exceeded

@ModerRAS has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 51 minutes and 3 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 6fbb4d90-b61d-4bad-a413-e2e4a51aaf2d

📥 Commits

Reviewing files that changed from the base of the PR and between f27c681 and a0c2d3e.

📒 Files selected for processing (28)
  • TelegramSearchBot.Common/LoggerHolders.cs
  • TelegramSearchBot.LLM.Test/Service/AI/LLM/AgentToolRegistryServiceTests.cs
  • TelegramSearchBot.LLM/Service/AI/LLM/AnthropicService.cs
  • TelegramSearchBot.LLM/Service/AI/LLM/GeminiService.cs
  • TelegramSearchBot.LLM/Service/AI/LLM/McpToolHelper.cs
  • TelegramSearchBot.LLM/Service/AI/LLM/OllamaService.cs
  • TelegramSearchBot.LLM/Service/AI/LLM/OpenAIResponsesService.cs
  • TelegramSearchBot.LLM/Service/AI/LLM/OpenAIService.cs
  • TelegramSearchBot.LLM/Service/Mcp/McpClient.cs
  • TelegramSearchBot.LLMAgent/LLMAgentProgram.cs
  • TelegramSearchBot.LLMAgent/Service/AgentLoopService.cs
  • TelegramSearchBot.LLMAgent/Service/AgentToolRegistryService.cs
  • TelegramSearchBot/AppBootstrap/AppBootstrap.cs
  • TelegramSearchBot/AppBootstrap/QRBootstrap.cs
  • TelegramSearchBot/Controller/AI/ASR/AutoASRController.cs
  • TelegramSearchBot/Controller/AI/LLM/AltPhotoController.cs
  • TelegramSearchBot/Controller/AI/LLM/GeneralLLMController.cs
  • TelegramSearchBot/Controller/AI/OCR/AutoOCRController.cs
  • TelegramSearchBot/Controller/AI/QR/AutoQRController.cs
  • TelegramSearchBot/Controller/Bilibili/BiliMessageController.cs
  • TelegramSearchBot/Manager/SendMessage.cs
  • TelegramSearchBot/Manager/WhisperManager.cs
  • TelegramSearchBot/Program.cs
  • TelegramSearchBot/Service/AI/LLM/ChunkPollingService.cs
  • TelegramSearchBot/Service/BotAPI/SendMessageService.Streaming.cs
  • TelegramSearchBot/Service/Common/UrlProcessingService.cs
  • TelegramSearchBot/Service/Storage/MessageService.cs
  • TelegramSearchBot/Service/Tools/MemoryService.cs
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/fix-mcp-tool-discovery

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 22, 2026

PR Check Report

Summary

Test Results

Platform Status Details
Ubuntu Passed Tests passed, artifacts uploaded
Windows Passed Tests passed, artifacts uploaded

Code Quality

  • Code formatting check
  • Security vulnerability scan
  • Dependency analysis
  • Code coverage collection

Test Artifacts

  • Test results artifacts count: 2
  • Code coverage uploaded to Codecov

Links


This report is auto-generated by GitHub Actions

@ModerRAS ModerRAS merged commit 27b659a into master May 22, 2026
5 checks passed
@ModerRAS ModerRAS deleted the codex/fix-mcp-tool-discovery branch May 22, 2026 10:21
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.

1 participant