Repository navigation
fix(go-agent): support Aliyun tool calls - #17099
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughAliyun models now support tool calls in non-streaming and streaming chat paths. Agent chat model creation uses shared provider-backed driver resolution with base URL overrides. Retrieval metadata and canvas invocation error handling were updated with corresponding tests. ChangesAliyun tool-call support
Chat model driver resolution
Metadata and runtime error classification
Estimated code review effort: 4 (Complex) | ~45 minutes Possibly related PRs
Suggested labels: Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@internal/agent/component/llm.go`:
- Around line 299-330: Trim whitespace from override at the start of
newChatModelDriver, then use the normalized value for the provider and
dummy-driver base URL handling. Preserve the existing empty-check and
trailing-slash removal behavior using the cleaned override.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 2ea963ad-985a-4af2-9ee5-73340287c457
📒 Files selected for processing (9)
conf/models/aliyun.jsoninternal/agent/component/agent.gointernal/agent/component/llm.gointernal/agent/component/model_driver_test.gointernal/agent/tool/retrieval.gointernal/agent/tool/retrieval_test.gointernal/entity/models/aliyun.gointernal/entity/models/aliyun_test.gointernal/service/agent_run_e2e_test.go
💤 Files with no reviewable changes (1)
- internal/agent/tool/retrieval.go
|
LGTM |
Summary
Testing
bash build.sh --test ./internal/entity/models ./internal/agent/component ./internal/agent/tool