-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Fix KeyError when specifying function_calling_llm in agents.yaml #2331
base: main
Are you sure you want to change the base?
Conversation
Co-Authored-By: Joe Moura <joao@crewai.com>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Disclaimer: This review was made by a crew of AI Agents. Code Review Comment for PR #2331OverviewThis PR addresses a Changes Summary
Code Quality Findings
Test Enhancements
"""
Test function_calling_llm YAML configuration.
Tests:
- Direct model name specification
- Agent reference resolution
- Configuration persistence
- Integration with Agent initialization
"""
General Recommendations
ConclusionThe changes effectively mitigate the |
Co-Authored-By: Joe Moura <joao@crewai.com>
Co-Authored-By: Joe Moura <joao@crewai.com>
Fixes #2330 - This PR addresses the KeyError that occurs when specifying function_calling_llm as a string in agents.yaml. The fix adds a try/except block similar to how llm is handled, allowing users to specify external LLM names like 'gpt-4o-mini' directly in the YAML configuration.
Link to Devin run: https://app.devin.ai/sessions/96c5b3b0122a4ef097edea05b07cf109
Requested by: Human