Skip to content

[FEATURE] Add support for non-streaming bedrock models #32

Closed
@Unshure

Description

@Unshure

Problem Statement

The strands BedrockModel class currently only supports the converseStream API when calling models. Certain models only support the non-streaming converse API (see "Streaming Supported" column). This model providers should support both streaming and non streaming models.

Proposed Solution

No response

Use Case

from strands import Agent
from strands.models.bedrock import Bedrock Model

model = BedrockModel(model_id="cohere.rerank-v3-5:0", streaming=False)
agent = Agent(model=model)
agent("Hello!")

### Alternatives Solutions

_No response_

### Additional Context

_No response_

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions