Commit 62119eb
committed
[Bug] SequentialWorkflow.run accepts imgs and then drops it
run() takes an imgs parameter and documents it as "Optional list of
images for the agents", but only task and img ever make it into the
kwargs handed to AgentRearrange:
run_kwargs = {"task": task}
if img is not None:
run_kwargs["img"] = img
So a multi-image run silently degrades to a text-only run. No error,
no warning -- the agents just answer a question about images they were
never shown.
AgentRearrange forwards **kwargs down to Agent.run, which does accept
imgs, so passing it through is all that's needed.1 parent fd9c2e0 commit 62119eb
2 files changed
Lines changed: 29 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
| 332 | + | |
| 333 | + | |
332 | 334 | | |
333 | 335 | | |
334 | 336 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
612 | 612 | | |
613 | 613 | | |
614 | 614 | | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
0 commit comments