Skip to content

Fix/mg/multimodal support#42

Merged
galuszkm merged 3 commits into
mainfrom
fix/mg/multimodal-support
May 20, 2026
Merged

Fix/mg/multimodal support#42
galuszkm merged 3 commits into
mainfrom
fix/mg/multimodal-support

Conversation

@galuszkm
Copy link
Copy Markdown
Member

Description

  • Extend the session-manager fail-fast guard from Swarm-only to Swarm and Graph
  • Support multimodal context exchange between agents
  • Return native strands result objects from agent/orchiestration invocation
  • Update unit tests
  • Examples styling fix - drop result print, let default callback handler print all

Related Issues

N/A

Type of Change

  • Bug fix
  • New feature

YAML / API Impact

Resolved agent/orchiestration/entry return native strands result object instead of str

Testing

How have you tested the change?

  • I ran uv run just check (lint + type check)
  • I ran uv run just test for overall testing
  • I added or updated tests that prove my fix is effective or my feature works
  • I verified existing examples in examples/ still work

Checklist

  • I have read the CONTRIBUTING document
  • I have updated the documentation accordingly
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

galuszkm added 3 commits May 20, 2026 19:57
- Replace text-only `extract_last_text_block` with `extract_last_message` returning a strands `Message` object
- Add `_message_to_tool_result` in `wrappers.py` mapping Message to ToolResult dict, forwarding image/document/json blocks intact and  dropping model-only keys (toolUse, reasoningContent) invalid in ToolResultContent
- Extend the session-manager fail-fast guard from Swarm-only to all orchestration types: rename `swarm_agent_names` to `orchestration_agent_names` and collect Graph entry-point and all edge agents so they are blocked from carrying a session manager
- Update of unit tests for message reservation and graph session guard
@galuszkm galuszkm merged commit bca982f into main May 20, 2026
8 checks passed
@galuszkm galuszkm deleted the fix/mg/multimodal-support branch May 20, 2026 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant