Skip to content

[BUG] Unable to use custom LLM providers with tools like swarm, agent_graph, workflow #20

@rubenfonseca

Description

@rubenfonseca

Checks

  • I have updated to the lastest minor and patch version of Strands
  • I have checked the documentation and this is not expected behavior
  • I have searched ./issues and there are no duplicates of my issue

Strands Version

0.1.2

Tools Package Version

0.1.1

Tools used

  1. swarm
  2. agent_graph
  3. workflow

Python Version

3.12.7

Operating System

macOS 15.4.1

Installation Method

pip

Steps to Reproduce

model = LiteLLMModel(
model_id="lm_studio/...",
)

agent = Agent(tools=[swarm], model=model)

result = agent.tool.swarm(
task="Analyze the environmental impact of renewable energy sources compared to fossil fuels",
swarm_size=4,
coordination_pattern="hybrid",
)

print(result["content"])

Expected Behavior

The swarm agents should work.

Actual Behavior

The inner agents try to connect to bedrock instead of using the parent's model, which fails.

Additional Context

No response

Possible Solution

No response

Related Issues

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions