-
-
Notifications
You must be signed in to change notification settings - Fork 825
feat: useXAgent add refreshDeps option #1104
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
base: main
Are you sure you want to change the base?
Conversation
📝 WalkthroughWalkthrough本次变更为 Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant useXAgent
participant XAgent
User->>useXAgent: 提供 config(含 refreshDeps)
useXAgent->>useXAgent: 解构 refreshDeps, 默认[]
useXAgent->>useXAgent: useMemo 依赖 [baseURL, dangerouslyApiKey, model, ...refreshDeps]
useXAgent->>XAgent: 创建/重建实例(依赖变化时)
XAgent-->>useXAgent: 返回新实例
useXAgent-->>User: 返回 XAgent 实例
Estimated code review effort🎯 2 (Simple) | ⏱️ ~7 分钟 Assessment against linked issues
Assessment against linked issues: Out-of-scope changes(本次提交未发现与已关联 issue 目标无关的功能性代码变更。) Possibly related PRs
Suggested reviewers
Poem
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🧰 Additional context used🧠 Learnings (1)📓 Common learnings
🔇 Additional comments (4)
✨ Finishing Touches
🧪 Generate unit tests
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Bundle ReportChanges will decrease total bundle size by 5 bytes (-0.0%) ⬇️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: antdx-array-pushAssets Changed:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1104 +/- ##
=======================================
Coverage 92.46% 92.46%
=======================================
Files 69 69
Lines 1579 1579
Branches 428 429 +1
=======================================
Hits 1460 1460
Misses 119 119 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
中文版模板 / Chinese template
🤔 This is a ...
🔗 Related Issues
💡 Background and Solution
refreshDeps
option to get latest value in request function.📝 Change Log
refreshDeps
option.refreshDeps
选项,作为 Agent 实例更新的依赖列表,使用场景详见 #536。Summary by CodeRabbit
新功能
refreshDeps
,用于在依赖项变化时自动刷新 Agent 实例。文档
refreshDeps
属性的用法及相关说明。