Skip to content

[FEATURE] BedrockModel - support redactedContent in reasoningContent streamed events #99

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
awsarron opened this issue May 24, 2025 · 0 comments · May be fixed by #134
Open

[FEATURE] BedrockModel - support redactedContent in reasoningContent streamed events #99

awsarron opened this issue May 24, 2025 · 0 comments · May be fixed by #134
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers ready for contribution Pull requests welcome

Comments

@awsarron
Copy link
Member

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:

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

@awsarron awsarron added enhancement New feature or request good first issue Good for newcomers ready for contribution Pull requests welcome labels May 24, 2025
@shanaxml shanaxml assigned shanaxml and unassigned shanaxml May 27, 2025
@mazyu36 mazyu36 linked a pull request May 28, 2025 that will close this issue
6 tasks
@Unshure Unshure assigned Unshure and mehtarac and unassigned jimbrub and Unshure May 29, 2025
@awsarron awsarron assigned awsarron and unassigned mehtarac Jun 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers ready for contribution Pull requests welcome
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants