You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(multiagent): prevent unnecessary BedrockModel initialization in Swarm constructor
- Remove placeholder SwarmState creation that triggered BedrockModel instantiation
- Delay SwarmState creation until __call__ method when real agents are available
- Add proper validation for empty swarms to prevent StopIteration errors
- Add comprehensive test coverage for AWS service call prevention
- Maintain backward compatibility and all existing functionality
Fixes issue where Swarm constructor created unnecessary AWS service calls
even when using only non-Bedrock model providers like Ollama.
🤖 Assisted by the code-assist agent script
0 commit comments