generated from amazon-archives/__template_Apache-2.0
-
Couldn't load subscription status.
- Fork 453
Closed
Closed
Copy link
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomersready for contributionPull requests welcomePull requests welcome
Description
Problem Statement
Bedrock models with extended thinking return reasoningContent events. These events can contain either reasoningText or redactedContent (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_ReasoningContentBlock.html). Currently the BedrockModel provider handles reasoningText but not redactedContent:
sdk-python/src/strands/event_loop/streaming.py
Lines 131 to 142 in 61c3bf7
| elif "reasoningContent" in delta_content: | |
| if "text" in delta_content["reasoningContent"]: | |
| if "reasoningText" not in state: | |
| state["reasoningText"] = "" | |
| state["reasoningText"] += delta_content["reasoningContent"]["text"] | |
| callback_handler( | |
| reasoningText=delta_content["reasoningContent"]["text"], | |
| delta=delta_content, | |
| reasoning=True, | |
| **kwargs, | |
| ) |
Proposed Solution
Support redactedContent in reasoningContent Bedrock Model events.
Use Case
Implement handling of redactedContent in my agent's async iterator or callback handler.
Alternatives Solutions
No response
Additional Context
No response
Metadata
Metadata
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomersready for contributionPull requests welcomePull requests welcome