[FEATURE] BidiAgent: accept lists of content blocks as input
Author: pgrayyCreated Sep 22, 2026Updated Sep 22, 2026
Labelsenhancementpythonarea-bidirectional-streaming
SDK Language
Python
Problem Statement
BidiAgent.send() accepts one content item at a time. Users need to submit related blocks, such as text and an image, together as one input.
Proposed Solution
- Extend
BidiAgentInputandsend()to accept lists of supported complete content blocks, including object and dictionary forms. - Preserve block order and grouping through the loop and model providers, recording the input as one user message.
- Define provider handling for grouped inputs and unsupported combinations.
- Preserve existing single-item and streaming-delta inputs, and update tests and documentation.
Use Case
Send a question and its images together without treating each block as a separate conversational input.
Additional Context
Parent epic: #1722. Related response-boundary and history work: #4502.
Source: strands-agents/harness-sdk