Skip to content

Conversation

@a-sekka
Copy link

@a-sekka a-sekka commented Jan 27, 2026

Summary

  • Add __str__ method to MultiAgentResult to allow direct string conversion, matching the existing AgentResult.__str__ behavior
  • Enables str(result) to get combined text output from all agent results without manual unwrapping
  • Handles nested MultiAgentResult, exception nodes (skipped), and empty results

Test plan

  • Unit test: single node result
  • Unit test: multiple node results
  • Unit test: empty results
  • Unit test: exception nodes are skipped
  • Unit test: nested MultiAgentResult

Closes #1561

Allow direct string conversion of MultiAgentResult, matching the
existing behavior of AgentResult. This enables users to simply call
str(result) to get the combined text output from all agent results.

Closes strands-agents#1561
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] __str__ support for MultiAgentResult

1 participant